Closed guyer closed 5 years ago
Section titles are allowed. I suspect the problem is that your License
field includes a double newline (or even just a newline). That causes problems for the package metadata parser.
The issue is that the multiple lines in your License
field are causing the rest of the file to be interpreted as the Long-Description
. This field should not be your entire license text, it should be just the license name, and you should include a LICENSE file in your distribution.
Essentially a duplicate of pypa/setuptools#1390.
Aha, I see, thank you.
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:
macOS 10.14.5
2) Version of python you are running:
Python 2.7.15 :: Anaconda, Inc.
3) How did you install twine? Did you use your operating system's package manager or pip or something else?
pip
4) Version of twine you have installed (include complete output of):
twine version 1.13.0 (pkginfo: 1.5.0.1, requests: 2.19.1, setuptools: 40.4.0, requests-toolbelt: 0.9.1, tqdm: 4.31.1)
5) Which package repository are you targeting?
https://github.com/usnistgov/fipy
HEAD
has worked around this issue, but it's still exhibited at usnistgov/fipy@d92e715ed77446d9f3b37246502e0421caa30c43If you're having issues uploading a specific package, you must include a copy of the following:
The package's
PKG-INFO
fileDescription:
Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console Classifier: Environment :: X11 Applications Classifier: Intended Audience :: Science/Research Classifier: License :: Public Domain Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Topic :: Scientific/Engineering :: Mathematics Classifier: Topic :: Scientific/Engineering :: Physics Classifier: Topic :: Scientific/Engineering :: Visualization Classifier: Topic :: Software Development :: Libraries :: Python Modules
[distutils] index-servers = pypi
[pypi] username: ???
$ twine check dist/FiPy-3.2+15.gd92e715e.tar.gz Checking distribution dist/FiPy-3.2+15.gd92e715e.tar.gz: warning:
long_description_content_type
missing. defaulting totext/x-rst
. Failed The project's long_description has invalid markup which will not be rendered on PyPI. The following syntax errors were detected: line 2: Severe: Unexpected section title or transition.========