Requirements
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
python3 -m pip install --upgrade setuptools wheel
Download repository:
git clone https://github.com/johanneskruse/pypi_template.git
Upload:
In pyproject.toml you can set the name of the pacakage
Run the following to upload:
Generating distribution archives
Stand inside the project, i.e.
cd pypi_template
Next build the package:
python3 -m build
This command should output a lot of text and once completed should generate two files in the dist directory:
dist/
├── sampleproject-0.0.1-py3-none-any.whl
└── sampleproject-0.0.1.tar.gz
Uploading the distribution archives
twine upload dist/*
Go to https://pypi.org/ to see the package!
Inspiration
setup.py vs setup.cfg in Python
TODO:
- Setup with pyproject.toml file
- Note that if you want to install packages in editable mode (i.e. by running pip install -e .) you must have a valid setup.py file apart from setup.cfg and pyproject.toml. TRY TO RUN INSTEAD: pip install -e . -f .
Acronym Generator (help generate the name)
Release files for wombats 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wombats-0.0.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wombats-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / wombats-0.0.1.tar.gz
| Download URL | wombats-0.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ceff442c25ad1cb08570325b221816aa3e418cfb01f7c84758806e17e800de97
|
|
BLAKE2b-256 checksum How to use checksums |
f8d1a54892ad0d0b5cd4a49ad4e661c5b31b7afcc22b14975844212efe9a2c27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / wombats-0.0.1-py3-none-any.whl
| Download URL | wombats-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3fb2a9a60190c04f08b102745e7d3b8c56d7f408bc173b2eedc19dae0a27c641
|
|
BLAKE2b-256 checksum How to use checksums |
597405a13d01ad9fbbd64919dfda56d6bee746c0bc6664196e56936817eeea49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|