Skip to main content

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:

Packaging Python Projects

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/*

The user name and the password is the following:

[pypi]
  username = __token__
  password = .....

Where you'll need to generate the API Token as password.

Go to https://pypi.org/ to see the package!

Inspiration

setup.py vs setup.cfg in Python

sample git repo project

Packaging Python Projects

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)

https://acronymify.com/

Release files for recxpert 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recxpert 0.0.1
File Size Uploaded
recxpert-0.0.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for recxpert 0.0.1
File Interpreter ABI Platform
recxpert-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / recxpert-0.0.1.tar.gz

Download URL recxpert-0.0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1f9cf36db5b922b467de26328b8cd09f932cb7798c52c313af9088d63e2a731b
BLAKE2b-256 checksum
How to use checksums
9fbfc95be25ea34e1f2e79b8fb5642903e0b7b84ade692d5fcfdb4c814dd0209
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / recxpert-0.0.1-py3-none-any.whl

Download URL recxpert-0.0.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c40dcc75336c544edf9235787cad7e20da54597bc253c030539eccb0890743e
BLAKE2b-256 checksum
How to use checksums
402fa5f030cdcf381ab4ab52d73e3103d17ef055b0d093419107a868f8742c72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page