-
-
Notifications
You must be signed in to change notification settings - Fork 875
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packaging with
pyproject.toml
(#180)
- Loading branch information
Showing
18 changed files
with
164 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,113 @@ | ||
# Package ###################################################################### | ||
|
||
[build-system] | ||
requires = ["setuptools >= 61.0.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "gymnasium" | ||
description = "A standard API for reinforcement learning and a diverse set of reference environments (formerly Gym)." | ||
readme = "README.md" | ||
requires-python = ">= 3.7" | ||
authors = [{ name = "Farama Foundation", email = "[email protected]" }] | ||
license = { text = "MIT License" } | ||
keywords = ["Reinforcement Learning", "game", "RL", "AI", "gymnasium"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", # change to `5 - Production/Stable` when ready | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence', | ||
] | ||
dependencies = [ | ||
"numpy >=1.21.0", | ||
"jax-jumpy >=0.2.0", | ||
"cloudpickle >=1.2.0", | ||
"importlib-metadata >=4.8.0; python_version < '3.10'", | ||
"typing-extensions >=4.3.0; python_version == '3.7'", | ||
"gymnasium-notices >=0.0.1", | ||
"shimmy >=0.1.0,<1.0", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
# Update dependencies in `all` if any are added or removed | ||
atari = ["shimmy[atari] >=0.1.0,<1.0"] | ||
accept-rom-license = ["autorom[accept-rom-license] ~=0.4.2"] | ||
box2d = ["box2d-py ==2.3.5", "pygame ==2.1.3.dev8", "swig ==4.*"] | ||
classic-control = ["pygame ==2.1.3.dev8"] | ||
classic_control = ["pygame ==2.1.3.dev8"] # kept for backward compatibility | ||
mujoco-py = ["mujoco-py >=2.1,<2.2"] | ||
mujoco_py = ["mujoco-py >=2.1,<2.2"] # kept for backward compatibility | ||
mujoco = ["mujoco >=2.3.0", "imageio >=2.14.1"] | ||
toy-text = ["pygame ==2.1.3.dev8"] | ||
toy_text = ["pygame ==2.1.3.dev8"] # kept for backward compatibility | ||
jax = ["jax ==0.3.20", "jaxlib ==0.3.20"] | ||
other = [ | ||
"lz4 >=3.1.0", | ||
"opencv-python >=3.0", | ||
"matplotlib >=3.0", | ||
"moviepy >=1.0.0", | ||
"tensorflow >=2.1.0", | ||
"torch >=1.0.0", | ||
] | ||
all = [ | ||
# All dependencies above except accept-rom-license | ||
# NOTE: No need to manually remove the duplicates, setuptools automatically does that. | ||
# atari | ||
"shimmy[atari] >=0.1.0,<1.0", | ||
# box2d | ||
"box2d-py ==2.3.5", | ||
"pygame ==2.1.3.dev8", | ||
"swig ==4.*", | ||
# classic-control | ||
"pygame ==2.1.3.dev8", | ||
# mujoco-py | ||
"mujoco-py >=2.1,<2.2", | ||
# mujoco | ||
"mujoco >=2.3.0", | ||
"imageio >=2.14.1", | ||
# toy-text | ||
"pygame ==2.1.3.dev8", | ||
# jax | ||
"jax ==0.3.20", | ||
"jaxlib ==0.3.20", | ||
# other | ||
"lz4 >=3.1.0", | ||
"opencv-python >=3.0", | ||
"matplotlib >=3.0", | ||
"moviepy >=1.0.0", | ||
"tensorflow >=2.1.0", | ||
"torch >=1.0.0", | ||
] | ||
testing = ["pytest ==7.1.3"] | ||
|
||
[project.urls] | ||
Homepage = "https://farama.org" | ||
Repository = "https://github.com/Farama-Foundation/Gymnasium" | ||
Documentation = "https://gymnasium.farama.org" | ||
"Bug Report" = "https://github.com/Farama-Foundation/Gymnasium/issues" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["gymnasium", "gymnasium.*"] | ||
|
||
[tool.setuptools.package-data] | ||
gymnasium = [ | ||
"envs/mujoco/assets/*.xml", | ||
"envs/classic_control/assets/*.png", | ||
"envs/toy_text/font/*.ttf", | ||
"envs/toy_text/img/*.png", | ||
"py.typed", | ||
] | ||
|
||
# Linters and Test tools ####################################################### | ||
|
||
[tool.black] | ||
|
@@ -7,6 +117,7 @@ safe = true | |
atomic = true | ||
profile = "black" | ||
src_paths = ["gymnasium", "tests", "docs/scripts"] | ||
extra_standard_library = ["typing_extensions"] | ||
indent = 4 | ||
lines_after_imports = 2 | ||
multi_line_output = 3 | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.