-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twine check fails due to long-description sections #474
Comments
Looking at the renderer it seems to fail to render valid rst?
|
What is the exact value of the header? This may be a duplicate of pypa/readme_renderer#144 |
An example of the README after read from file is
|
So there are several things that seem suspicious to me: You're concatenating two files that may or may not flow well together. Looking at https://raw.githubusercontent.com/Azure/azure-batch-cli-extensions/master/README.rst your
I'm not certain that those would cause the header to fail. I also believe we use the long-description in your |
I narrowed down the README section for debugging purposes. I have attached a simplified PKG-INFO from the above repro steps (simplified example of failure and converted to .txt for upload). |
This is not a failure to render, it would return |
The issue is that you have a mix of Unix and Windows style linebreaks in your PKG-INFO. Here's the same file with the correct line breaks, it passes |
Which would make this a duplicate of pypa/setuptools#1390. |
Your Environment
Your operating system:
Windows 10
Version of python you are running:
Python 3.7.3
How did you install twine? Did you use your operating system's package manager or pip or something else?
pip install twine
Version of twine you have installed (include complete output of):
twine version 1.13.0 (pkginfo: 1.5.0.1, requests: 2.22.0, setuptools: 30.4.0,
requests-toolbelt: 0.9.1, tqdm: 4.32.2)
Which package repository are you targeting?
azure-batch-extensions
The Issue
twine check
and alsotwine upload
fails to upload long-description with section header. The error message received isCurrent setup I am testing with is:
and the README.rst is
Interestingly the following README.rst passes
Steps to Reproduce
python setup.py sdist
the above setup in a setup.pytwine check .\dist\*.tar.gz
The text was updated successfully, but these errors were encountered: