1 |
commit: d1ab0801974c53383d952a07b81b36019a981720 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 2 13:34:30 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 2 14:57:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1ab0801 |
7 |
|
8 |
dev-python/Babel: Clean old up |
9 |
|
10 |
dev-python/Babel/Babel-2.1.1.ebuild | 49 -------------------- |
11 |
dev-python/Babel/Babel-2.3.4.ebuild | 52 ---------------------- |
12 |
dev-python/Babel/Babel-2.4.0.ebuild | 48 -------------------- |
13 |
dev-python/Babel/Manifest | 3 -- |
14 |
...he-way-local-time-is-constructed-in-tests.patch | 30 ------------- |
15 |
5 files changed, 182 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/Babel/Babel-2.1.1.ebuild b/dev-python/Babel/Babel-2.1.1.ebuild |
18 |
deleted file mode 100644 |
19 |
index 8d2b76ef7ab..00000000000 |
20 |
--- a/dev-python/Babel/Babel-2.1.1.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,49 +0,0 @@ |
23 |
-# Copyright 1999-2017 Gentoo Foundation |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=5 |
27 |
- |
28 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
29 |
-PYTHON_REQ_USE="threads(+)" |
30 |
- |
31 |
-inherit distutils-r1 |
32 |
- |
33 |
-DESCRIPTION="A collection of tools for internationalizing Python applications" |
34 |
-HOMEPAGE="http://babel.edgewall.org/ https://pypi.python.org/pypi/Babel" |
35 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
36 |
- |
37 |
-LICENSE="BSD" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
40 |
-IUSE="doc test" |
41 |
- |
42 |
-RDEPEND="dev-python/pytz[${PYTHON_USEDEP}] |
43 |
- dev-python/setuptools[${PYTHON_USEDEP}]" |
44 |
-DEPEND="${DEPEND} |
45 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
46 |
- test? ( >=dev-python/pytest-2.3.5[${PYTHON_USEDEP}] )" |
47 |
- |
48 |
-python_prepare_all() { |
49 |
- # Make the tests use implementation-specific datadir, |
50 |
- # because they try to write in it. |
51 |
- sed -e '/datadir =/s:os\.path\.dirname(__file__):os.environ["BUILD_DIR"]:' \ |
52 |
- -i tests/messages/test_frontend.py || die |
53 |
- sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die |
54 |
- distutils-r1_python_prepare_all |
55 |
-} |
56 |
- |
57 |
-python_test() { |
58 |
- # Create implementation-specific datadir for tests. |
59 |
- cp -R -l tests/messages/data "${BUILD_DIR}"/ || die |
60 |
- export BUILD_DIR |
61 |
- py.test || die |
62 |
-} |
63 |
- |
64 |
-python_compile_all() { |
65 |
- use doc && emake -C docs html |
66 |
-} |
67 |
- |
68 |
-python_install_all() { |
69 |
- use doc && local HTML_DOCS=( docs/_build/html/. ) |
70 |
- distutils-r1_python_install_all |
71 |
-} |
72 |
|
73 |
diff --git a/dev-python/Babel/Babel-2.3.4.ebuild b/dev-python/Babel/Babel-2.3.4.ebuild |
74 |
deleted file mode 100644 |
75 |
index c333bf32f4e..00000000000 |
76 |
--- a/dev-python/Babel/Babel-2.3.4.ebuild |
77 |
+++ /dev/null |
78 |
@@ -1,52 +0,0 @@ |
79 |
-# Copyright 1999-2017 Gentoo Foundation |
80 |
-# Distributed under the terms of the GNU General Public License v2 |
81 |
- |
82 |
-EAPI=5 |
83 |
- |
84 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
85 |
-PYTHON_REQ_USE="threads(+)" |
86 |
- |
87 |
-inherit distutils-r1 |
88 |
- |
89 |
-DESCRIPTION="A collection of tools for internationalizing Python applications" |
90 |
-HOMEPAGE="http://babel.edgewall.org/ https://pypi.python.org/pypi/Babel" |
91 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
92 |
- |
93 |
-LICENSE="BSD" |
94 |
-SLOT="0" |
95 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
96 |
-IUSE="doc test" |
97 |
- |
98 |
-RDEPEND="dev-python/pytz[${PYTHON_USEDEP}] |
99 |
- dev-python/setuptools[${PYTHON_USEDEP}]" |
100 |
-DEPEND="${DEPEND} |
101 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
102 |
- test? ( >=dev-python/pytest-2.3.5[${PYTHON_USEDEP}] )" |
103 |
- |
104 |
-PATCHES=( |
105 |
- "${FILESDIR}"/2.3-Fix-the-way-local-time-is-constructed-in-tests.patch |
106 |
-) |
107 |
- |
108 |
-python_prepare_all() { |
109 |
- # Make the tests use implementation-specific datadir, |
110 |
- # because they try to write in it. |
111 |
- sed -e '/datadir =/s:os\.path\.dirname(__file__):os.environ["BUILD_DIR"]:' \ |
112 |
- -i tests/messages/test_frontend.py || die |
113 |
- sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die |
114 |
- distutils-r1_python_prepare_all |
115 |
-} |
116 |
- |
117 |
-python_test() { |
118 |
- # Create implementation-specific datadir for tests. |
119 |
- cp -R -l tests/messages/data "${BUILD_DIR}"/ || die |
120 |
- py.test || die |
121 |
-} |
122 |
- |
123 |
-python_compile_all() { |
124 |
- use doc && emake -C docs html |
125 |
-} |
126 |
- |
127 |
-python_install_all() { |
128 |
- use doc && local HTML_DOCS=( docs/_build/html/. ) |
129 |
- distutils-r1_python_install_all |
130 |
-} |
131 |
|
132 |
diff --git a/dev-python/Babel/Babel-2.4.0.ebuild b/dev-python/Babel/Babel-2.4.0.ebuild |
133 |
deleted file mode 100644 |
134 |
index 9ec087d4bd7..00000000000 |
135 |
--- a/dev-python/Babel/Babel-2.4.0.ebuild |
136 |
+++ /dev/null |
137 |
@@ -1,48 +0,0 @@ |
138 |
-# Copyright 1999-2017 Gentoo Foundation |
139 |
-# Distributed under the terms of the GNU General Public License v2 |
140 |
- |
141 |
-EAPI=6 |
142 |
- |
143 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
144 |
-PYTHON_REQ_USE="threads(+)" |
145 |
- |
146 |
-inherit distutils-r1 |
147 |
- |
148 |
-DESCRIPTION="Collection of tools for internationalizing Python applications" |
149 |
-HOMEPAGE="http://babel.edgewall.org/ https://pypi.python.org/pypi/Babel" |
150 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
151 |
- |
152 |
-LICENSE="BSD" |
153 |
-SLOT="0" |
154 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
155 |
-IUSE="doc test" |
156 |
- |
157 |
-RDEPEND="dev-python/pytz[${PYTHON_USEDEP}] |
158 |
- dev-python/setuptools[${PYTHON_USEDEP}]" |
159 |
-DEPEND="${DEPEND} |
160 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
161 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
162 |
- |
163 |
-python_prepare_all() { |
164 |
- # Make the tests use implementation-specific datadir, |
165 |
- # because they try to write in it. |
166 |
- sed -e '/datadir =/s:os\.path\.dirname(__file__):os.environ["BUILD_DIR"]:' \ |
167 |
- -i tests/messages/test_frontend.py || die |
168 |
- sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die |
169 |
- distutils-r1_python_prepare_all |
170 |
-} |
171 |
- |
172 |
-python_test() { |
173 |
- # Create implementation-specific datadir for tests. |
174 |
- cp -R -l tests/messages/data "${BUILD_DIR}"/ || die |
175 |
- py.test || die |
176 |
-} |
177 |
- |
178 |
-python_compile_all() { |
179 |
- use doc && emake -C docs html |
180 |
-} |
181 |
- |
182 |
-python_install_all() { |
183 |
- use doc && local HTML_DOCS=( docs/_build/html/. ) |
184 |
- distutils-r1_python_install_all |
185 |
-} |
186 |
|
187 |
diff --git a/dev-python/Babel/Manifest b/dev-python/Babel/Manifest |
188 |
index 6ac52401f2a..311dc91cc7c 100644 |
189 |
--- a/dev-python/Babel/Manifest |
190 |
+++ b/dev-python/Babel/Manifest |
191 |
@@ -1,4 +1 @@ |
192 |
-DIST Babel-2.1.1.tar.gz 3437647 BLAKE2B 0007a2225e99e5643d36527d3b84f330df5e9010a4ef8e920da90bce7389a0504fc889fe6e149e756f51db2ebd77eff04c7e5c6295e01f4225bfef9d6e1de790 SHA512 ec7ebb8648101588eecc72913adc45c0593ed6ee5f10874edcd4b932959f9552edcecc8e2ec966dae6ef5e8adb23341f1a4f87ea2d9e6cbba57a9b8b0a352a94 |
193 |
-DIST Babel-2.3.4.tar.gz 6866920 BLAKE2B 2f4b5d33364e20aef2ef47fe606dd0d531fc00ea80556584d3493c4b5af497a096c45c79683405a878a64c119730789f51ddcb993ee75e403f0097878b95871a SHA512 1fdba01946e7a8ebe3fef23843e23707cd060b0a179d775e29f938318d824e8779df2852fb8bbd18f61fc47de33af5d988c509dc67f54ea4cb3a4a66767869a5 |
194 |
-DIST Babel-2.4.0.tar.gz 6607513 BLAKE2B 2936a0eb1ea0ecae827681f1a86e3fd66c4952c4563b1b5e01c81695a233abe59c2b63c4c2aa6c0e71934f004aaea459ad0ecee73aab0780c47d7d41b2ee00db SHA512 4e1341144dfb319c172a446facc47204c9b9f49972c8646b62e082975d8ec41c35e503e610d7114ef5346a5c073e87ed8d40a65a60d9540fb7ca947681cc0beb |
195 |
DIST Babel-2.5.0.tar.gz 6612353 BLAKE2B 85268f0226f1db019fb906da0dfbbc6b6aa199ab491e9d767c932fb5ca77cb6d86328ebaa9c6eb61fb8d28c8e566babd435cdcee9b900c3c680d0dfb49c2bcac SHA512 b24b74121695e0068fb28a6294d4b5b2065e94dcd62ca0d70c8fde3a00cb5ff111480505594460989c6f67a75935f55e153b1b493f917317d2c5ee0f0d7921fc |
196 |
|
197 |
diff --git a/dev-python/Babel/files/2.3-Fix-the-way-local-time-is-constructed-in-tests.patch b/dev-python/Babel/files/2.3-Fix-the-way-local-time-is-constructed-in-tests.patch |
198 |
deleted file mode 100644 |
199 |
index fdfb31d7c62..00000000000 |
200 |
--- a/dev-python/Babel/files/2.3-Fix-the-way-local-time-is-constructed-in-tests.patch |
201 |
+++ /dev/null |
202 |
@@ -1,30 +0,0 @@ |
203 |
-From 476515c2418039e471656f47efbfc43e5230c1fd Mon Sep 17 00:00:00 2001 |
204 |
-From: Isaac Jurado <diptongo@×××××.com> |
205 |
-Date: Sun, 29 May 2016 10:50:42 +0200 |
206 |
-Subject: [PATCH] Fix the way local time is constructed in tests |
207 |
- |
208 |
-In summer time zones, the test for "get_timezone_name" failed because the |
209 |
-construct used to obtain a local time did not deal properly with DST offsets. |
210 |
-As recommended by pytz, it is better to convert to local time from UTC. |
211 |
---- |
212 |
- tests/test_dates.py | 3 ++- |
213 |
- 1 file changed, 2 insertions(+), 1 deletion(-) |
214 |
- |
215 |
-diff --git a/tests/test_dates.py b/tests/test_dates.py |
216 |
-index 3bb9e8b..b0d093e 100644 |
217 |
---- a/tests/test_dates.py |
218 |
-+++ b/tests/test_dates.py |
219 |
-@@ -624,8 +624,9 @@ def test_get_timezone_name(): |
220 |
- assert dates.get_timezone_name(tz, locale='en', width='long', |
221 |
- zone_variant='daylight') == u'Pacific Daylight Time' |
222 |
- |
223 |
-+ localnow = datetime.utcnow().replace(tzinfo=timezone('UTC')).astimezone(dates.LOCALTZ) |
224 |
- assert (dates.get_timezone_name(None, locale='en_US') == |
225 |
-- dates.get_timezone_name(datetime.now().replace(tzinfo=dates.LOCALTZ), locale='en_US')) |
226 |
-+ dates.get_timezone_name(localnow, locale='en_US')) |
227 |
- |
228 |
- assert (dates.get_timezone_name('Europe/Berlin', locale='en_US') == "Central European Time") |
229 |
- |
230 |
--- |
231 |
-2.13.0 |
232 |
- |