Skip to content

Instantly share code, notes, and snippets.

@matog
Last active April 28, 2022 21:09
Show Gist options
  • Save matog/02cc7fee149e7a0d44197fc0cf479469 to your computer and use it in GitHub Desktop.
Save matog/02cc7fee149e7a0d44197fc0cf479469 to your computer and use it in GitHub Desktop.

Fuente: MakerByter

Crear un paquete de Python

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

Problema al hacer update de versión de paquete en pypi

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment