Skip to content

Commit

Permalink
Remove newlines in package description for compatibility with new set…
Browse files Browse the repository at this point in the history
…uptools

Currently many builds are broken with the newest setuptools
This is because of pypa/setuptools#2870
See e.g. pypa/setuptools#1390 pypa/setuptools#2895 pypa/setuptools#2893
  • Loading branch information
Tobias-Fischer authored Nov 18, 2021
1 parent 52f0a36 commit 8a9128b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/catkin_pkg/python_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ def generate_distutils_setup(package_xml_path=os.path.curdir, **kwargs):
data['url'] = package.urls[0].url

if len(package.description) <= 200:
data['description'] = package.description
data['description'] = package.description.replace('\n', ' ')
else:
data['description'] = package.description[:197] + '...'
data['description'] = package.description[:197].replace('\n', ' ') + '...'
data['long_description'] = package.description

data['license'] = ', '.join(package.licenses)
Expand Down

0 comments on commit 8a9128b

Please sign in to comment.