Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/meshpy/
Date: Sat, 26 Sep 2020 11:46:21
Message-Id: 1601120771.9a81b9caca5d3126d478a1e7faccd104864ef83d.epsilon-0@gentoo
1 commit: 9a81b9caca5d3126d478a1e7faccd104864ef83d
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Sat Sep 26 11:45:50 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Sat Sep 26 11:46:11 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9a81b9ca
7
8 dev-python/meshpy: version bump
9
10 test_torus is still failing
11
12 Package-Manager: Portage-3.0.8, Repoman-3.0.1
13 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
14
15 dev-python/meshpy/meshpy-2014.1.ebuild | 45 -------------------------
16 dev-python/meshpy/meshpy-2018.2.1.ebuild | 47 ++++++++++++++++++++++++++
17 dev-python/meshpy/meshpy-2018.2.1_p1.ebuild | 51 +++++++++++++++++++++++++++++
18 3 files changed, 98 insertions(+), 45 deletions(-)
19
20 diff --git a/dev-python/meshpy/meshpy-2014.1.ebuild b/dev-python/meshpy/meshpy-2014.1.ebuild
21 deleted file mode 100644
22 index c46c8398a..000000000
23 --- a/dev-python/meshpy/meshpy-2014.1.ebuild
24 +++ /dev/null
25 @@ -1,45 +0,0 @@
26 -# Copyright 1999-2020 Gentoo Authors
27 -# Distributed under the terms of the GNU General Public License v2
28 -
29 -EAPI=7
30 -
31 -PYTHON_COMPAT=( python3_6 )
32 -
33 -inherit distutils-r1
34 -
35 -MY_PN="MeshPy"
36 -
37 -DESCRIPTION="Quality triangular and tetrahedral mesh generation for Python"
38 -HOMEPAGE="https://mathema.tician.de/software/meshpy https://pypi.python.org/pypi/MeshPy"
39 -SRC_URI="mirror://pypi/M/${MY_PN}/${MY_PN}-${PV}.tar.gz"
40 -
41 -LICENSE="MIT"
42 -SLOT="0"
43 -KEYWORDS="~amd64"
44 -IUSE="test"
45 -
46 -RDEPEND="
47 - dev-libs/boost[python,${PYTHON_USEDEP}]
48 - dev-python/numpy[${PYTHON_USEDEP}]
49 - dev-python/pytools[${PYTHON_USEDEP}]
50 - dev-python/six[${PYTHON_USEDEP}]"
51 -DEPEND="${RDEPEND}
52 - dev-python/setuptools[${PYTHON_USEDEP}]
53 - test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
54 -
55 -S="${WORKDIR}/${MY_PN}-${PV}"
56 -
57 -python_prepare_all() {
58 - sed 's: delay = 10: delay = 1:g' -i aksetup_helper.py || die
59 - distutils-r1_python_prepare_all
60 -}
61 -
62 -python_compile() {
63 - mkdir "${BUILD_DIR}" || die
64 - echo "BOOST_PYTHON_LIBNAME = [\'boost_${EPYTHON}-mt\']">> "${BUILD_DIR}"/siteconf.py
65 - distutils-r1_python_compile
66 -}
67 -
68 -python_test() {
69 - py.test || die
70 -}
71
72 diff --git a/dev-python/meshpy/meshpy-2018.2.1.ebuild b/dev-python/meshpy/meshpy-2018.2.1.ebuild
73 new file mode 100644
74 index 000000000..5df9336ad
75 --- /dev/null
76 +++ b/dev-python/meshpy/meshpy-2018.2.1.ebuild
77 @@ -0,0 +1,47 @@
78 +# Copyright 1999-2020 Gentoo Authors
79 +# Distributed under the terms of the GNU General Public License v2
80 +
81 +EAPI=7
82 +
83 +DISTUTILS_IN_SOURCE_BUILD=1
84 +PYTHON_COMPAT=( python3_{6..8} )
85 +
86 +inherit distutils-r1
87 +
88 +DESCRIPTION="Quality triangular and tetrahedral mesh generation for Python"
89 +HOMEPAGE="https://mathema.tician.de/software/meshpy
90 + https://pypi.python.org/pypi/MeshPy
91 +"
92 +
93 +SRC_URI="https://github.com/inducer/meshpy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
94 +
95 +LICENSE="MIT"
96 +SLOT="0"
97 +KEYWORDS="~amd64"
98 +IUSE="test"
99 +
100 +RDEPEND="
101 + dev-libs/boost[python,${PYTHON_USEDEP}]
102 + dev-python/gmsh_interop[${PYTHON_USEDEP}]
103 + dev-python/numpy[${PYTHON_USEDEP}]
104 + dev-python/pybind11[${PYTHON_USEDEP}]
105 + dev-python/pytools[${PYTHON_USEDEP}]
106 + dev-python/six[${PYTHON_USEDEP}]
107 + sci-libs/gmsh
108 +"
109 +DEPEND="${RDEPEND}"
110 +
111 +distutils_enable_tests pytest
112 +
113 +python_prepare_all() {
114 + sed 's:delay=10:delay=1:g' -i aksetup_helper.py || die
115 +
116 +# echo "BOOST_PYTHON_LIBNAME = ['boost_${EPYTHON}-mt']">> "${S}"/siteconf.py
117 +
118 + distutils-r1_python_prepare_all
119 +}
120 +
121 +python_test() {
122 + distutils_install_for_testing
123 + pytest -vv || die "tests failed with ${EPYTHON}"
124 +}
125
126 diff --git a/dev-python/meshpy/meshpy-2018.2.1_p1.ebuild b/dev-python/meshpy/meshpy-2018.2.1_p1.ebuild
127 new file mode 100644
128 index 000000000..6985305a0
129 --- /dev/null
130 +++ b/dev-python/meshpy/meshpy-2018.2.1_p1.ebuild
131 @@ -0,0 +1,51 @@
132 +# Copyright 1999-2020 Gentoo Authors
133 +# Distributed under the terms of the GNU General Public License v2
134 +
135 +EAPI=7
136 +
137 +DISTUTILS_IN_SOURCE_BUILD=1
138 +PYTHON_COMPAT=( python3_{6..8} )
139 +
140 +inherit distutils-r1
141 +
142 +MY_PN="MeshPy"
143 +
144 +DESCRIPTION="Quality triangular and tetrahedral mesh generation for Python"
145 +HOMEPAGE="https://mathema.tician.de/software/meshpy
146 + https://pypi.python.org/pypi/MeshPy
147 +"
148 +
149 +COMMIT=6f4f9418f5f02b414d561bd8de710c4f1349ea72
150 +SRC_URI="https://github.com/inducer/meshpy/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
151 +S="${WORKDIR}"/${PN}-${COMMIT}
152 +
153 +LICENSE="MIT"
154 +SLOT="0"
155 +KEYWORDS="~amd64"
156 +IUSE="test"
157 +
158 +RDEPEND="
159 + dev-libs/boost[python,${PYTHON_USEDEP}]
160 + dev-python/gmsh_interop[${PYTHON_USEDEP}]
161 + dev-python/numpy[${PYTHON_USEDEP}]
162 + dev-python/pybind11[${PYTHON_USEDEP}]
163 + dev-python/pytools[${PYTHON_USEDEP}]
164 + dev-python/six[${PYTHON_USEDEP}]
165 + sci-libs/gmsh
166 +"
167 +DEPEND="${RDEPEND}"
168 +
169 +distutils_enable_tests pytest
170 +
171 +python_prepare_all() {
172 + sed 's:delay=10:delay=1:g' -i aksetup_helper.py || die
173 +
174 +# echo "BOOST_PYTHON_LIBNAME = ['boost_${EPYTHON}-mt']">> "${S}"/siteconf.py
175 +
176 + distutils-r1_python_prepare_all
177 +}
178 +
179 +python_test() {
180 + distutils_install_for_testing
181 + pytest -vv || die "tests failed with ${EPYTHON}"
182 +}