Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.36 KB

RELEASE.md

File metadata and controls

55 lines (39 loc) · 1.36 KB

Making a new release of nbresuse

Getting a clean environment

Creating a new environment can help avoid pushing local changes and any extra tag.

conda create -n nbresuse-release -c conda-forge twine keyring
conda activate nbresuse-release

Alternatively, the local repository can be cleaned with:

git clean -fdx

Releasing on PyPI

Make sure the dist/ folder is empty.

  1. Update the version in setup.py
  2. python setup.py sdist bdist_wheel
  3. Double check the size of the bundles in the dist/ folder
  4. Run the tests
  • pip install "dist/nbresuse-X.Y.Z-py3-none-any.whl[dev]"
  • python -m pytest
  1. export TWINE_USERNAME=mypypi_username
  2. twine upload dist/*

Releasing on conda-forge

The easiest is to wait for the bot to open the PR automatically.

To do the release manually:

  1. Open a new PR on https://github.com/conda-forge/nbresuse-feedstock to update the version and the sha256 hash
  2. Wait for the tests
  3. Merge the PR

The new version will be available on conda-forge soon after.

Committing and tagging

Commit the changes, create a new release tag, and update the stable branch (for Binder), where x.y.z denotes the new version:

git checkout master
git add setup.py
git commit -m "Release x.y.z"
git tag x.y.z
git checkout stable
git reset --hard master
git push origin master stable x.y.z