# Publish

# Versions

Set the same version number in all the following files.

  • ipychart/js/package.json
  • ipychart/_version.py

WARNING

This is a manual sync.

# Node

Build the Javascript files and publish the node package to npmjs.org (opens new window). For more info on how to proceed, see the official doc (opens new window).

# build Javascript extension
$ cd js
$ npm install

# test run to see what you will publish
# npm pack

# login npm if necessary
npm login

# publish npm package to npmjs.org - using ~/.npmrc
$ npm publish --access=public
# if you made a mistake you can unpublish in the first 24h

# Python

Publish the Python package to PyPI. For more info on how to proceed, see the official doc (opens new window).

# clear dist/ from previous bundles
rm -rf dist

# build Python package
$ python setup.py sdist
$ python setup.py bdist_wheel --universal
$ python3 -m twine upload dist/*