Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 704 Bytes

File metadata and controls

36 lines (32 loc) · 704 Bytes

Distribution cheat sheet

Check if the package is installable

pip install .[dev]

add [dev] to install the extras_require packages, required to build a release, if you have defined them in your setup.py. Example:

extras_require={"dev": ["twine>=4.0.2", "build>=1.0.3"]},

Old way (binairy and wheel)

Create binairies

python setup.py bdist

Create whl

python setup.py bdist_wheel

New way (binairy and wheel)

python -m build

Uploading

Using twine, check if everything is ok

twine check dist/*

Then upload to PyPi test or production

twine upload -r testpypi dist/*
twine upload dist/*