Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/trimesh/
Date: Wed, 06 Nov 2019 23:24:11
Message-Id: 1573082625.616cb28e0603171fbcbeaa3dcd51017a9546c5f0.chymera@gentoo
1 commit: 616cb28e0603171fbcbeaa3dcd51017a9546c5f0
2 Author: Horea Christian <horea.christ <AT> yandex <DOT> com>
3 AuthorDate: Wed Nov 6 23:23:45 2019 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Wed Nov 6 23:23:45 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=616cb28e
7
8 dev-python/trimesh: version bump 3.3.5
9
10 Package-Manager: Portage-2.3.77, Repoman-2.3.17
11 Signed-off-by: Horea Christian <horea.christ <AT> yandex.com>
12
13 dev-python/trimesh/metadata.xml | 3 ++
14 dev-python/trimesh/trimesh-3.3.5.ebuild | 58 +++++++++++++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/dev-python/trimesh/metadata.xml b/dev-python/trimesh/metadata.xml
18 index 7e0eebddb..c5933785a 100644
19 --- a/dev-python/trimesh/metadata.xml
20 +++ b/dev-python/trimesh/metadata.xml
21 @@ -16,4 +16,7 @@
22 allows for easy manipulation and analysis, in the style of the Polygon
23 object in the Shapely library.
24 </longdescription>
25 + <use>
26 + <flag name="extra">Extra functionality for advanced mesh preparation</flag>
27 + </use>
28 </pkgmetadata>
29
30 diff --git a/dev-python/trimesh/trimesh-3.3.5.ebuild b/dev-python/trimesh/trimesh-3.3.5.ebuild
31 new file mode 100644
32 index 000000000..a63574457
33 --- /dev/null
34 +++ b/dev-python/trimesh/trimesh-3.3.5.ebuild
35 @@ -0,0 +1,58 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=( python2_7 python3_{5,6} )
42 +
43 +inherit distutils-r1
44 +
45 +DESCRIPTION="Python library for loading and using triangular meshes."
46 +HOMEPAGE="https://trimsh.org/"
47 +SRC_URI="https://github.com/mikedh/trimesh/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE="test extra"
53 +RESTRICT="!test? ( test )"
54 +
55 +DEPEND="
56 + test? (
57 + ${RDEPEND}
58 + dev-python/pytest[${PYTHON_USEDEP}]
59 + dev-python/pytest-cov[${PYTHON_USEDEP}]
60 + )
61 + dev-python/setuptools[${PYTHON_USEDEP}]
62 + dev-python/numpy[${PYTHON_USEDEP}]
63 +"
64 +RDEPEND="
65 + extra? (
66 + dev-libs/xxhash
67 + dev-python/colorlog[${PYTHON_USEDEP}]
68 + dev-python/chardet[${PYTHON_USEDEP}]
69 + dev-python/lxml[${PYTHON_USEDEP}]
70 + dev-python/msgpack[${PYTHON_USEDEP}]
71 + dev-python/networkx[${PYTHON_USEDEP}]
72 + dev-python/pillow[${PYTHON_USEDEP}]
73 + dev-python/pyglet[${PYTHON_USEDEP}]
74 + dev-python/pycollada[${PYTHON_USEDEP}]
75 + dev-python/psutil[${PYTHON_USEDEP}]
76 + dev-python/requests[${PYTHON_USEDEP}]
77 + dev-python/svg-path[${PYTHON_USEDEP}]
78 + dev-python/sympy[${PYTHON_USEDEP}]
79 + sci-libs/scikits_image[${PYTHON_USEDEP}]
80 + sci-libs/scipy[${PYTHON_USEDEP}]
81 + sci-libs/Shapely[${PYTHON_USEDEP}]
82 + sci-libs/Rtree[${PYTHON_USEDEP}]
83 + )
84 +"
85 +
86 +python_test() {
87 + if use extra; then
88 + pytest -vv || die
89 + else
90 + cd tests || die
91 + pytest -p no:warnings $(grep -v '^#' basic.list) || die
92 + fi
93 +}