notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Server is being updated to FreeBSD 14.3 as you read this... and it is done.
Commit processing is stalled - it is a jail issue. I will work on it later today. 2025-09-17 12:17 UTC - It has been fixed. Sometime before 17:27 UTC.
Port details
py-optree Optimized PyTree utilities
0.17.0 devel on this many watch lists=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.16.0Version of this port present on the latest quarterly branch.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-12-25 09:09:12
Last Update: 2025-08-12 18:15:42
Commit Hash: f2b081d
People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py311-PyOpenGL, p5-Sane
Also Listed In: python
License: APACHE20
WWW:
https://optree.readthedocs.io/en/latest/
https://github.com/metaopt/optree
Description:
OpTree provides optimized PyTree utilities. A PyTree is a recursive structure that can be an arbitrarily nested Python container (e.g., tuple, list, dict, OrderedDict, NamedTuple, etc.) or an opaque Python object. The key concepts of tree operations are tree flattening and its inverse (tree unflattening). Additional tree operations can be performed based on these two basic functions.
HomepageHomepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}optree>0:devel/py-optree@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-optree/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-optree
  • pkg install py311-optree
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-optree listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-optree
Package flavors (<flavor>: <package>)
  • py311: py311-optree
distinfo:
TIMESTAMP = 1753796074 SHA256 (optree-0.17.0.tar.gz) = 5335a5ec44479920620d72324c66563bd705ab2a698605dd4b6ee67dbcad7ecd SIZE (optree-0.17.0.tar.gz) = 163111

Packages (timestamps in pop-ups are UTC):
py39-optree
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--------
FreeBSD:13:quarterly------0.10.00.10.0
FreeBSD:14:latest--------
FreeBSD:14:quarterly------0.10.00.10.0
FreeBSD:15:latest--n/a-n/a-0.10.00.10.0
FreeBSD:15:quarterly--n/a-n/a---
FreeBSD:16:latest--n/a-n/a---
 

py311-optree
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.17.00.17.0-0.17.00.17.0---
FreeBSD:13:quarterly0.16.00.16.0-0.16.00.16.0---
FreeBSD:14:latest0.17.00.17.0-0.16.00.17.0---
FreeBSD:14:quarterly0.16.00.16.0-0.16.00.16.0---
FreeBSD:15:latest0.17.00.17.0n/a0.16.0n/a---
FreeBSD:15:quarterly--n/a-n/a---
FreeBSD:16:latest--n/a-n/a---
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-pybind11>=2.12 : devel/py-pybind11@py311
  2. py311-setuptools>=0 : devel/py-setuptools@py311
  3. py311-wheel>=0 : devel/py-wheel@py311
  4. cmake : devel/cmake-core
  5. python3.11 : lang/python311
  6. py311-build>=0 : devel/py-build@py311
  7. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. py311-typing-extensions>=4.6.0 : devel/py-typing-extensions@py311
  2. python3.11 : lang/python311
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
devel_py-optree
USES:
cmake:indirect compiler:c++20-lang python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/o/optree/
  2. https://pypi.org/packages/source/o/optree/
Collapse this list.

Number of commits found: 12

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.17.0
12 Aug 2025 18:15:42
commit hash: f2b081d446d96ac9ff2c05e9d6f90bd61952e3b4commit hash: f2b081d446d96ac9ff2c05e9d6f90bd61952e3b4commit hash: f2b081d446d96ac9ff2c05e9d6f90bd61952e3b4commit hash: f2b081d446d96ac9ff2c05e9d6f90bd61952e3b4 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.17.0

Changes:	https://github.com/metaopt/optree/releases
0.16.0
01 Jun 2025 16:23:24
commit hash: ecc0af7eb28e2793eec69a0a656f7d0be9088474commit hash: ecc0af7eb28e2793eec69a0a656f7d0be9088474commit hash: ecc0af7eb28e2793eec69a0a656f7d0be9088474commit hash: ecc0af7eb28e2793eec69a0a656f7d0be9088474 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.16.0

Changes:	https://github.com/metaopt/optree/releases
0.15.0
18 Apr 2025 05:37:33
commit hash: c05461a94b01d0921b8f2a25ea6a0002a1ce94c6commit hash: c05461a94b01d0921b8f2a25ea6a0002a1ce94c6commit hash: c05461a94b01d0921b8f2a25ea6a0002a1ce94c6commit hash: c05461a94b01d0921b8f2a25ea6a0002a1ce94c6 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.15.0

Changes:	https://github.com/metaopt/optree/releases
0.14.1
19 Mar 2025 03:38:57
commit hash: 7518566071632d14aad2d6e95d4e0bf4c46e1726commit hash: 7518566071632d14aad2d6e95d4e0bf4c46e1726commit hash: 7518566071632d14aad2d6e95d4e0bf4c46e1726commit hash: 7518566071632d14aad2d6e95d4e0bf4c46e1726 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.14.1

Changes:	https://github.com/metaopt/optree/releases
0.14.0
03 Feb 2025 15:51:12
commit hash: e5a8a9a82cb0153fceb9c0909d2ef0339af0225acommit hash: e5a8a9a82cb0153fceb9c0909d2ef0339af0225acommit hash: e5a8a9a82cb0153fceb9c0909d2ef0339af0225acommit hash: e5a8a9a82cb0153fceb9c0909d2ef0339af0225a files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.14.0

Changes:	https://github.com/metaopt/optree/releases
0.13.1
21 Nov 2024 13:38:12
commit hash: 4c25d24872774a82e5d2c1df5b743b7a4b59adc7commit hash: 4c25d24872774a82e5d2c1df5b743b7a4b59adc7commit hash: 4c25d24872774a82e5d2c1df5b743b7a4b59adc7commit hash: 4c25d24872774a82e5d2c1df5b743b7a4b59adc7 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.13.1

Changes:	https://github.com/metaopt/optree/releases
0.13.0
14 Oct 2024 05:25:33
commit hash: 5858e4f967922adecc5e1c20c60371bef28f76e7commit hash: 5858e4f967922adecc5e1c20c60371bef28f76e7commit hash: 5858e4f967922adecc5e1c20c60371bef28f76e7commit hash: 5858e4f967922adecc5e1c20c60371bef28f76e7 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.13.0

Changes:	https://github.com/metaopt/optree/releases
0.12.1
29 Jul 2024 12:39:40
commit hash: 6154d6c94e0f02ab01821baa12fa394832bb639ecommit hash: 6154d6c94e0f02ab01821baa12fa394832bb639ecommit hash: 6154d6c94e0f02ab01821baa12fa394832bb639ecommit hash: 6154d6c94e0f02ab01821baa12fa394832bb639e files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Convert to USES=cmake:indirect
0.12.1
08 Jul 2024 16:21:37
commit hash: 347aff10f6997058596f122e6972d4bb9b196337commit hash: 347aff10f6997058596f122e6972d4bb9b196337commit hash: 347aff10f6997058596f122e6972d4bb9b196337commit hash: 347aff10f6997058596f122e6972d4bb9b196337 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.12.1

Changes:	https://github.com/metaopt/optree/releases
0.11.0_1
18 Jun 2024 03:59:59
commit hash: 97dea13acee55a5c5ab4cd6ac1294c3ef3f42e1fcommit hash: 97dea13acee55a5c5ab4cd6ac1294c3ef3f42e1fcommit hash: 97dea13acee55a5c5ab4cd6ac1294c3ef3f42e1fcommit hash: 97dea13acee55a5c5ab4cd6ac1294c3ef3f42e1f files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Fix build with 32-bit architectures (e.g., i386)

- Bump PORTREVISION for package change

Obtained
from:	https://github.com/metaopt/optree/commit/9a613a705ee18e18784ba3a16b2786f56f9c74d2
(based on)
0.11.0
31 Mar 2024 03:06:35
commit hash: 3de9baac702f980d282b9a69fd7a4d421e70455fcommit hash: 3de9baac702f980d282b9a69fd7a4d421e70455fcommit hash: 3de9baac702f980d282b9a69fd7a4d421e70455fcommit hash: 3de9baac702f980d282b9a69fd7a4d421e70455f files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.11.0

Changes:	https://github.com/metaopt/optree/releases
0.10.0
25 Dec 2023 08:56:51
commit hash: 2852bacb2eb02d3c3fd2ca75258cce968634f814commit hash: 2852bacb2eb02d3c3fd2ca75258cce968634f814commit hash: 2852bacb2eb02d3c3fd2ca75258cce968634f814commit hash: 2852bacb2eb02d3c3fd2ca75258cce968634f814 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Add py-optree 0.10.0

OpTree provides optimized PyTree utilities.

A PyTree is a recursive structure that can be an arbitrarily nested Python
container (e.g., tuple, list, dict, OrderedDict, NamedTuple, etc.) or an opaque
Python object. The key concepts of tree operations are tree flattening and its
inverse (tree unflattening). Additional tree operations can be performed based
on these two basic functions.

Number of commits found: 12