warehouse: `long_description_content_type` missing. defaulting to `text/x-rst`.
It isn’t missing; checked some existing Issues, haven’t found a fix. Details below; anything unique or did I miss a solution?
Win OS, Anaconda Powershell Prompt, conda virtual env. README.md, setup.py
(viz) PS C:\see-rnn> python setup.py sdist bdist_wheel
Build logs
running sdist
running egg_info
writing see_rnn.egg-info\PKG-INFO
writing dependency_links to see_rnn.egg-info\dependency_links.txt
writing requirements to see_rnn.egg-info\requires.txt
writing top-level names to see_rnn.egg-info\top_level.txt
reading manifest file 'see_rnn.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'see_rnn.egg-info\SOURCES.txt'
running check
creating see-rnn-1.1
creating see-rnn-1.1\see_rnn
creating see-rnn-1.1\see_rnn.egg-info
copying files to see-rnn-1.1...
copying LICENSE -> see-rnn-1.1
copying MANIFEST.in -> see-rnn-1.1
copying README.md -> see-rnn-1.1
copying requirements.txt -> see-rnn-1.1
copying setup.py -> see-rnn-1.1
copying see_rnn\__init__.py -> see-rnn-1.1\see_rnn
copying see_rnn\inspect_gen.py -> see-rnn-1.1\see_rnn
copying see_rnn\inspect_rnn.py -> see-rnn-1.1\see_rnn
copying see_rnn\utils.py -> see-rnn-1.1\see_rnn
copying see_rnn\visuals_gen.py -> see-rnn-1.1\see_rnn
copying see_rnn\visuals_rnn.py -> see-rnn-1.1\see_rnn
copying see_rnn.egg-info\PKG-INFO -> see-rnn-1.1\see_rnn.egg-info
copying see_rnn.egg-info\SOURCES.txt -> see-rnn-1.1\see_rnn.egg-info
copying see_rnn.egg-info\dependency_links.txt -> see-rnn-1.1\see_rnn.egg-info
copying see_rnn.egg-info\requires.txt -> see-rnn-1.1\see_rnn.egg-info
copying see_rnn.egg-info\top_level.txt -> see-rnn-1.1\see_rnn.egg-info
copying see_rnn.egg-info\zip-safe -> see-rnn-1.1\see_rnn.egg-info
Writing see-rnn-1.1\setup.cfg
creating dist
Creating tar archive
removing 'see-rnn-1.1' (and everything under it)
running bdist_wheel
running build
running build_py
installing to build\bdist.win-amd64\wheel
running install
running install_lib
creating build\bdist.win-amd64\wheel
creating build\bdist.win-amd64\wheel\see_rnn
copying build\lib\see_rnn\inspect_gen.py -> build\bdist.win-amd64\wheel\.\see_rnn
copying build\lib\see_rnn\inspect_rnn.py -> build\bdist.win-amd64\wheel\.\see_rnn
copying build\lib\see_rnn\utils.py -> build\bdist.win-amd64\wheel\.\see_rnn
copying build\lib\see_rnn\visuals_gen.py -> build\bdist.win-amd64\wheel\.\see_rnn
copying build\lib\see_rnn\visuals_rnn.py -> build\bdist.win-amd64\wheel\.\see_rnn
copying build\lib\see_rnn\__init__.py -> build\bdist.win-amd64\wheel\.\see_rnn
running install_egg_info
Copying see_rnn.egg-info to build\bdist.win-amd64\wheel\.\see_rnn-1.1-py3.7.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build\bdist.win-amd64\wheel\see_rnn-1.1.dist-info\WHEEL
creating 'dist\see_rnn-1.1-py3-none-any.whl' and adding 'build\bdist.win-amd64\wheel' to it
adding 'see_rnn/__init__.py'
adding 'see_rnn/inspect_gen.py'
adding 'see_rnn/inspect_rnn.py'
adding 'see_rnn/utils.py'
adding 'see_rnn/visuals_gen.py'
adding 'see_rnn/visuals_rnn.py'
adding 'see_rnn-1.1.dist-info/LICENSE'
adding 'see_rnn-1.1.dist-info/METADATA'
adding 'see_rnn-1.1.dist-info/WHEEL'
adding 'see_rnn-1.1.dist-info/top_level.txt'
adding 'see_rnn-1.1.dist-info/zip-safe'
adding 'see_rnn-1.1.dist-info/RECORD'
removing build\bdist.win-amd64\wheel
(viz) PS C:\see-rnn> twine check dist/*
Checking dist\see_rnn-1.1-py3-none-any.whl: PASSED, with warnings
warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
Checking dist\see-rnn-1.1.tar.gz: FAILED
`long_description` has syntax errors in markup and would not be rendered on PyPI.
line 99: Warning: Inline literal start-string without end-string.
warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
setup(...
long_description=read_file('README.md'),
long_description_content_type='text/markdown', ...)
wheel 0.34.2 py_1 conda-forge
twine 3.1.1 py37_0 conda-forge
setuptools 46.1.3 py37hc8dfbb8_0 conda-forge
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (7 by maintainers)
Problem solved. It turned out that setup function from distutils.core was the cause. After I used setup function from setuptools, the problem went away. Thank you
@OverLordGoldDragon Github’s fenced code blocks allow you to specify the syntax highlighter, which includes languages like
pythonand other things likediff. Here’s the “source” for that comment:Here’s the issue:
Those Windows-style line terminators are leaking into the metadata and causing it to be misformatted.
Can you try doing the following in your
setup.pyinstead: