publish pypi
"""NOTE: Check for potential bugs or careless mistakes before uploading you work onto the
Python Package Index (PyPi)
"""
python3 -m pip install --upgrade twine setuptools
python3 setup.py sdist bdist_wheel
twine check dist/*
# Upload to test.pypi.org
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Upload to "real" pypi.org
twine upload dist/*
0
0
1. Create files:
__init__.py setup.py README.md LICENSE
2. Check for setuptools and wheel:
pip install --user --upgrade setuptools wheel
3. Generate package:
py setup.py sdist bdist_wheel
4. Upload to pip:
twine upload dist/*
Thank you!
0
0
3
1
1. Create files:
__init__.py setup.py README.md LICENSE
2. Check for setuptools and wheel:
pip install --user --upgrade setuptools wheel
3. Generate package:
py setup.py sdist bdist_wheel
4. Upload to pip:
twine upload dist/*
Thank you!
1
0
Are there any code examples left?
New code examples in category Shell/Bash