Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1005 Bytes

File metadata and controls

40 lines (24 loc) · 1005 Bytes

Example Package

This is a simple example package. You can use Github-flavored Markdown to write your content.

From article: Packaging Python Projects

Generating distribution archives

Unix

python3 -m pip install --upgrade build
python3 -m build

Windows

py -m pip install --upgrade build
py -m build

Uploading the distribution archives

The first thing you’ll need to do is register an account on Test PyPI. https://test.pypi.org/account/register/

Create token: https://test.pypi.org/manage/account/#api-tokens

For the username, use __token__

For the password, use the token value, including the pypi- prefix plus token value.

Unix

python3 -m pip install --user --upgrade twine
python3 -m twine upload --repository testpypi dist/*

Windows

py -m pip install --user --upgrade twine
py -m twine upload --repository testpypi dist/*