bdist_wheel misbehaves on Windows newlines
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- build-system
Research direction
Reproduce the issue with setup.py using python setup.py bdist_wheel, then inspect the generated dist/package-0.0.0-py3-none-any.whl/package-0.0.0.dist-info/METADATA and compare it with package.egg-info/PKG-INFO from sdist. The work is done when the Windows wheel preserves both description lines or raises an error for the unsupported newline handling.
Written by the indexing model from the issue text.
Description
Environment
Python 3.6 64 bits, Windows 10.
>>> setuptools.__version__
'36.2.6'
Steps to reproduce
setup.py
from setuptools import setup
setup(
name='package',
version='0.0.0',
long_description='first line\r\nsecond line',
)
$ python setup.py bdist_wheel
running bdist_wheel
running build
installing to build\bdist.win-amd64\wheel
running install
running install_egg_info
running egg_info
writing package.egg-info\PKG-INFO
writing dependency_links to package.egg-info\dependency_links.txt
writing top-level names to package.egg-info\top_level.txt
reading manifest file 'package.egg-info\SOURCES.txt'
writing manifest file 'package.egg-info\SOURCES.txt'
Copying package.egg-info to build\bdist.win-amd64\wheel\.\package-0.0.0-py3.6.egg-info
running install_scripts
creating build\bdist.win-amd64\wheel\package-0.0.0.dist-info\WHEEL
Observed behavior
dist\package-0.0.0-py3-none-any.whl\package-0.0.0.dist-info\METADATA
Metadata-Version: 2.0
Name: package
Version: 0.0.0
Summary: UNKNOWN
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
first line
Expected behavior
METADATA should include "second line", or an error raised during build.
Notes
python setup.py sdist generates a file with both lines correctly in the description field of PKG-INFO, but they maintain their '\r\n' line endings while the rest of the file uses only \n. This is very unusual and should probably be changed or warned against.
I'm not sure if this issue should be reported here or in https://github.com/pypa/wheel, so apologies if I'm in the wrong place.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pypa/setuptools
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
pypa/setuptools#5272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
pypa/setuptools#5235 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pypa/setuptools#5234 · 1 comment ·
-
bug Needs Triage
Difficulty 1/5 Under an hour Newbie friendliness 78/100
pypa/setuptools#4135 · 1 comment · 1 reaction ·
-
documentation Needs Triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pypa/setuptools#2753 ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100