misc/py-gymnasium: New port: API for reinforcement learning & diverse set of reference environments

This commit is contained in:
Yuri Victorovich 2025-09-01 00:09:57 -07:00
parent a6fbc63efc
commit 60a95f1840
4 changed files with 39 additions and 0 deletions

View File

@ -451,6 +451,7 @@
SUBDIR += py-gguf
SUBDIR += py-google-ai-generativelanguage
SUBDIR += py-gpiozero
SUBDIR += py-gymnasium
SUBDIR += py-halo
SUBDIR += py-hf-doc-builder
SUBDIR += py-hf-xet

View File

@ -0,0 +1,31 @@
PORTNAME= gymnasium
DISTVERSION= 1.2.0
CATEGORIES= misc python # machine-learning
MASTER_SITES= PYPI # no tarball
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= API for reinforcement learning & diverse set of reference environments
WWW= https://gymnasium.farama.org/ \
https://github.com/Farama-Foundation/Gymnasium
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cloudpickle>=1.2.0:devel/py-cloudpickle@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}farama-notifications>=0.0.1:devel/py-Farama-Notifications@${PY_FLAVOR} \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3.0:devel/py-typing-extensions@${PY_FLAVOR}
USES= python
USE_PYTHON= pep517 autoplist pytest
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
NO_ARCH= yes
# tests as of 1.2.0: 9 passed in 2.09s
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1756708596
SHA256 (gymnasium-1.2.0.tar.gz) = 344e87561012558f603880baf264ebc97f8a5c997a957b0c9f910281145534b0
SIZE (gymnasium-1.2.0.tar.gz) = 821142

View File

@ -0,0 +1,4 @@
Gymnasium is an open source Python library for developing and comparing
reinforcement learning algorithms by providing a standard API to communicate
between learning algorithms and environments, as well as a standard set of
environments compliant with that API.