A small example package
Project description
Sample Python Package
This is a sample package built for learning python packaging.
To build and publish package, install following:
python3 -m pip install build twine
Build Package
using setuptools
python3 -m build
check the packages if it complies to PyPI
twine check dist/*
Publish
once built, publish to PyPi.
get the API token from PyPI.
- open account page
- go to
API tokens - click on
Add API token - configure
- copy the generated token
use twine to upload the distribution packages. Configure twine to use PyPI token, edit $HOME/.pypirc
[pypi]
username = __token__
password = ${API_TOKEN}
repository = https://upload.pypi.org/legacy/
upload the package:
python3 -m twine upload --repository pypi dist/*
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xath_sample_package-0.0.2.tar.gz.
File metadata
- Download URL: xath_sample_package-0.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de76e4bd9c82a1fabef018273dc857afc36940e7562d7deb71bce5790713248d
|
|
| MD5 |
7886c599630ef18d87eb7e61913f1ae9
|
|
| BLAKE2b-256 |
21700ee0848e0524d7a28b8b59eeafa88c25866fb8cd2ba50f01e2a03eba808d
|
File details
Details for the file xath_sample_package-0.0.2-py3-none-any.whl.
File metadata
- Download URL: xath_sample_package-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cb768de7ac8d7ee7ab9fd8793e1f5906b6dc29879f863194955f9faa3877809
|
|
| MD5 |
5e8e2f19514a9c1140ffc4c225e557a7
|
|
| BLAKE2b-256 |
a25da6691bcd0cc56adb72d547e8cdcf0f59235c342b3d9880ab187688ea4516
|