From owner-dev-commits-ports-main@freebsd.org Sun May 16 18:32:47 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 864C162C828; Sun, 16 May 2021 18:32:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FjrV72pqCz3GtJ; Sun, 16 May 2021 18:32:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 47F221D6E6; Sun, 16 May 2021 18:32:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14GIWlrt020734; Sun, 16 May 2021 18:32:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14GIWlPA020733; Sun, 16 May 2021 18:32:47 GMT (envelope-from git) Date: Sun, 16 May 2021 18:32:47 GMT Message-Id: <202105161832.14GIWlPA020733@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 8f7ccf0124d5 - main - devel/py-bullet3: Update 3.09 -> 3.17 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8f7ccf0124d5f8c2cd563a5c80dd18902b322781 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 May 2021 18:32:47 -0000 The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8f7ccf0124d5f8c2cd563a5c80dd18902b322781 commit 8f7ccf0124d5f8c2cd563a5c80dd18902b322781 Author: Yuri Victorovich AuthorDate: 2021-05-16 17:51:05 +0000 Commit: Yuri Victorovich CommitDate: 2021-05-16 18:32:37 +0000 devel/py-bullet3: Update 3.09 -> 3.17 Also: * Add missing dependencies * Add the test target based on the example from the documentation Reported by: portscout --- devel/py-bullet3/Makefile | 10 ++++++++-- devel/py-bullet3/distinfo | 6 +++--- devel/py-bullet3/files/test.py | 17 +++++++++++++++++ 3 files changed, 28 insertions(+), 5 deletions(-) diff --git a/devel/py-bullet3/Makefile b/devel/py-bullet3/Makefile index 34906bb68480..bcf9e9349e6c 100644 --- a/devel/py-bullet3/Makefile +++ b/devel/py-bullet3/Makefile @@ -1,5 +1,5 @@ PORTNAME= bullet3 -DISTVERSION= 3.09 +DISTVERSION= 3.17 CATEGORIES= devel PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -9,8 +9,11 @@ COMMENT= Python version of 3D collision detection library Bullet LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/LICENSE.txt +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}gym>0:math/py-gym@${PY_FLAVOR} + USES= compiler:c++11-lang gl localbase python:3.6+ -USE_PYTHON= autoplist distutils +USE_PYTHON= distutils autoplist USE_GL= gl glew USE_GITHUB= yes @@ -19,4 +22,7 @@ GH_ACCOUNT= bulletphysics post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pybullet*.so +do-test: install # test require graphical environment + @${PYTHON_CMD} ${FILESDIR}/test.py + .include diff --git a/devel/py-bullet3/distinfo b/devel/py-bullet3/distinfo index ac38f69c0828..86991172c2a3 100644 --- a/devel/py-bullet3/distinfo +++ b/devel/py-bullet3/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1614982042 -SHA256 (bulletphysics-bullet3-3.09_GH0.tar.gz) = f2feef9322329c0571d9066fede2db0ede92b19f7f7fdf54def3b4651f02af03 -SIZE (bulletphysics-bullet3-3.09_GH0.tar.gz) = 129274815 +TIMESTAMP = 1621185390 +SHA256 (bulletphysics-bullet3-3.17_GH0.tar.gz) = baa642c906576d4d98d041d0acb80d85dd6eff6e3c16a009b1abf1ccd2bc0a61 +SIZE (bulletphysics-bullet3-3.17_GH0.tar.gz) = 131995187 diff --git a/devel/py-bullet3/files/test.py b/devel/py-bullet3/files/test.py new file mode 100644 index 000000000000..935f98e87108 --- /dev/null +++ b/devel/py-bullet3/files/test.py @@ -0,0 +1,17 @@ +import pybullet as p +import time +import pybullet_data + +physicsClient = p.connect(p.GUI)#or p.DIRECT for non-graphical version +p.setAdditionalSearchPath(pybullet_data.getDataPath()) #optionally +p.setGravity(0,0,-10) +planeId = p.loadURDF("plane.urdf") +cubeStartPos = [0,0,1] +cubeStartOrientation = p.getQuaternionFromEuler([0,0,0]) +boxId = p.loadURDF("r2d2.urdf",cubeStartPos, cubeStartOrientation) +for i in range (10000): + p.stepSimulation() + time.sleep(1./240.) +cubePos, cubeOrn = p.getBasePositionAndOrientation(boxId) +print(cubePos,cubeOrn) +p.disconnect()