Skip to content
Snippets Groups Projects
HOWTO_UPLOAD_TO_PYPI 472 B
Newer Older
  • Learn to ignore specific revisions
  • # Convert README.md markdown to README.rst reStructuredText
    pandoc --from=markdown --to=rst --output=README.rst README.md
    
    
    # create a python2 / python 3 universal distribution
    python setup.py bdist_wheel --universal
    
    # create a pure python distribution, which only works for a specific python version
    python setup.py bdist_wheel
    
    # create a source-distribution
    python setup.py sdist
    
    # see distributions
    ls -la dist/
    
    # upload distribution(s) to pypi
    twine upload dist/*