[gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyrr/

2024-05-31 Thread Henri Gasc
commit: 71887891c58b10f954f41247726416fa57524c6d
Author: Henri Gasc  eurecom  fr>
AuthorDate: Fri May 31 21:09:40 2024 +
Commit: Henri Gasc  eurecom  fr>
CommitDate: Fri May 31 22:16:02 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=71887891

dev-python/pyrr: Update numpy version

Closes: https://bugs.gentoo.org/932271
Signed-off-by: Henri Gasc  eurecom.fr>

 dev-python/pyrr/{pyrr-0.10.3.ebuild => pyrr-0.10.3-r1.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/pyrr/pyrr-0.10.3.ebuild 
b/dev-python/pyrr/pyrr-0.10.3-r1.ebuild
similarity index 94%
rename from dev-python/pyrr/pyrr-0.10.3.ebuild
rename to dev-python/pyrr/pyrr-0.10.3-r1.ebuild
index af4ee13fa..6608fae3e 100644
--- a/dev-python/pyrr/pyrr-0.10.3.ebuild
+++ b/dev-python/pyrr/pyrr-0.10.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2023-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -20,7 +20,7 @@ IUSE="doc"
 
 RDEPEND="
dev-python/multipledispatch[${PYTHON_USEDEP}]
-   dev-python/numpy[${PYTHON_USEDEP}]
+   

[gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyrr/

2023-09-02 Thread Henri Gasc
commit: 80b747a8d9a857d168dddfb4c1c3389f45262e82
Author: Henri Gasc  eurecom  fr>
AuthorDate: Sat Sep  2 19:10:18 2023 +
Commit: Henri Gasc  eurecom  fr>
CommitDate: Sat Sep  2 19:10:31 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=80b747a8

dev-python/pyrr: enable py3.12

Signed-off-by: Henri Gasc  eurecom.fr>

 dev-python/pyrr/pyrr-0.10.3.ebuild | 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/dev-python/pyrr/pyrr-0.10.3.ebuild 
b/dev-python/pyrr/pyrr-0.10.3.ebuild
index 898a0f9ca8..af4ee13fa9 100644
--- a/dev-python/pyrr/pyrr-0.10.3.ebuild
+++ b/dev-python/pyrr/pyrr-0.10.3.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 
 inherit distutils-r1
 
@@ -18,11 +18,14 @@ SLOT="0"
 KEYWORDS="~amd64"
 IUSE="doc"
 
-BDEPEND="
+RDEPEND="
dev-python/multipledispatch[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   ${RDEPEND}
doc? (
-   dev-python/sphinx[${PYTHON_USEDEP}]
+   

[gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyrr/

2023-03-12 Thread Henri Gasc
commit: 5c8626d61a59319a1311936d997946fe98798ac5
Author: Henri Gasc  eurecom  fr>
AuthorDate: Sun Mar 12 12:00:23 2023 +
Commit: Henri Gasc  eurecom  fr>
CommitDate: Sun Mar 12 17:37:47 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5c8626d6

dev-python/pyrr: unkeyword 0.10.3 for ~x86, allow tests and doc

Closes: https://bugs.gentoo.org/893460
Signed-off-by: Henri Gasc  eurecom.fr>

 dev-python/pyrr/pyrr-0.10.3.ebuild | 37 ++---
 1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/dev-python/pyrr/pyrr-0.10.3.ebuild 
b/dev-python/pyrr/pyrr-0.10.3.ebuild
index 574118c51..038b8a499 100644
--- a/dev-python/pyrr/pyrr-0.10.3.ebuild
+++ b/dev-python/pyrr/pyrr-0.10.3.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{9..11} )
 
 inherit distutils-r1
 
@@ -15,32 +15,39 @@ S="${WORKDIR}/Pyrr-${PV}"
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64"
+IUSE="doc"
 
-RDEPEND=""
 BDEPEND="
dev-python/multipledispatch[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
-   dev-python/setuptools[${PYTHON_USEDEP}]
-   dev-python/wheel[${PYTHON_USEDEP}]
-   dev-python/sphinx[${PYTHON_USEDEP}]
+   doc? (
+   dev-python/sphinx[${PYTHON_USEDEP}]
+   )
 "
 DEPEND="${BDEPEND}"
 
 python_compile() {
distutils-r1_python_compile
-   find ./ -type f -exec sed -i 
's/sphinx.ext.pngmath/sphinx.ext.imgmath/g' {} \;
-   emake man -C docs
+   if use doc; then
+   find "${S}/docs" -type f -exec sed -i 
's/sphinx\.ext\.pngmath/sphinx\.ext\.imgmath/g' {} \;
+   emake man -C docs
+   fi
 }
 
 python_install() {
distutils-r1_python_install
-   doman "${S}/docs/build/man/pyrr.1"
+   use doc && doman "${S}/docs/build/man/pyrr.1"
 }
 
-# The tests failed with `module 'numpy' has no attribute 'float'`
-# distutils_enable_tests pytest
-# python_test() {
-# cd "${T}" || die
-# epytest "${S}"/tests || die "Tests failed with ${EPYTHON}"
-# }
+distutils_enable_tests pytest
+python_test() {
+   local 
EPYTEST_DESELECT="tests/test_matrix44.py::test_matrix44::test_create_perspective_projection_matrix_dtype"
+   find "${S}/tests" -iname "*.py" -exec sed -i \
+   -e 's/np\.float/float/g' \
+   -e 's/float32/np\.float32/g' \
+   -e 's/np\.int/int/g' \
+   -e 's/int16/np\.int16/g' \
+   {} \;
+   epytest "${S}/tests" || die "Tests failed with ${EPYTHON}"
+}



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyrr/

2023-02-06 Thread Henri Gasc
commit: 284c01bc02a6492e2571dd1953b352ee71ba088d
Author: Henri Gasc  eurecom  fr>
AuthorDate: Mon Feb  6 16:41:11 2023 +
Commit: Henri Gasc  eurecom  fr>
CommitDate: Mon Feb  6 18:40:26 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=284c01bc

dev-python/pyrr: new package, add 0.10.3

Signed-off-by: Henri Gasc  eurecom.fr>

 dev-python/pyrr/Manifest   |  1 +
 dev-python/pyrr/metadata.xml   | 12 ++
 dev-python/pyrr/pyrr-0.10.3.ebuild | 46 ++
 3 files changed, 59 insertions(+)

diff --git a/dev-python/pyrr/Manifest b/dev-python/pyrr/Manifest
new file mode 100644
index 0..383fae89a
--- /dev/null
+++ b/dev-python/pyrr/Manifest
@@ -0,0 +1 @@
+DIST v0.10.3.gh.tar.gz 66011 BLAKE2B 
843cb7199daae203e93567ad90a8f4456d9e940830d8a88bbe3b316900ccd38df996016b40435b55e857364312c5bca55d078f416a24f9badbe9867039fbe662
 SHA512 
f3f045604e28f4a944ea0528363c233a75413a6039bd11b90eeeafadcaaf0ef44bc1303581f2e78adcfb9a365f719be64a24adf1cec8c5ef1abf5642dea58df4

diff --git a/dev-python/pyrr/metadata.xml b/dev-python/pyrr/metadata.xml
new file mode 100644
index 0..16493659e
--- /dev/null
+++ b/dev-python/pyrr/metadata.xml
@@ -0,0 +1,12 @@
+
+https://www.gentoo.org/dtd/metadata.dtd'>
+
+   
+   g...@eurecom.fr
+   Gasc Henri
+   
+   
+   pyrr
+   adamlwgriffiths/pyrr
+   
+

diff --git a/dev-python/pyrr/pyrr-0.10.3.ebuild 
b/dev-python/pyrr/pyrr-0.10.3.ebuild
new file mode 100644
index 0..574118c51
--- /dev/null
+++ b/dev-python/pyrr/pyrr-0.10.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="A cross platform utility library for ModernGL"
+HOMEPAGE="https://github.com/adamlwgriffiths/pyrr 
https://pypi.org/project/pyrr;
+SRC_URI="https://github.com/adamlwgriffiths/pyrr/archive/refs/tags/${PV}.tar.gz
 -> v${PV}.gh.tar.gz"
+S="${WORKDIR}/Pyrr-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=""
+BDEPEND="
+   dev-python/multipledispatch[${PYTHON_USEDEP}]
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   dev-python/wheel[${PYTHON_USEDEP}]
+   dev-python/sphinx[${PYTHON_USEDEP}]
+"
+DEPEND="${BDEPEND}"
+
+python_compile() {
+   distutils-r1_python_compile
+   find ./ -type f -exec sed -i 
's/sphinx.ext.pngmath/sphinx.ext.imgmath/g' {} \;
+   emake man -C docs
+}
+
+python_install() {
+   distutils-r1_python_install
+   doman "${S}/docs/build/man/pyrr.1"
+}
+
+# The tests failed with `module 'numpy' has no attribute 'float'`
+# distutils_enable_tests pytest
+# python_test() {
+# cd "${T}" || die
+# epytest "${S}"/tests || die "Tests failed with ${EPYTHON}"
+# }