Search code examples
pythonpython-3.xpypi

How do you upload a gzip package to PyPI on Windows


On Windows, I have uploaded a package using the following command:

python setup.py sdist bdist_wininst upload

However, due to my using Python on Windows, it uploads a zip file instead of a gzip file. How can I make it send a gzip along with it?


Solution

  • You can specify the formats of the compressed source files:

    python setup.py sdist --formats=gztar,zip