You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.8 KiB
1.8 KiB
Making a new release of JupyterLab Classic
This process is still a bit manual and consists in running a couple of commands.
This should normally be possible to automate the process at some point.
Getting a clean environment
Creating a new environment can help avoid pushing local changes and any extra tag.
mamba create -q -y -n jupyterlab-classic-release -c conda-forge twine nodejs -y
conda activate jupyterlab-classic-release
Alternatively, the local repository can be cleaned with:
git clean -fdx
Releasing on PyPI
Make sure the dist/ folder is empty.
- Update jupyterlab_classic/_version.py with the new version number
- Run:
python setup.py sdist bdist_wheel - Double check the size of the bundles in the
dist/folder - Test the release by installing the wheel or sdist: `python -m pip install ./dist/jupyterlab_classic-0.1.1-py3-none-any.whl
- Commit the changes
git add jupyterlab_classic/_version.pygit commit -m "Release x.y.z"
export TWINE_USERNAME=mypypi_usernametwine upload dist/*
Releasing on conda-forge
The simplest is to wait for the bot to automatically open the PR.
Alternatively, to do the update manually:
- Open a new PR on https://github.com/conda-forge/jupyterlab-classic-feedstock to update the
versionand thesha256hash - Wait for the tests
- Merge the PR
The new version will be available on conda-forge soon after.
Publish the packages to npm
- Bump the version in
jlpm run lerna version x.y.z --no-push --amend --force-publishjlpm run lerna publish from-package
Committing and tagging
Push the release commit to the main branch:
git push origin main
Then create a new release from the GitHub interface.