Skip to content
Snippets Groups Projects
HOWTO_UPLOAD_TO_PYPI 551 B
Newer Older
  • Learn to ignore specific revisions
  • # create a source-distribution
    
    # be sure to bump you version number up!
    
    python3 setup.py sdist
    
    
    # see distributions
    ls -la dist/
    
    # upload distribution(s) to pypi
    
    # a version, once uploaded, cannot be overwritten in pypi
    # it only can be deleted.
    # for pre-releases use version number like 1.0.0.dev1, 1.0.0.dev2 etc.
    
    # upload distribution to test.pypi.org repository
    # repo must be specified in a [test] section in your ~/.pypirc file:
    # [test]
    # repository=https://test.pypi.org/legacy/
    #
    
    twine upload --repository test dist/*