144 Commits

Author SHA1 Message Date
Elliot Tower
64a9669733 Fix typo in setup.py (#578) 2023-06-29 21:30:34 +01:00
Jet
0ececeeb8d Add back long description to setup (#243) 2023-01-06 22:11:11 +00:00
Xuehai Pan
bc0ca6c308 Packaging with pyproject.toml (#180) 2022-12-05 11:56:00 +00:00
Mark Towers
9157a97c80 Adds wrappers for jax environments converting to numpy and pytorch (#168)
Co-authored-by: Justin Deutsch <djustin8@vt.edu>
Co-authored-by: Gianluca De Cola <42657588+gianlucadecola@users.noreply.github.com>
2022-12-03 19:46:01 +00:00
Rodrigo de Lazcano
678d361e62 Refactor Mujoco Rendering and bump to Mujoco 2.3.0 (#112) 2022-12-01 20:52:45 +00:00
Gianluca De Cola
9b73630d9b Versioned Action wrappers which supports jumpy (#150) 2022-12-01 20:36:11 +00:00
Mark Towers
3dfb4a396d Add support for python 3.11 (#71) 2022-12-01 12:51:17 +00:00
Mark Towers
e9f4655939 Test necessary imports (#146) 2022-12-01 12:18:01 +00:00
Mark Towers
320b52c041 Add shimmy for atari and removes the gym compatibility for the shimmy versions (#125) 2022-12-01 12:04:57 +00:00
Ariel Kwiatkowski
34dfc9a728 Functional API and proof-of-concept jax classic-control envs (#25) (#145) 2022-11-18 21:25:33 +00:00
Mark Towers
37b4c0b0a8 Update the spaces for complete type hinting (and updates numpy to 1.21) (#37) 2022-11-15 14:09:22 +00:00
Markus Krimmel
1b067654e9 Added atari tests to CI, fixed test_gym_conversion that was failing due to missing ROMs (#87) 2022-11-01 11:55:38 +00:00
Mark Towers
6b6d1317ce Remove support for Python 3.6 (#38) 2022-10-25 14:41:09 +01:00
Ariel Kwiatkowski
8b81b7dcc2 Gym-Gymnasium compatibility converter (#61) 2022-10-20 10:30:14 +01:00
Jet
60b7058a68 License.txt -> License (#59) 2022-10-15 16:11:40 +01:00
Jet
274b17de9d setup.py cleanup (#58) 2022-10-14 13:51:58 +01:00
Jet
ff2635c8dd Update setup.py 2022-10-14 11:40:16 +01:00
Jet
61af4504c3 Update setup.py 2022-10-14 11:37:24 +01:00
Jordan Terry
7cda3803f6 Update setup.py 2022-10-13 19:42:36 -04:00
Mark Towers
f6489c38b3 Updated gymnasium to be equivalent to gym v26.2 (#36) 2022-10-05 12:53:45 -04:00
Manuel Goulão
2f8002f2bd Update URL links and Space documentation summaries (#18) 2022-09-16 14:00:12 +01:00
Mark Towers
b48e1626fd Update to gymnasium notices (#14) 2022-09-13 12:14:08 +01:00
Jordan Terry
2e92c98b99 Update setup.py 2022-09-08 09:30:38 -04:00
pseudo-rnd-thoughts
47ba48b611 Rename to gymnasium 2022-09-08 10:11:31 +01:00
pseudo-rnd-thoughts
640c509109 Rename to gymnasium 2022-09-08 10:10:07 +01:00
Mark Towers
d1d0c960c2 Bump ale to 0.8.0 (#3071) 2022-09-06 12:03:51 -04:00
Fiete
aaa6cd9f33 replace references to gymlibrary.ml with new .dev domain (#3053) 2022-08-31 17:33:46 -04:00
Omar Younis
de9eed541b Remove old Render API (#3027)
* init

* add .gitignore

* fix .gitignore

* remove internal backend use

* fix VideoRecorder test

* fix .gitignore

* fix order enforcing tests

* adapt play.py

* reformat

* fix .gitignore

* add type to DummyPlayEnv
2022-08-22 11:21:08 -04:00
Andrea PIERRÉ
607602b531 Add swig as a Box2D dependency (#3009) 2022-08-03 07:40:29 -04:00
Mark Towers
dc39a4ef8e Pin pytest to 7.0.1 (#2898) 2022-06-19 16:49:28 -04:00
Mark Towers
734bd4b577 Rewrite setup (#2865)
* Updated testing requirements based off extra["testing"]

* Updated setup to check the version is valid, added testing and all dependency groups and collects the requirements from requirements.txt to keep everything standardized.

* Updated requirements.txt based on the current minimum gym requirements.txt to work

* Updated requirements.txt based on the current minimum gym requirements.txt to work

* Updated test_requirements.txt based on the current gym full testing requirements

* Pre-commit updates

* Add integer check for the `n` parameter

* The type of self.spaces is an Iterable which is absorbed by the tuple.

* Simplifies the environment checker to two files, env_checker.py and passive_env_checker.py with a new wrapper env_checker.py

* Adds the passive environment checker on `gym.make`

* Ignore the `check_env` warn parameter

* Ignore the `check_env` warn parameter

* Use the `data_equivalence` function

* Remove env_checker PR changes

* Move pip install pytest and mock to py 3.6

* Update setup.py and requirements.txt
2022-06-06 17:27:34 -04:00
Jordan Terry
6b1e30dd4a show readme as pypi description 2022-06-01 00:24:11 -04:00
Mark Towers
0263deb5ab Add support for python 3.6 (#2836)
* Add support for python 3.6

* Add support for python 3.6

* Added check for python 3.6 to not install mujoco as no version exists

* Fixed the install groups for python 3.6

* Re-added python 3.6 support for gym

* black

* Added support for dataclasses through dataclasses module in setup that backports the module

* Fixed install requirements

* Re-added dummy env spec with dataclasses

* Changed type for compatability for python 3.6

* Added a python 3.6 warning

* Fixed python 3.6 typing issue

* Removed __future__ import annotation for python 3.6 support

* Fixed python 3.6 typing
2022-05-25 10:28:19 -04:00
Mark Towers
f2c3f73f3a Updated mujoco to 2.2.0 from 2.1.5 (#2835) 2022-05-24 18:08:57 -04:00
Mark Towers
bbf8f5a467 Bump the ale-py version (#2832)
* Up the ale-py version

* Updates the ale-py version
2022-05-24 10:27:22 -04:00
Rodrigo de Lazcano
3e006f3ea5 Add new MuJoCo bindings (#2762) 2022-05-24 08:47:51 -04:00
Mark Towers
e2266025e6 Pydocstyle utils vector docstring (#2788)
* Added pydocstyle to pre-commit

* Added docstrings for tests and updated the tests for autoreset

* Add pydocstyle exclude folder to allow slowly adding new docstrings

* Add docstrings for setup.py and gym/__init__.py, core.py, error.py and logger.py

* Check that all unwrapped environment are of a particular wrapper type

* Reverted back to import gym.spaces.Space to gym.spaces

* Fixed the __init__.py docstring

* Fixed autoreset autoreset test

* Updated gym __init__.py top docstring

* Fix examples in docstrings

* Add docstrings and type hints where known to all functions and classes in gym/utils and gym/vector

* Remove unnecessary import

* Removed "unused error" and make APIerror deprecated at gym 1.0

* Add pydocstyle description to CONTRIBUTING.md

* Added docstrings section to CONTRIBUTING.md

* Added :meth: and :attr: keywords to docstrings

* Added :meth: and :attr: keywords to docstrings

* Imported annotations from __future__ to fix python 3.7

* Add __future__ import annotations for python 3.7

* isort

* Remove utils and vectors for this PR and spaces for previous PR

* Update gym/envs/classic_control/acrobot.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/envs/classic_control/acrobot.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/envs/classic_control/acrobot.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/spaces/dict.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/utils/env_checker.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/utils/env_checker.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/utils/env_checker.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/utils/env_checker.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/utils/env_checker.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/utils/ezpickle.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/utils/ezpickle.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Update gym/utils/play.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Pre-commit

* Updated docstrings with :meth:

* Updated docstrings with :meth:

* Update gym/utils/play.py

* Update gym/utils/play.py

* Update gym/utils/play.py

* Apply suggestions from code review

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* pre-commit

* Update gym/utils/play.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Updated fps and zoom parameter docstring

* Update play docstring

* Apply suggestions from code review

Added suggested corrections from @markus28

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Pre-commit magic

* Update the `gym.make` docstring with a warning for `env_checker`

* Updated and fixed vector docstrings

* Update test names for reflect the project filename style

Co-authored-by: Markus Krimmel <montcyril@gmail.com>
2022-05-20 09:49:30 -04:00
Mark Towers
1c62d3c6ad Add Pydocstyle to CI (#2785)
* Added pydocstyle to pre-commit

* Added docstrings for tests and updated the tests for autoreset

* Add pydocstyle exclude folder to allow slowly adding new docstrings

* Add docstrings for setup.py and gym/__init__.py, core.py, error.py and logger.py

* Check that all unwrapped environment are of a particular wrapper type

* Reverted back to import gym.spaces.Space to gym.spaces

* Fixed the __init__.py docstring

* Fixed autoreset autoreset test

* Updated gym __init__.py top docstring

* Remove unnecessary import

* Removed "unused error" and make APIerror deprecated at gym 1.0

* Add pydocstyle description to CONTRIBUTING.md

* Added docstrings section to CONTRIBUTING.md

* Added :meth: and :attr: keywords to docstrings

* Added :meth: and :attr: keywords to docstrings

* Update the step docstring placing the return type in the as a note.

* Updated step return type to include each element

* Update maths notation to reward range

* Fixed infinity maths notation
2022-05-10 10:35:45 -04:00
Mark Towers
bf093c6890 Update the flake8 pre-commit ignores (#2778)
* Remove additional ignores from flake8

* Remove all unused imports

* Remove all unused imports

* Update flake8 and pyupgrade

* F841, removed unused variables

* E731, removed lambda assignment to variables

* Remove E731, F403, F405, F524

* Remove E722, bare exceptions

* Remove E712, compare variable == True or == False to is True or is False

* Remove E402, module level import not at top of file

* Added --pre-file-ignores

* Add --per-file-ignores removing E741, E302 and E704

* Add E741, do not use variables named ‘l’, ‘O’, or ‘I’ to ignore issues in classic control

* Fixed issues for pytest==6.2

* Remove unnecessary # noqa

* Edit comment with the removal of E302

* Added warnings and declared module, attr for pyright type hinting

* Remove unused import

* Removed flake8 E302

* Updated flake8 from 3.9.2 to 4.0.1

* Remove unused variable
2022-04-26 11:18:37 -04:00
Andrea PIERRÉ
e913bc81b8 Improve pre-commit workflow (#2602)
* feat: add `isort` to `pre-commit`

* ci: skip `__init__.py` file for `isort`

* ci: make `isort` mandatory in lint pipeline

* docs: add a section on Git hooks

* ci: check isort diff

* fix: isort from master branch

* docs: add pre-commit badge

* ci: update black + bandit versions

* feat: add PR template

* refactor: PR template

* ci: remove bandit

* docs: add Black badge

* ci: try to remove all `|| true` statements

* ci: remove lint_python job

- Remove `lint_python` CI job
- Move `pyupgrade` job to `pre-commit` workflow

* fix: avoid messing with typing

* docs: add a note on running `pre-cpmmit` manually

* ci: apply `pre-commit` to the whole codebase
2022-03-31 15:50:38 -04:00
Michael Joseph Rosenthal
25f80c4bb0 Add py.typed to package_data (#2683)
As is described in https://peps.python.org/pep-0561/#packaging-type-information
2022-03-11 12:15:26 -05:00
J K Terry
3d2146d54c new website and typo 2022-02-20 18:29:38 -05:00
trigaten
a1f14215f3 Enable Legacy Warnings (#2617)
* Update pendulum.py

* version warnings

* black

* try except

* update notices version

* Exception

* nosec

* black

* no loop, stderr

* black
2022-02-17 13:44:11 -05:00
Jesse Farebrother
8dc1b52d21 Bump ale-py v0.7.4 (#2621) 2022-02-17 09:45:52 -05:00
Andrew Tan Jin Shen
6eba48db95 Refactor classic control rendering to use pygame (#2599)
* refactor classic control rendering to use pygame

* Rebase from upstream

* Revert deletion from rebasing

* Remove pyglet
2022-02-11 10:48:42 -05:00
Andrew Tan Jin Shen
2e36cde12e Refactor Lunar Lander and Bipedal Walker to use Pygame (#2552)
* Refactor lunar lander to use pygame

* Fix minor rendering inconsistency

* Refactor bipedal walker to use pygame

* Reformat with black

* Remove viewer

* Fix color for obstacles

* Update dependencies for box2d

* Optimize screen initialization
2022-02-05 09:42:45 -05:00
Jared
91d278f2dd Add 'MIT' to license metadata field in setup.py (#2576) 2022-01-26 21:26:54 -05:00
Ariel Kwiatkowski
186934562f Attempt to fix blackjack rendering tests (#2565)
* Consistently use os.path.join

* Update setup.py

Try to fix tests again
2022-01-19 17:28:43 -05:00
J K Terry
95d649fdec fix pygame rendering dependency 2022-01-19 14:54:20 -05:00
Jesse Farebrother
eb6d826aac Update importlib_metadata entry_point calls (#2538) 2021-12-22 13:54:20 -05:00