commit | abed3f0706ea8dd7b296e101e49c7420f67aa135 | [log] [tgz] |
---|---|---|
author | sebbASF <sebbASF@users.noreply.github.com> | Tue Mar 14 10:13:25 2023 +0000 |
committer | GitHub <noreply@github.com> | Tue Mar 14 10:13:25 2023 +0000 |
tree | e7e17403b4ebe06e796386bdaf3f52d1621f471e | |
parent | d127f09ecf6cc40e37f638fe9bebbb7c5597714e [diff] | |
parent | 9d1c3f4e1bd9da8b61de38302e6af89a39c53dd0 [diff] |
Merge pull request #7 from apache/main Merge main
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.
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.