commit | 4c0beb3c4d6225d82db648c8d9ddbae5fb6ce356 | [log] [tgz] |
---|---|---|
author | Chris Wells <iroh@apache.org> | Wed Nov 27 15:50:20 2024 -0500 |
committer | Chris Wells <iroh@apache.org> | Wed Nov 27 15:50:20 2024 -0500 |
tree | c31fa165e722a571fe79d4a66c8eae0bd158a823 | |
parent | 6d30327728a83b19108bd1c0af47218578b5730f [diff] | |
parent | c56ae7dd2e35bbf067d2ba1c576faf83cf35f102 [diff] |
Merge branch 'main' into iroh/watchfiles
This Python library contains features commonly used at the Apache Software Foundation.
(For asfpy 0.37 and below, look at our old Subversion repository)
Preparation
apt install python3.10-venv
pip3 install build twine
Bump the version number in setup.py
and run: python3 -m build
After building the asfpy package, run the following command, where $version is the new version to publish:
python3 -m twine upload dist/asfpy-$version*
(for instance dist/asfpy-0.38*
)
The above command will upload the .whl
and the .tar.gz
(the glob-asterisk is important!)
See this guide for more details on working with PyPi.
Please also create a tag for the release.
Create an account on https://test.pypi.org/, then add a token with an “all projects” scope. Place that into your .pypirc
like so:
[testpypi] repository = https://test.pypi.org/legacy/ username = __token__ password = pypi-tokenstringgoeshere
Then you can test an upload with: python3 -m twine upload -r testpypi dist/asf-py$version*
The package should upload to the test.pypi.org service.