Skip to content

package/python-gymnasium: introduce new package and its test

Xukai Wang via buildroot buildroot 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20250804-python-packages-5e4a98a47c1d

Versions newest first · linked by author and title

  1. v1 Latest posting 2/26 patches 2 repliesIn review
  2. v1 posting 1/22 patches 0 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6package/python-cloudpickle: new packageDEVELOPERS package/Config.in package/python-cloudpickle/Config.in +2 more+30 -02 replies
2/6package/python-farama-notifications: new packageDEVELOPERS package/Config.in package/python-farama-notifications/Config.in +2 more+28 -00 replies
3/6package/python-gymnasium: new packageDEVELOPERS package/Config.in package/python-gymnasium/Config.in +2 more+32 -00 replies
4/6support/testing: add python-cloudpickle testsDEVELOPERS support/testing/tests/package/sample_python_cloudpickle.py support/testing/tests/package/test_python_cloudpickle.py+20 -00 replies
5/6support/testing: add python-farama-notifications testsDEVELOPERS support/testing/tests/package/sample_python_farama_notifications.py support/testing/tests/package/test_python_farama_notifications.py+20 -00 replies
6/6support/testing: add python-gymnasium testsDEVELOPERS support/testing/tests/package/sample_python_gymnasium.py support/testing/tests/package/test_python_gymnasium.py+26 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [RESEND: v1 0/6] package/python-gymnasium: introduce new package and its test

This series introduces the python-gymnasium package, a widely adopted library providing a standard API and a comprehensive suite of environments for reinforcement learning research and development. Gymnasium is the maintained successor to OpenAI Gym, developed by the Farama Foundation. and its associated runtime test verifies fundamental operations such as environment creation (using "CartPole-v1"), resetting, taking a step, and proper environment closure.

To fully enable python-gymnasium and ensure a robust Python environment for machine learning workflows, its critical dependencies are also included in this series:

- python-cloudpickle: Adds support for the cloudpickle library, which extends Python's standard pickle module to handle more complex Python objects, including functions and lambda expressions. This is a fundamental serialization requirement for many advanced Python applications, including gymnasium.
A basic runtime test is included to verify its serialization capabilities.

- python-farama-notifications: Introduces the farama-notifications package, designed to provide a unified notification mechanism for all libraries maintained by the Farama Foundation. This ensures consistent user feedback for runtime events and deprecations across their ecosystem. A runtime test verifies package import and notification storage.

All of these test was tested by support/testing/run-tests and these additions collectively provide a foundational set of packages necessary for modern reinforcement learning development within the Buildroot environment, leveraging the latest Farama Foundation libraries.

Xukai Wang (6):
package/python-cloudpickle: new package package/python-farama-notifications: new package package/python-gymnasium: new package support/testing: add python-cloudpickle tests support/testing: add python-farama-notifications tests support/testing: add python-gymnasium tests

 DEVELOPERS                                       | 11 +++++++++++
 package/Config.in                                |  3 +++
 package/python-cloudpickle/Config.in             |  7 +++++++
 .../python-cloudpickle/python-cloudpickle.hash   |  5 +++++
 package/python-cloudpickle/python-cloudpickle.mk | 14 ++++++++++++++
 package/python-farama-notifications/Config.in    |  7 +++++++
 .../python-farama-notifications.hash             |  5 +++++
 .../python-farama-notifications.mk               | 14 ++++++++++++++
 package/python-gymnasium/Config.in               | 11 +++++++++++
 package/python-gymnasium/python-gymnasium.hash   |  5 +++++
 package/python-gymnasium/python-gymnasium.mk     | 14 ++++++++++++++
 .../tests/package/sample_python_cloudpickle.py   |  6 ++++++
 .../sample_python_farama_notifications.py        |  6 ++++++
 .../tests/package/sample_python_gymnasium.py     |  8 ++++++++
 .../tests/package/test_python_cloudpickle.py     | 12 ++++++++++++
 .../package/test_python_farama_notifications.py  | 12 ++++++++++++
 .../tests/package/test_python_gymnasium.py       | 16 ++++++++++++++++
 17 files changed, 156 insertions(+)
 create mode 100644 package/python-cloudpickle/Config.in
 create mode 100644 package/python-cloudpickle/python-cloudpickle.hash
 create mode 100644 package/python-cloudpickle/python-cloudpickle.mk
 create mode 100644 package/python-farama-notifications/Config.in
 create mode 100644 package/python-farama-notifications/python-farama-notifications.hash
 create mode 100644 package/python-farama-notifications/python-farama-notifications.mk
 create mode 100644 package/python-gymnasium/Config.in
 create mode 100644 package/python-gymnasium/python-gymnasium.hash
 create mode 100644 package/python-gymnasium/python-gymnasium.mk
 create mode 100644 support/testing/tests/package/sample_python_cloudpickle.py
 create mode 100644 support/testing/tests/package/sample_python_farama_notifications.py
 create mode 100644 support/testing/tests/package/sample_python_gymnasium.py
 create mode 100644 support/testing/tests/package/test_python_cloudpickle.py
 create mode 100644 support/testing/tests/package/test_python_farama_notifications.py
 create mode 100644 support/testing/tests/package/test_python_gymnasium.py
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot