setup.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. from setuptools import setup
  2. with open("README.md") as fh:
  3. long_description = ""
  4. header_count = 0
  5. for line in fh:
  6. if line.startswith("##"):
  7. header_count += 1
  8. if header_count < 2:
  9. long_description += line
  10. else:
  11. break
  12. # pytest is pinned to 7.0.1 as this is last version for python 3.6
  13. extras = {"testing": ["pytest==7.0.1"]}
  14. setup(
  15. name="MiniGrid",
  16. author="Farama Foundation",
  17. author_email="jkterry@farama.org",
  18. classifiers=[
  19. "Development Status :: 5 - Production/Stable",
  20. "Programming Language :: Python :: 3",
  21. "Programming Language :: Python :: 3.7",
  22. "Programming Language :: Python :: 3.8",
  23. "Programming Language :: Python :: 3.9",
  24. "Programming Language :: Python :: 3.10",
  25. ],
  26. version="1.2.1",
  27. keywords="memory, environment, agent, rl, gym",
  28. url="https://github.com/Farama-Foundation/MiniGrid",
  29. description="Minimalistic gridworld reinforcement learning environments",
  30. extras_require=extras,
  31. packages=["minigrid", "minigrid.envs"],
  32. entry_points={"gym.envs": ["__root__ = minigrid.__init__:register_minigrid_envs"]},
  33. license="Apache",
  34. long_description=long_description,
  35. long_description_content_type="text/markdown",
  36. install_requires=[
  37. "gym>=0.26",
  38. "numpy>=1.18.0",
  39. "matplotlib>=3.0",
  40. ],
  41. python_requires=">=3.7",
  42. tests_require=extras["testing"],
  43. )