commit | aa49948ab31385e656ffb114e66ac28c0c92192b | [log] [tgz] |
---|---|---|
author | Chris Thistlethwaite <christ@apache.org> | Thu Feb 15 13:36:54 2024 -0500 |
committer | GitHub <noreply@github.com> | Thu Feb 15 13:36:54 2024 -0500 |
tree | ab7d1c6845ccaf78e928d0029d452867ab52ffe0 | |
parent | 74f5eab7999fe6ad9439a7a7e6d367ababeaa4d5 [diff] | |
parent | 6b112f50b74cbc65a8c8c61764c3af10d8e33007 [diff] |
Merge pull request #18 from apache/pre-0.52 Bump release
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.