Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cython/
Date: Thu, 30 May 2019 11:37:51
Message-Id: 1559216098.54d02ab0dcc75a740f86810e6dc9bd88fb3fb855.mgorny@gentoo
1 commit: 54d02ab0dcc75a740f86810e6dc9bd88fb3fb855
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 30 11:34:58 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 30 11:34:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54d02ab0
7
8 dev-python/cython: Drop 0.29.[56]
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/cython/Manifest | 2 -
13 dev-python/cython/cython-0.29.5.ebuild | 86 ----------------------------------
14 dev-python/cython/cython-0.29.6.ebuild | 86 ----------------------------------
15 3 files changed, 174 deletions(-)
16
17 diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
18 index 09772695146..5f666eea1b5 100644
19 --- a/dev-python/cython/Manifest
20 +++ b/dev-python/cython/Manifest
21 @@ -2,7 +2,5 @@ DIST Cython-0.25.2.tar.gz 1703315 BLAKE2B e458604d0843afa128c6019244220bd6b3dd66
22 DIST Cython-0.26.1.tar.gz 1725133 BLAKE2B b2c0433e8154ad76d921677608cae42a793326015ff320d8cd61818e5eb5fb4daf73ad4e72760d84f4cdaa2386b87d719cf9cd41584b781d4e2021e377a58422 SHA512 cdf31afaba78209c37a224345471c5c822b78c6d26c51583c46669b6b2b57b4952b33a839a51d06c3330fdff889345ac611fbaa2b2f17498cb02f3b5675f7948
23 DIST Cython-0.28.4.tar.gz 1880943 BLAKE2B a97314147294c95fa0bd6d3fa1a1315d81f8abb46a1f2196009c1ef6f0dd7f47f81a7b31ab81d1fd00e8de37878a18a22d225055181ee74ffe4cc8105d84cd75 SHA512 67d2da2d776fc02193cfe98c8942e93905ec5e30bf4e0f9d5c965d930a034936d4c29c8248fccefff5db6d4dee054ec854994bea63fa3f64ff65df7550997c29
24 DIST Cython-0.29.4.tar.gz 2044382 BLAKE2B b36d27706a3270805f66190a4cf2735eaf20b1b932365b324a433c0e58e63e860ce1500333233c3539ae697886ac0adc361a2c158d5d064a3ea05843debc3f26 SHA512 8f115e36975aaf64eda4df8b0a85378d0c80b3292dbd162be826b939def03bdc9f3eb937676e2367003c2944b570d97f50d7880becfdb2fdc5144077b4a722dc
25 -DIST Cython-0.29.5.tar.gz 2045488 BLAKE2B ca809728115865b7d28100943b358d8f5236382e5ae5a43d557620c3bd856407a9f52b756fc910564a6c041d64b1439d60776c90c6970614f74ee2d03f94665f SHA512 4bbf54b248b9a08b9118d751a6bb5dbb81ae7a8238c8a3124d94bf7be67f15b68820e6ce5470903fb5d5ff5c3c213e1580f1c57a8cda33b356263f9ab46e8851
26 -DIST Cython-0.29.6.tar.gz 2047021 BLAKE2B 32fe6697ba407a75dad79f08fd2e33ba11b083c65f69e09cd269c8a9f445d183a8cf36794fc8b2abb5e98b9626f0c62a099367359634833f36273c7681835572 SHA512 bb8095b438a7d2567b8b831628fbb32c02299c866e41113da62fb5a5d4982dc0df947a9f723a82c52086806435d8f3518e78a803166149d476f81e042a12494e
27 DIST Cython-0.29.7.tar.gz 2047944 BLAKE2B 79a2dbbbeef2c87e523d1222c1e3b62a63273644a0295a08fed3909ef01f2167baf15c0344a64ec168820e21c5c99b0accc083c8dfcaca7f1c0cb8c4b23677cc SHA512 1c2fd2185d65445318118d917ff6f8b4b958b0a036bc3ce1587dcb8fa94ccc750901cece27e4d0d39c53db68c3a620edf2dcf9424d7a6df58a0275097b90fa6e
28 DIST Cython-0.29.9.tar.gz 2049206 BLAKE2B d81cc4be6d99e8be025167700517880c3250feaf929f84a9de76e2c9f1ac5eb8018a7cb4609d95c01112e35ab54070eb373157004621d45db3c347ea2b585bb5 SHA512 17ac97eaa01e3c6cd9c7d597822ad25ef5cec2354055304a2999a0a0d969fa0513640470260cf0d88c8d9a7c331f02d1ebf144245a6c45de47e26e7fa73b0ae1
29
30 diff --git a/dev-python/cython/cython-0.29.5.ebuild b/dev-python/cython/cython-0.29.5.ebuild
31 deleted file mode 100644
32 index 186a2497982..00000000000
33 --- a/dev-python/cython/cython-0.29.5.ebuild
34 +++ /dev/null
35 @@ -1,86 +0,0 @@
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,7} )
42 -PYTHON_REQ_USE="threads(+)"
43 -
44 -inherit distutils-r1 toolchain-funcs elisp-common
45 -
46 -MY_PN="Cython"
47 -MY_P="${MY_PN}-${PV/_/}"
48 -
49 -DESCRIPTION="A Python to C compiler"
50 -HOMEPAGE="https://cython.org https://pypi.org/project/Cython/"
51 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
52 -
53 -LICENSE="Apache-2.0"
54 -SLOT="0"
55 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
56 -IUSE="doc emacs test"
57 -RESTRICT="!test? ( test )"
58 -
59 -RDEPEND="
60 - emacs? ( virtual/emacs )
61 -"
62 -DEPEND="${RDEPEND}
63 - dev-python/setuptools[${PYTHON_USEDEP}]
64 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
65 - test? ( dev-python/numpy[${PYTHON_USEDEP}] )"
66 -
67 -SITEFILE=50cython-gentoo.el
68 -S="${WORKDIR}/${MY_PN}-${PV%_*}"
69 -
70 -python_prepare_all() {
71 - # tests behavior that is illegal in Python 3.7+
72 - # https://github.com/cython/cython/issues/2454
73 - sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die
74 -
75 - distutils-r1_python_prepare_all
76 -}
77 -
78 -python_compile() {
79 - if ! python_is_python3; then
80 - local CFLAGS="${CFLAGS} -fno-strict-aliasing"
81 - local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
82 - fi
83 -
84 - # Python gets confused when it is in sys.path before build.
85 - local -x PYTHONPATH=
86 -
87 - distutils-r1_python_compile
88 -}
89 -
90 -python_compile_all() {
91 - use emacs && elisp-compile Tools/cython-mode.el
92 -
93 - use doc && emake -C docs html
94 -}
95 -
96 -python_test() {
97 - tc-export CC
98 - # https://github.com/cython/cython/issues/1911
99 - local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
100 - "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
101 - || die "Tests fail with ${EPYTHON}"
102 -}
103 -
104 -python_install_all() {
105 - local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
106 - use doc && local HTML_DOCS=( docs/build/html/. )
107 - distutils-r1_python_install_all
108 -
109 - if use emacs; then
110 - elisp-install ${PN} Tools/cython-mode.*
111 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
112 - fi
113 -}
114 -
115 -pkg_postinst() {
116 - use emacs && elisp-site-regen
117 -}
118 -
119 -pkg_postrm() {
120 - use emacs && elisp-site-regen
121 -}
122
123 diff --git a/dev-python/cython/cython-0.29.6.ebuild b/dev-python/cython/cython-0.29.6.ebuild
124 deleted file mode 100644
125 index 186a2497982..00000000000
126 --- a/dev-python/cython/cython-0.29.6.ebuild
127 +++ /dev/null
128 @@ -1,86 +0,0 @@
129 -# Copyright 1999-2019 Gentoo Authors
130 -# Distributed under the terms of the GNU General Public License v2
131 -
132 -EAPI=7
133 -
134 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
135 -PYTHON_REQ_USE="threads(+)"
136 -
137 -inherit distutils-r1 toolchain-funcs elisp-common
138 -
139 -MY_PN="Cython"
140 -MY_P="${MY_PN}-${PV/_/}"
141 -
142 -DESCRIPTION="A Python to C compiler"
143 -HOMEPAGE="https://cython.org https://pypi.org/project/Cython/"
144 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
145 -
146 -LICENSE="Apache-2.0"
147 -SLOT="0"
148 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
149 -IUSE="doc emacs test"
150 -RESTRICT="!test? ( test )"
151 -
152 -RDEPEND="
153 - emacs? ( virtual/emacs )
154 -"
155 -DEPEND="${RDEPEND}
156 - dev-python/setuptools[${PYTHON_USEDEP}]
157 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
158 - test? ( dev-python/numpy[${PYTHON_USEDEP}] )"
159 -
160 -SITEFILE=50cython-gentoo.el
161 -S="${WORKDIR}/${MY_PN}-${PV%_*}"
162 -
163 -python_prepare_all() {
164 - # tests behavior that is illegal in Python 3.7+
165 - # https://github.com/cython/cython/issues/2454
166 - sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die
167 -
168 - distutils-r1_python_prepare_all
169 -}
170 -
171 -python_compile() {
172 - if ! python_is_python3; then
173 - local CFLAGS="${CFLAGS} -fno-strict-aliasing"
174 - local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
175 - fi
176 -
177 - # Python gets confused when it is in sys.path before build.
178 - local -x PYTHONPATH=
179 -
180 - distutils-r1_python_compile
181 -}
182 -
183 -python_compile_all() {
184 - use emacs && elisp-compile Tools/cython-mode.el
185 -
186 - use doc && emake -C docs html
187 -}
188 -
189 -python_test() {
190 - tc-export CC
191 - # https://github.com/cython/cython/issues/1911
192 - local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
193 - "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
194 - || die "Tests fail with ${EPYTHON}"
195 -}
196 -
197 -python_install_all() {
198 - local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
199 - use doc && local HTML_DOCS=( docs/build/html/. )
200 - distutils-r1_python_install_all
201 -
202 - if use emacs; then
203 - elisp-install ${PN} Tools/cython-mode.*
204 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
205 - fi
206 -}
207 -
208 -pkg_postinst() {
209 - use emacs && elisp-site-regen
210 -}
211 -
212 -pkg_postrm() {
213 - use emacs && elisp-site-regen
214 -}