-
Notifications
You must be signed in to change notification settings - Fork 58
Release process
Justin Jaffray edited this page Mar 27, 2018
·
3 revisions
- To release this package, you must have "maintainer" access to the
cockroachdb
package on PyPI. - Submit a PR that bumps the version number in
setup.py
and adds release notes inCHANGES.md
- In a local clone of the repo, check out the merge commit for that PR.
- Run
./bootstrap.sh
to make sure you have the necessary tools installed. (note that this installs into~/envs/cockroachdb-python
) - Activate the virtual environment with
source ~/envs/cockroach-python/bin/activate
- Run
python setup.py sdist
- Test the release in a temporary virtualenv:
virtualenv /tmp/testenv; /tmp/testenv/bin/pip install dist/cockroachdb-$VERSION.tar.gz
(TODO: exercise the package installation in CI so this manual step isn't necessary) - Run
twine upload dist/cockroachdb-$VERSION.tar.gz
. This will prompt for your pypi.org password (unless you have added it to a.pypirc
file)