Skip to content

Commit 5b65f67

Browse files
committed
Document signing generated module wheels
1 parent 6847aaa commit 5b65f67

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎docs/Build_ITK_Module_Python_packages.rst‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,21 @@ Next, create a `~/.pypirc` file with your login credentials::
146146

147147
where `<your-username>` and `<your-password>` correspond to your PyPI account.
148148

149+
If you have a `GPG signing key
150+
<https://help.github.com/articles/generating-a-new-gpg-key/>`_, sign the wheels::
151+
152+
gpg --detach-sign -a dist/*.whl
153+
149154
Then, upload wheels to the testing server::
150155

151156
python -m pip install twine
152-
python -m twine upload -r pypitest dist/*.whl
157+
python -m twine upload -r pypitest dist/*
153158

154159
Check out the packages on `<https://test.pypi.org/>`_ the testing server.
155160

156161
Finally, upload the wheel packages to the production PyPI server::
157162

158-
python -m twine upload dist/*.whl
163+
python -m twine upload dist/*
159164

160165
Congratulations! Your packages can be installed with the commands::
161166

0 commit comments

Comments
 (0)