Skip to content

ccourson/python-pip-packaging-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple packaging template based on article "Packaging Python Projects", https://packaging.python.org/tutorials/packaging-projects/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages