ASF Common Python Methods
Project description
asfpy - ASF Infrastructure Common Library for Python functions
This Python library contains features commonly used at the Apache Software Foundation.
(For asfpy 0.37 and below, look at our old Subversion repository)
Building asfpy package
Preparation
apt install python3.10-venv
pip3 install build twine
Bump the version number in setup.py
and run:
python3 -m build
Publishing a new asfpy package
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.
for testing
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file asfpy-0.54.tar.gz
.
File metadata
- Download URL: asfpy-0.54.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.6.56-05934-gf790fe104dba
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f10ea9585974992b6d8013b95969fd57a5637b3294f757c5a4cdb5a53eb9653f |
|
MD5 | 05247d5edd61ffc3c8c004236c04c821 |
|
BLAKE2b-256 | 1626208e5508b482735a90e44b9755c4322642b529386b015cb99506fa6013ec |
File details
Details for the file asfpy-0.54-py3-none-any.whl
.
File metadata
- Download URL: asfpy-0.54-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.6.56-05934-gf790fe104dba
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e7c880256bb90318f4afc73a20ddeac0ac53966b59f4fb6fd6ca3dbdc4e09d5 |
|
MD5 | 579310f5cfc81745ece36fbca9eed8c7 |
|
BLAKE2b-256 | f82fa5c9a3eb29c53c8edd458afd83ed0051813939b0fc1e0369bd4882ee6d35 |