Fuente: MakerByter
Estructura del directorio CARPETA:
- MANIFEST.in
- CHANGELOG.txt
- README.md
- setup.py
- CARPETAnombrepaquete:
- init.py: con el codigo python
Correr en consola:
pip3 install setuptools twine
Y en la carpeta CARPETA:
python3 setup.py sdist
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
You need to increase the version in 'setup.py' and rerun ´setup.py´'; e.g. 'python3 setup.py sdist bdist_wheel' or similar. Good idea to rm -rf dist build and remove the egg-info file too.
Fuente: https://stackoverflow.com/questions/56520660/upload-a-new-release-to-testpypi