1 |
commit: 0ecce525422b4b8e7931b397b55f7e30b5c8ee31 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 5 06:33:57 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 5 06:33:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ecce525 |
7 |
|
8 |
dev-python/django: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/django/Manifest | 2 - |
13 |
dev-python/django/django-3.2.5.ebuild | 103 --------------------- |
14 |
.../django/files/django-3.2.3-py310-repr.patch | 92 ------------------ |
15 |
3 files changed, 197 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
18 |
index fe0e31a141c..086de7c321b 100644 |
19 |
--- a/dev-python/django/Manifest |
20 |
+++ b/dev-python/django/Manifest |
21 |
@@ -2,7 +2,5 @@ DIST Django-2.2.24.checksum.txt 2558 BLAKE2B 8a4b1759f0c52f9dfe6eafc2b54d2d6db8c |
22 |
DIST Django-2.2.24.tar.gz 9211396 BLAKE2B 7422019ad8849ae543d7b2ca7f5624b5379c832b5d19511f52df77d95acaa0a45cc61579b0e3a74671c295ffab5e1dfecd1c044e9ec042c46606f888c257e1d0 SHA512 5a3ee79500ad458bfc5220b9b68248bec59bf6d2304d58ca280111854d6a5f7e25784680e949487e8b59c1de0b329a53cf0676d2ee4bb2b88463918c4b0b6085 |
23 |
DIST Django-3.1.13.checksum.txt 2552 BLAKE2B e82052d952f7dfd15e11b413fe2f106af3d3774073c57538b10f1beeada3128de2cb3d861684599fbf5f337b0ae4eff3a101998da30d8d961f84ac7cb3bb31c5 SHA512 07870c27034f70f335ac35b34317944947f544f63108f21134e81326b4e8f05a7cb3d382d91e7f0a846d51944032efcddca2c3bf980f626627c74c388932e4cf |
24 |
DIST Django-3.1.13.tar.gz 9656683 BLAKE2B bb2dd72ba2dfc13c8f487d6b59cd9302160800dca4f63b92e640eddf4aba2e5b1bd67580e56477bced44a5393b5f65a463a9c0c539ba998a20606bffdfafcf74 SHA512 55b1ceb24b6e0ba542a96319f63b138439532cf4b00971a8432baaab4a8ee219cc9fbb31d457ba7da9e932c919df83da9630866d909df4a5d432866b158098d7 |
25 |
-DIST Django-3.2.5.checksum.txt 2543 BLAKE2B 4a07a518bdde4670dc3bf079d8d3cfa32b6580cc06f18306a2127463f3a6a2d8f2a50c4562092439c7c99ccf80dde160b061180826c94d4e1064d5064ff500fe SHA512 b073ff758843f72b6467dae7580941774de9702db02a6fab303cb696cb22c84ca961885792e8ec85545294610f34a4eb52ac3f6521c190d2c339c1957ab4156a |
26 |
-DIST Django-3.2.5.tar.gz 9806547 BLAKE2B d804d758f95f18aac5c44cba9bd9248efa56cba91bea5db2ac89e8c2202ac1fd088b61d6cc98eb7d6d33a95f85983b801c6cc26a3231986a8cf224a0bbeb8a7c SHA512 03d4eee650a857bed298658c68b916beb74690d16b4b28d649c52a7c2d8a61e92f53136d2de3a77fabe1dd01c0e6b3033befc6842f39c222793fb590b1020c13 |
27 |
DIST Django-3.2.6.checksum.txt 2551 BLAKE2B 2fae4e3daca01f285f651b76df7402a0c08cdea9a98bdc3be3f9b337732c26b2a3dcb239fc06274b6a30227394047476d454bf34fd7e8b765df047510b08620c SHA512 66b9dff471928be514198e50e62f46d14fbea9c1cfb55e9d82562271795fc3e719e0bb8c43a1f6ff6c903700b648a6a0e19e335ddc50df2a7fa539911b6d44b6 |
28 |
DIST Django-3.2.6.tar.gz 9821499 BLAKE2B 9f18d308bf15ef16a9fe9d84219bd7ad37833b718ff975344aae5950ef01a7a0e8ef8669936c8908e38e07fb078ce2e2d6392968177400c2357b1d3787e0ce39 SHA512 adf2d2ab3006cc5b389bed8d8e16ee8c98393b20d719c3521068e5cc5d1e679b9f660be90f827ea1cc6a41f975641c32bdb0779ee145e5e31a501ca9e06898a4 |
29 |
|
30 |
diff --git a/dev-python/django/django-3.2.5.ebuild b/dev-python/django/django-3.2.5.ebuild |
31 |
deleted file mode 100644 |
32 |
index 96f67052a29..00000000000 |
33 |
--- a/dev-python/django/django-3.2.5.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,103 +0,0 @@ |
36 |
-# Copyright 1999-2021 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=7 |
40 |
- |
41 |
-PYTHON_COMPAT=( python3_{8..10} ) |
42 |
-PYTHON_REQ_USE='sqlite?,threads(+)' |
43 |
- |
44 |
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig |
45 |
- |
46 |
-MY_P=${P^} |
47 |
-DESCRIPTION="High-level Python web framework" |
48 |
-HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
49 |
-SRC_URI=" |
50 |
- https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz |
51 |
- verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" |
52 |
-S="${WORKDIR}/${MY_P}" |
53 |
- |
54 |
-LICENSE="BSD" |
55 |
-# admin fonts: Roboto (media-fonts/roboto) |
56 |
-LICENSE+=" Apache-2.0" |
57 |
-# admin icons, jquery, xregexp.js |
58 |
-LICENSE+=" MIT" |
59 |
-SLOT="0" |
60 |
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86 ~x64-macos" |
61 |
-IUSE="doc sqlite test" |
62 |
-RESTRICT="!test? ( test )" |
63 |
- |
64 |
-RDEPEND=" |
65 |
- >=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}] |
66 |
- dev-python/pytz[${PYTHON_USEDEP}] |
67 |
- >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" |
68 |
-BDEPEND=" |
69 |
- test? ( |
70 |
- $(python_gen_impl_dep sqlite) |
71 |
- ${RDEPEND} |
72 |
- dev-python/docutils[${PYTHON_USEDEP}] |
73 |
- dev-python/jinja[${PYTHON_USEDEP}] |
74 |
- dev-python/numpy[${PYTHON_USEDEP}] |
75 |
- dev-python/pillow[webp,${PYTHON_USEDEP}] |
76 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
77 |
- dev-python/selenium[${PYTHON_USEDEP}] |
78 |
- dev-python/tblib[${PYTHON_USEDEP}] |
79 |
- sys-devel/gettext |
80 |
- !!<dev-python/ipython-7.21.0-r1 |
81 |
- !!=dev-python/ipython-7.22.0-r0 |
82 |
- ) |
83 |
- verify-sig? ( >=app-crypt/openpgp-keys-django-20201201 ) |
84 |
-" |
85 |
- |
86 |
-PATCHES=( |
87 |
- "${FILESDIR}"/${PN}-3.1-bashcomp.patch |
88 |
- # From https://github.com/django/django/pull/14228 |
89 |
- "${FILESDIR}"/${PN}-3.2.3-py310-repr.patch |
90 |
-) |
91 |
- |
92 |
-distutils_enable_sphinx docs --no-autodoc |
93 |
- |
94 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc |
95 |
- |
96 |
-src_unpack() { |
97 |
- if use verify-sig; then |
98 |
- cd "${DISTDIR}" || die |
99 |
- verify-sig_verify_signed_checksums \ |
100 |
- "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" |
101 |
- cd "${WORKDIR}" || die |
102 |
- fi |
103 |
- |
104 |
- default |
105 |
-} |
106 |
- |
107 |
-python_prepare_all() { |
108 |
- # Fails because of warnings |
109 |
- sed -i 's/test_dumpdata_proxy_with_concrete/_&/' tests/fixtures/tests.py |
110 |
- |
111 |
- distutils-r1_python_prepare_all |
112 |
-} |
113 |
- |
114 |
-python_test() { |
115 |
- # Tests have non-standard assumptions about PYTHONPATH, |
116 |
- # and don't work with ${BUILD_DIR}/lib. |
117 |
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || |
118 |
- die "Tests fail with ${EPYTHON}" |
119 |
-} |
120 |
- |
121 |
-python_install_all() { |
122 |
- newbashcomp extras/django_bash_completion ${PN}-admin |
123 |
- bashcomp_alias ${PN}-admin django-admin.py |
124 |
- |
125 |
- distutils-r1_python_install_all |
126 |
-} |
127 |
- |
128 |
-pkg_postinst() { |
129 |
- optfeature_header "Additional Backend support can be enabled via:" |
130 |
- optfeature "MySQL backend support" dev-python/mysqlclient |
131 |
- optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
132 |
- optfeature_header |
133 |
- optfeature "GEO Django" "sci-libs/gdal[geos]" |
134 |
- optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
135 |
- optfeature "ImageField Support" dev-python/pillow |
136 |
- optfeature "Password encryption" dev-python/bcrypt |
137 |
- optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
138 |
-} |
139 |
|
140 |
diff --git a/dev-python/django/files/django-3.2.3-py310-repr.patch b/dev-python/django/files/django-3.2.3-py310-repr.patch |
141 |
deleted file mode 100644 |
142 |
index 9bc32ecf176..00000000000 |
143 |
--- a/dev-python/django/files/django-3.2.3-py310-repr.patch |
144 |
+++ /dev/null |
145 |
@@ -1,92 +0,0 @@ |
146 |
-diff --git a/django/db/models/constraints.py b/django/db/models/constraints.py |
147 |
-index b073df17636a..6dfc42942f79 100644 |
148 |
---- a/django/db/models/constraints.py |
149 |
-+++ b/django/db/models/constraints.py |
150 |
-@@ -4,6 +4,7 @@ |
151 |
- from django.db.models.indexes import IndexExpression |
152 |
- from django.db.models.query_utils import Q |
153 |
- from django.db.models.sql.query import Query |
154 |
-+from django.utils.version import PY310 |
155 |
- |
156 |
- __all__ = ['CheckConstraint', 'Deferrable', 'UniqueConstraint'] |
157 |
- |
158 |
-@@ -85,6 +86,11 @@ class Deferrable(Enum): |
159 |
- DEFERRED = 'deferred' |
160 |
- IMMEDIATE = 'immediate' |
161 |
- |
162 |
-+ # A similar format is used in Python 3.10+. |
163 |
-+ if not PY310: |
164 |
-+ def __repr__(self): |
165 |
-+ return '%s.%s' % (self.__class__.__qualname__, self._name_) |
166 |
-+ |
167 |
- |
168 |
- class UniqueConstraint(BaseConstraint): |
169 |
- def __init__( |
170 |
-@@ -218,7 +224,7 @@ def __repr__(self): |
171 |
- '' if not self.expressions else ' expressions=%s' % repr(self.expressions), |
172 |
- ' name=%s' % repr(self.name), |
173 |
- '' if self.condition is None else ' condition=%s' % self.condition, |
174 |
-- '' if self.deferrable is None else ' deferrable=%s' % self.deferrable, |
175 |
-+ '' if self.deferrable is None else ' deferrable=%r' % self.deferrable, |
176 |
- '' if not self.include else ' include=%s' % repr(self.include), |
177 |
- '' if not self.opclasses else ' opclasses=%s' % repr(self.opclasses), |
178 |
- ) |
179 |
-diff --git a/django/db/models/enums.py b/django/db/models/enums.py |
180 |
-index 7082a397c237..dd9088597d4d 100644 |
181 |
---- a/django/db/models/enums.py |
182 |
-+++ b/django/db/models/enums.py |
183 |
-@@ -2,6 +2,7 @@ |
184 |
- from types import DynamicClassAttribute |
185 |
- |
186 |
- from django.utils.functional import Promise |
187 |
-+from django.utils.version import PY310 |
188 |
- |
189 |
- __all__ = ['Choices', 'IntegerChoices', 'TextChoices'] |
190 |
- |
191 |
-@@ -74,6 +75,11 @@ def __str__(self): |
192 |
- """ |
193 |
- return str(self.value) |
194 |
- |
195 |
-+ # A similar format is used in Python 3.10+. |
196 |
-+ if not PY310: |
197 |
-+ def __repr__(self): |
198 |
-+ return '%s.%s' % (self.__class__.__qualname__, self._name_) |
199 |
-+ |
200 |
- |
201 |
- class IntegerChoices(int, Choices): |
202 |
- """Class for creating enumerated integer choices.""" |
203 |
-diff --git a/tests/model_enums/tests.py b/tests/model_enums/tests.py |
204 |
-index 78f8b146be92..cda835010d7e 100644 |
205 |
---- a/tests/model_enums/tests.py |
206 |
-+++ b/tests/model_enums/tests.py |
207 |
-@@ -48,7 +48,7 @@ def test_integerchoices(self): |
208 |
- self.assertEqual(Suit.values, [1, 2, 3, 4]) |
209 |
- self.assertEqual(Suit.names, ['DIAMOND', 'SPADE', 'HEART', 'CLUB']) |
210 |
- |
211 |
-- self.assertEqual(repr(Suit.DIAMOND), '<Suit.DIAMOND: 1>') |
212 |
-+ self.assertEqual(repr(Suit.DIAMOND), 'Suit.DIAMOND') |
213 |
- self.assertEqual(Suit.DIAMOND.label, 'Diamond') |
214 |
- self.assertEqual(Suit.DIAMOND.value, 1) |
215 |
- self.assertEqual(Suit['DIAMOND'], Suit.DIAMOND) |
216 |
-@@ -89,7 +89,7 @@ def test_textchoices(self): |
217 |
- self.assertEqual(YearInSchool.values, ['FR', 'SO', 'JR', 'SR', 'GR']) |
218 |
- self.assertEqual(YearInSchool.names, ['FRESHMAN', 'SOPHOMORE', 'JUNIOR', 'SENIOR', 'GRADUATE']) |
219 |
- |
220 |
-- self.assertEqual(repr(YearInSchool.FRESHMAN), "<YearInSchool.FRESHMAN: 'FR'>") |
221 |
-+ self.assertEqual(repr(YearInSchool.FRESHMAN), 'YearInSchool.FRESHMAN') |
222 |
- self.assertEqual(YearInSchool.FRESHMAN.label, 'Freshman') |
223 |
- self.assertEqual(YearInSchool.FRESHMAN.value, 'FR') |
224 |
- self.assertEqual(YearInSchool['FRESHMAN'], YearInSchool.FRESHMAN) |
225 |
-diff --git a/django/utils/version.py b/django/utils/version.py |
226 |
-index 4b26586b36..b84ca7db27 100644 |
227 |
---- a/django/utils/version.py |
228 |
-+++ b/django/utils/version.py |
229 |
-@@ -13,7 +13,7 @@ PY36 = sys.version_info >= (3, 6) |
230 |
- PY37 = sys.version_info >= (3, 7) |
231 |
- PY38 = sys.version_info >= (3, 8) |
232 |
- PY39 = sys.version_info >= (3, 9) |
233 |
-- |
234 |
-+PY310 = sys.version_info >= (3, 10) |
235 |
- |
236 |
- def get_version(version=None): |
237 |
- """Return a PEP 440-compliant version number from VERSION.""" |