Reputation: 17203
I can upload my package to PyPI using the following command:
python setup.py sdist upload
This would create a .zip
file (because I'm on Windows).
However I'd like to have both .zip
and .targz
files in PyPI, to easily support both Windows and Linux users.
How can I (preferably with one command) build both kinds of distributions and upload them to PyPI?
Upvotes: 3
Views: 842
Reputation: 4956
The container format .zip
and .tar.gz
should be handled the same on both systems.
The documentation doesn't specify that there is a specific archive format, so I'd assume you don't need to worry.
Distribution Package
A versioned archive file that contains Python packages, modules, and other resource files that are used to distribute a Release. The archive file is what an end-user will download from the internet and install.
...
Upvotes: 1