Skip to content

Commit

Permalink
Add back long description to setup (openai#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjshoots authored Jan 6, 2023
1 parent c2a3877 commit 0ececee
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,19 @@ def get_version():
raise RuntimeError("bad version data in __init__.py")


setup(name="gymnasium", version=get_version())
def get_description():
"""Gets the description from the readme."""
with open("README.md") as fh:
long_description = ""
header_count = 0
for line in fh:
if line.startswith("##"):
header_count += 1
if header_count < 2:
long_description += line
else:
break
return long_description


setup(name="gymnasium", version=get_version(), long_description=get_description())

0 comments on commit 0ececee

Please sign in to comment.