python - 如何在 Windows 上将 gzip 包上传到 PyPI

标签 python python-3.x pypi

在 Windows 上,我使用以下命令上传了一个包:

python setup.py sdist bdist_wininst 上传

但是,由于我在 Windows 上使用 Python,它上传的是 zip 文件而不是 gzip 文件。我怎样才能让它一起发送 gzip 呢?

最佳答案

您可以specify the formats压缩源文件的数量:

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

关于python - 如何在 Windows 上将 gzip 包上传到 PyPI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16050999/

相关文章:

python - Python 包索引 (PyPi) 提交模板

Python包: Can I look for config/yml file from project directory which called it?

python - 查找哪些包支持 Python 3.x 与 2.7.x

python - 导入 pandas.plotting 的问题

python - 简单的 HTML 到 PDF python 库错误

python - 无法从 Django 中的第 3 方包获取反向 URL

python - 将单个模块添加到 Python 的导入搜索路径?

python - 将 Python 脚本连接到 PostgreSQL 数据库

python - 在异步生成器上使用 next()

python-3.x - 将 Pandas DataFrame 写入 Google 工作表 : no such file or directory . oauth/drive.json