mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-31 13:54:31 +00:00
show readme as pypi description
This commit is contained in:
14
setup.py
14
setup.py
@@ -42,6 +42,18 @@ extras["all"] = list(
|
|||||||
itertools.chain.from_iterable(map(lambda group: extras[group], all_groups))
|
itertools.chain.from_iterable(map(lambda group: extras[group], all_groups))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Uses the readme as the description on PyPI
|
||||||
|
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
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="gym",
|
name="gym",
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
@@ -52,6 +64,8 @@ setup(
|
|||||||
license="MIT",
|
license="MIT",
|
||||||
packages=[package for package in find_packages() if package.startswith("gym")],
|
packages=[package for package in find_packages() if package.startswith("gym")],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
long_description=long_description,
|
||||||
|
long_description_content_type="text/markdown",
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"numpy>=1.18.0",
|
"numpy>=1.18.0",
|
||||||
"cloudpickle>=1.2.0",
|
"cloudpickle>=1.2.0",
|
||||||
|
Reference in New Issue
Block a user