Only use these instructions if you cannot use the automated release process for some reason.
Create a GPG key for verification on Github:
Instructions
At step 3 I had to use gpg --default-key rsa4096 --gen-key
.
Create a PyPI account for yourself if you don’t already have one. Sign up page. Get an owner to add you as a maintainer or owner.
cylc-flow/cylc/flow/__init__
or __version__.py
and
setup.py
files, usually at the top level of a repository.CHANGES.md
text in each repository.CONTRIBUTING.md
. Ensure that all contributors are listed.
You can do this using Github, or locally with git shortlog -sn
git log
to ensure that you have the correct version and tag.
cd my/repository/
# This may seem slow as this will build the wheel as well as the source
# distributions
python3 setup.py bdist_wheel sdist
# check that you've successfully created wheel and source files
ls dist/
# Tidy up
rm -r dist
For any projects which are auto-documented by cylc-doc, currently:
Ensure the docs build against master by manually triggering the test workflow in cylc-doc.
This will catch syntax errors, broken urls etc which need to be fixed prior to releasing the project.
# Examine previous tags using
git tag -ln
# Create a new tag "tag_name" is usually a version number.
git tag -a -s <tag_name>
# Push tags:
git push --tags upstream <tag_name>
# Build your distribution inside the repository folder this time
cd my/repository
# Create your build
python3 setup.py bdist_wheel sdist
# Check that the dist folder contains the right artifacts:
ls dist/
# Upload your build to PyPI. n.b. This will not work if your build has the
# same version number as one already on PyPI.
twine upload dist/*
Check PyPI for your upload.