diff --git a/dev-python/trimesh/Manifest b/dev-python/trimesh/Manifest index f68909fc278e3..efa47f64748a8 100644 --- a/dev-python/trimesh/Manifest +++ b/dev-python/trimesh/Manifest @@ -1,2 +1,3 @@ DIST trimesh-5.2.0.gh.tar.gz 13762063 BLAKE2B be7f8add0b02f1d67a682cc17ba1a28b82edc89d828bf0c30d8bbf536eba923f86d995bcf52f25fd2d53cbb54e30c06a7e7654904a94e2b444b7fa96b97eb68f SHA512 4df668a4c9034ae9327782942985efc7de6cf632c4207c2fa36f5e91e97e34040bcefb714dd95e94f6fb525dbf74155c1879ffc2d739f24057b68aad2e5cc370 DIST trimesh-5.2.1.gh.tar.gz 13777995 BLAKE2B 64f12594bb26a89a107f9e2eef768506727e865be95f3f023eec17676fd547c37c195d680bd1f49ce1256b326f2ebc9a6506dc1b4bbd463ea089ea67757db176 SHA512 2aa175aebf53e5048a9bedb5ac436fa4cefda5e5961f7d37e9074624ae66ebe81870b1cafb89a3f5321373910359288f63ce25457b54e9252c8553bfc3ad54ad +DIST trimesh-5.2.2.gh.tar.gz 13780951 BLAKE2B d9fc8ab672ee5ac9896ebd1452fcdab43baa429a6176d00fb02506b6b7fe513348d00522acdcc7e45bc5d398eb97eb04123c15a8a51cb2f7665ffe196ef58c4f SHA512 a25549e0e4f82e853532ce34eb56911766ce3f63e84924d842c9a6814ee90eb5e382d8a633afd299c406e2283e5ab13da7aa3828daea5a8aa0ec08584e840701 diff --git a/dev-python/trimesh/trimesh-5.2.2.ebuild b/dev-python/trimesh/trimesh-5.2.2.ebuild new file mode 100644 index 0000000000000..19ea0b26edb58 --- /dev/null +++ b/dev-python/trimesh/trimesh-5.2.2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..14} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="Python library for loading and using triangular meshes" +HOMEPAGE=" + https://trimesh.org/ + https://github.com/mikedh/trimesh/ + https://pypi.org/project/trimesh/ +" +SRC_URI=" + https://github.com/mikedh/${PN}/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/charset-normalizer[${PYTHON_USEDEP}] + dev-python/colorlog[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/networkx[${PYTHON_USEDEP}] + >=dev-python/numpy-1.21[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pycollada[${PYTHON_USEDEP}] + dev-python/pyglet[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + >=dev-python/shapely-1.8.2[${PYTHON_USEDEP}] + dev-python/svg-path[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + dev-python/xxhash[${PYTHON_USEDEP}] + dev-python/rtree[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mapbox-earcut[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +: ${EPYTEST_TIMEOUT:=300} +EPYTEST_RERUNS=3 +EPYTEST_XDIST=1 + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # requires manifold3d + tests/test_boolean.py::test_multiple_difference + tests/test_ray.py::test_contains_cavity + # timing nonsense + tests/test_bounds.py::BoundsTest::test_obb_mesh_large +) +EPYTEST_IGNORE=( + # require pyinstrument + tests/test_sweep.py +) + +python_test() { + # We run tests in parallel, so avoid having n^2 threads in lapack + # tests. + local -x BLIS_NUM_THREADS=1 + local -x MKL_NUM_THREADS=1 + local -x OMP_NUM_THREADS=1 + local -x OPENBLAS_NUM_THREADS=1 + + epytest +} + +pkg_postinst() { + optfeature_header "${PN} functionality can be extended by installing the following packages:" + optfeature "2D triangulations of polygons" dev-python/mapbox-earcut + optfeature "loading a number of additional mesh formats" dev-python/meshio + optfeature "figuring out how much memory we have" dev-python/psutil + optfeature "marching cubes and other nice stuff" dev-python/scikit-image +}