pypa / twine

Utilities for interacting with PyPI
https://twine.readthedocs.io/
Apache License 2.0
1.61k stars 308 forks source link

HTTPError: 400 Client Error: Invalid distribution file. #1004

Closed HS-Gray closed 1 year ago

HS-Gray commented 1 year ago

Your Environment

Thank you for taking the time to report an issue.

To more efficiently resolve this issue, we'd like to know some basic information about your system and setup.

1) Your operating system:

CentOS Linux release 7.2

2) Version of python you are running:

Python 3.6.8

3) How did you install twine? Did you use your operating system's package manager or pip or something else?

pip3 install twine==1.11.0

4) Version of twine you have installed (include complete output of):

twine version 1.11.0 (pkginfo: 1.9.6, requests: 2.26.0, setuptools: 59.6.0, requests-toolbelt: 1.0.0, tqdm: 4.64.1)

5) Which package repository are you targeting?

PKG-INFO

Metadata-Version: 1.1
Name: tccli
Version: 3.0.894.1
Summary: Universal Command Line Environment for Tencent Cloud
Home-page: https://github.com/TencentCloud/tencentcloud-cli.git
Author: Tencent Cloud
Author-email: TencentCloudApi@tencent.com
License: UNKNOWN
Description: UNKNOWN
Platform: unix
Platform: linux
Platform: win64
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6

.pypirc file

[distutils]
index-servers=pypi

[pypi]
repository = https://upload.pypi.org/legacy/
username = xxx
password = xxx

[testpypi]
repository = https://test.pypi.org/legacy/
username = xxx
password = xxx

The Issue

Please describe the issue that you are experiencing.

Uploading tccli-3.0.894.1-py2.py3-none-any.whl 100%|███████████████████████████████████| 6.57M/6.57M [00:06<00:00, 1.01MB/s] HTTPError: 400 Client Error: Invalid distribution file. for url: https://upload.pypi.org/legacy/

Steps to Reproduce

If the issue is predictable and consistently reproducible, please list the steps here.

python setup.py sdist twine upload dist/*

bhrutledge commented 1 year ago

This seems like another instance of https://github.com/pypa/packaging-problems/issues/674. Please read my comment there, and add your own information.