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 ebrec 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 | |
|---|---|---|---|
| ebrec-0.0.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ebrec-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / ebrec-0.0.1.tar.gz
| Download URL | ebrec-0.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
600c30709293920d4394b0deb3891f5c33aab2b8841eb63c4f18d19740954821
|
|
BLAKE2b-256 checksum How to use checksums |
c506aa6e362ce9ed6d52b188621dba69435991d0b1b1f77e41c4aaaa942b4c7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / ebrec-0.0.1-py3-none-any.whl
| Download URL | ebrec-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccfcbd6a21b2013d5659fa35356be5a1fd35dd7baa0f0b0267a9b8978bb8960f
|
|
BLAKE2b-256 checksum How to use checksums |
6a06f3629d2f033720c3bfb90d2af0bea4abfc96aff30c8f7793a218ee96b240
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|