git: e3f6add9db52 - main - math/py-gym: Update to 0.21.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 21 Nov 2021 18:28:42 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e3f6add9db52afb1da325a97ff1c9f90776a595b

commit e3f6add9db52afb1da325a97ff1c9f90776a595b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-11-21 18:20:42 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-11-21 18:20:42 +0000

    math/py-gym: Update to 0.21.0
    
    Changes:        https://github.com/openai/gym/releases
---
 math/py-gym/Makefile | 10 ++++++++--
 math/py-gym/distinfo |  6 +++---
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/math/py-gym/Makefile b/math/py-gym/Makefile
index 824d65c69f0d..44348821aa9c 100644
--- a/math/py-gym/Makefile
+++ b/math/py-gym/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	gym
-PORTVERSION=	0.20.0
+PORTVERSION=	0.21.0
 CATEGORIES=	math python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -21,4 +21,10 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4.8.1:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/math/py-gym/distinfo b/math/py-gym/distinfo
index c57ea03656c1..fe7c1aed288f 100644
--- a/math/py-gym/distinfo
+++ b/math/py-gym/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1635730993
-SHA256 (gym-0.20.0.tar.gz) = ca963d003cf8b7db8205865de6f3fed605e17e8e488f55ed9118b7768ea21100
-SIZE (gym-0.20.0.tar.gz) = 1565009
+TIMESTAMP = 1637073008
+SHA256 (gym-0.21.0.tar.gz) = 0fd1ce165c754b4017e37a617b097c032b8c3feb8a0394ccc8777c7c50dddff3
+SIZE (gym-0.21.0.tar.gz) = 1544944