This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 37
Release process
Maciej edited this page Jun 15, 2020
·
5 revisions
-
Make sure that all tests pass
-
Remove old
dist
filesrm -Rf dist/*
-
Build source and wheel distribution
python setup.py sdist bdist_wheel
-
Sign the packages
for f in $(ls dist/*) do gpg2 --detach-sign -a $f done
-
Test if package can be uploaded to PyPi test repository
python3 -m twine upload --sign --repository-url https://test.pypi.org/legacy/ dist/*
-
If upload succeeds upload to main repository
python3 -m twine upload --sign dist/*
-
Create and sign release tage
STUBS_RELEASE_VERSION=$(python setup.py --version); git tag -s $STUBS_RELEASE_VERSION -m "$STUBS_RELEASE_VERSION"
-
Push tags
git push --tags
-
Increment package version
-
In case of minor (i.e. 2.3 to 2.4) or major (i.e. 2.4 to 3.0) change be sure to updated
SPARK_BRANCH
variable in.travis.yml
.
See PyPI deployment
-
Execute steps 2, 3 and 5 from the manual process. This ensures that there are no issues and the package is uploadable.
-
Follow steps 7 to 10 from manual process.