Skip to content

Commit 8332310

Browse files
committed
add long description to pypi page
1 parent 128b9ae commit 8332310

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,20 @@
1010
print("no version supplied")
1111
sys.exit(1)
1212

13+
def get_readme_md_contents():
14+
"""read the contents of your README file"""
15+
with open("README.md", encoding='utf-8') as f:
16+
long_description = f.read()
17+
return long_description
18+
1319
setup(
1420
name="polygon-api-client",
1521
version=version,
1622
description="Polygon API client",
17-
author_email="[email protected]",
18-
url="https://github.com/Polygon-io/client-python",
23+
long_description=get_readme_md_contents(),
24+
long_description_content_type="text/markdown",
25+
author_email="[email protected]",
26+
url="https://github.com/polygon-io/client-python",
1927
packages=find_packages(),
2028
classifiers=[
2129
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)