summaryrefslogtreecommitdiff
path: root/devel/py-optree
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--devel/py-optree/Makefile4
-rw-r--r--devel/py-optree/distinfo6
-rw-r--r--devel/py-optree/files/patch-pyproject.toml20
-rw-r--r--devel/py-optree/files/patch-setup.py14
4 files changed, 32 insertions, 12 deletions
diff --git a/devel/py-optree/Makefile b/devel/py-optree/Makefile
index ecb329492d8a..d5e04ecf10de 100644
--- a/devel/py-optree/Makefile
+++ b/devel/py-optree/Makefile
@@ -1,5 +1,5 @@
PORTNAME= optree
-PORTVERSION= 0.15.0
+PORTVERSION= 0.17.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>=2.12:devel/py-pybind11@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.5.0:devel/py-typing-extensions@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.6.0:devel/py-typing-extensions@${PY_FLAVOR}
USES= cmake:indirect compiler:c++20-lang python
USE_PYTHON= autoplist concurrent pep517
diff --git a/devel/py-optree/distinfo b/devel/py-optree/distinfo
index 2cb505f7912e..cfcb741f2d05 100644
--- a/devel/py-optree/distinfo
+++ b/devel/py-optree/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1744288932
-SHA256 (optree-0.15.0.tar.gz) = d00a45e3b192093ef2cd32bf0d541ecbfc93c1bd73a5f3fe36293499f28a50cf
-SIZE (optree-0.15.0.tar.gz) = 171403
+TIMESTAMP = 1753796074
+SHA256 (optree-0.17.0.tar.gz) = 5335a5ec44479920620d72324c66563bd705ab2a698605dd4b6ee67dbcad7ecd
+SIZE (optree-0.17.0.tar.gz) = 163111
diff --git a/devel/py-optree/files/patch-pyproject.toml b/devel/py-optree/files/patch-pyproject.toml
new file mode 100644
index 000000000000..2f173c18f26b
--- /dev/null
+++ b/devel/py-optree/files/patch-pyproject.toml
@@ -0,0 +1,20 @@
+--- pyproject.toml.orig 2025-05-28 07:15:37 UTC
++++ pyproject.toml
+@@ -1,7 +1,7 @@
+ # Package ######################################################################
+
+ [build-system]
+-requires = ["setuptools >= 77.0", "pybind11 >= 2.12"]
++requires = ["setuptools", "pybind11 >= 2.12"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
+@@ -10,7 +10,7 @@ authors = [{ name = "OpTree Contributors" }]
+ readme = "README.md"
+ requires-python = ">= 3.9"
+ authors = [{ name = "OpTree Contributors" }]
+-license = "Apache-2.0"
++license = { text = "Apache-2.0" }
+ keywords = [
+ "PyTree",
+ "Tree Manipulation",
diff --git a/devel/py-optree/files/patch-setup.py b/devel/py-optree/files/patch-setup.py
index 57005e73ef45..d8fd6d01a403 100644
--- a/devel/py-optree/files/patch-setup.py
+++ b/devel/py-optree/files/patch-setup.py
@@ -1,13 +1,13 @@
---- setup.py.orig 2025-04-06 13:55:44 UTC
+--- setup.py.orig 2025-07-25 08:24:07 UTC
+++ setup.py
-@@ -211,10 +211,6 @@ class cmake_build_ext(build_ext): # noqa: N801
- cmake_args.append(f'-Dpybind11_DIR={pybind11.get_cmake_dir()}')
+@@ -222,10 +222,6 @@ class cmake_build_ext(build_ext): # noqa: N801
+ cmake_args += [f'-Dpybind11_DIR={pybind11.get_cmake_dir()}']
build_args = ['--config', config]
- if 'CMAKE_BUILD_PARALLEL_LEVEL' not in os.environ and bool(getattr(self, 'parallel', 0)):
-- build_args.extend(['--parallel', str(self.parallel)])
+- build_args += ['--parallel', str(self.parallel)]
- else:
-- build_args.append('--parallel')
-
- build_args.extend(['--target', ext.target, '--'])
+- build_args += ['--parallel']
+ build_args += ['--target', ext.target, '--']
+ self.mkpath(str(build_temp))