Skip to content

Commit fa868d7

Browse files
author
Anonymous Committer
committed
Use README.md as the source for long_description in setup.py
1 parent 4fe65a5 commit fa868d7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
"typing-extensions >= 4.7.1",
2929
]
3030

31+
with open("README.md", "r", encoding="utf-8") as fh:
32+
long_description = fh.read()
33+
3134
setup(
3235
name=NAME,
3336
version=VERSION,
@@ -41,8 +44,6 @@
4144
packages=find_packages(exclude=["test", "tests"]),
4245
include_package_data=True,
4346
long_description_content_type='text/markdown',
44-
long_description="""\
45-
Integrated API platform documentation. This document covers all services provided by API Shop. For details on common response codes (like 401, 403, 500), please refer to our unified error code documentation.
46-
""", # noqa: E501
47+
long_description=long_description,
4748
package_data={"justserpapi": ["py.typed"]},
4849
)

0 commit comments

Comments
 (0)