mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-15 20:57:56 +08:00
2.4 KiB
2.4 KiB
cellxgene release process
This document defines the release process for cellxgene
Overview
The goal of the release process is to publish an installable package to PyPi, with a matching tagged release on github.
The release process should result in the following side-effects:
- Version number bump, using semantic versioning
- JS assets built & packaged, committed to the repo
- Tagged github release
- Publication to PyPi
Process
Follow these steps to create a release.
- Preparation:
- Define the release version number, using semantic versioning
- Write the release title and release notes
- Create a release branch, eg,
release-version - In the release branch:
- run
bumpversion --config-file .bumpversion.cfg [major | minor | patch] - clean up existing environment using
bin/clean - build the JS asserts using
bin/build-client
- run
- Commit and push the new branch
- Create a PR for the release.
- [optional] As needed, conduct PR review.
- Merge to master
- Create Github release using the version number and release notes (instructions).
- Draft new release
- Type version name matching release version number from (1)
- Select
masteras release branch (ensure you merged the release PR) - Type title
Release {version num} - [optional] check pre-release if this release is not ready for production
- Publish Release
- Publish to pypi by performing the following steps
(assumes you have
setuptoolsandtwineinstalled and that you have registered for pypi and have write access to the cellxgene pypi package) - build the distribution by callingpython setup.py sdistinside the top-level directory - [optional] upload the package to test pypitwine upload --repository-url https://test.pypi.org/legacy/ dist/*- [optional] test the test installation in a fresh virtual environment usingpip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple cellxgene- upload the package to real pypi usingtwine upload dist/*- [optional] test the installation in a fresh virtual environment usingpip install cellxgene
The optional steps are for testing purposes, and are recommended for publishing any major releases, and any releases that significantly change the packaging (e.g. new bundled files, new dependencies, etc.)