Skip to content

Commit

Permalink
sdist builder - include long description content type
Browse files Browse the repository at this point in the history
  • Loading branch information
kapilt committed Feb 7, 2020
1 parent ed44342 commit bfbeb9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions poetry/masonry/builders/sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
'version': {version!r},
'description': {description!r},
'long_description': {long_description!r},
'long_description_content_type': {long_description_content_type!r},
'author': {author!r},
'author_email': {author_email!r},
'maintainer': {maintainer!r},
Expand Down Expand Up @@ -185,6 +186,9 @@ def build_setup(self): # type: () -> bytes
version=to_str(self._meta.version),
description=to_str(self._meta.summary),
long_description=to_str(self._meta.description),
long_description_content_type=to_str(
self._meta.description_content_type
),
author=to_str(self._meta.author),
author_email=to_str(self._meta.author_email),
maintainer=to_str(self._meta.maintainer),
Expand Down
1 change: 1 addition & 0 deletions tests/masonry/builders/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def test_make_setup():
"my_package.sub_pkg2",
"my_package.sub_pkg3",
]
assert ns["setup_kwargs"]["long_description_content_type"] == "text/x-rst"
assert ns["install_requires"] == ["cachy[msgpack]>=0.2.0,<0.3.0", "cleo>=0.6,<0.7"]
assert ns["entry_points"] == {
"console_scripts": [
Expand Down

0 comments on commit bfbeb9a

Please sign in to comment.