1 |
commit: 5eb38e39bb838415ba4cd33ce58fbfc7ba44a1dc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 2 08:51:29 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 2 08:53:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5eb38e39 |
7 |
|
8 |
dev-python/flask-security: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/flask-security/Manifest | 2 - |
13 |
.../files/flask-security-3.4.3-optional-deps.patch | 63 ------------------ |
14 |
.../flask-security/flask-security-3.4.4.ebuild | 74 ---------------------- |
15 |
.../flask-security/flask-security-3.4.5.ebuild | 74 ---------------------- |
16 |
4 files changed, 213 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/flask-security/Manifest b/dev-python/flask-security/Manifest |
19 |
index f3cb59c61c4..6f9e62831ce 100644 |
20 |
--- a/dev-python/flask-security/Manifest |
21 |
+++ b/dev-python/flask-security/Manifest |
22 |
@@ -1,3 +1 @@ |
23 |
-DIST flask-security-3.4.4.gh.tar.gz 348525 BLAKE2B 77a851c2549be9ce8612e3b186ad2d83d272b277f286885da491f3f0fe99e8836d145749ae137f1e75625c34b2214270ba4d24f1bfaa514012064dd38f083230 SHA512 1c1a4f079199704d7a2a4e11351cd199e3a790f5d0c7f68b240c299e83b129227fac4ca00caf45401efbf14520c1d65d3b710b85e8f53b495283b94a164f97a2 |
24 |
-DIST flask-security-3.4.5.gh.tar.gz 348928 BLAKE2B 9890227e9775c4a28fc364affb0bf767407463d514f6dc3cd359dd8a026e8325d943a547f294f6363a276f9e7d97336c526dd45f4549c7cfaff2d6ef9ef0316a SHA512 f9ac7f46b2e1ab7dbb44ba925b01e16304e8f8d6d5d56f4e558d07b80dfffa59f04c2597e17c00a7d7ae11be3a97c78ccf8d79993b7451be4a7f75f85bc89f6f |
25 |
DIST flask-security-4.0.0.gh.tar.gz 381592 BLAKE2B 62f8ceb5b6912839ad69a9f26793a831304f0d03cd40c73bd7c6701421d22955bec1e43713b2e07004ff9686591370378d9ff6e2e61e6bdc9a6472f18b28bfad SHA512 1d616121d0220bdef6081f4feb2c56b6feb346609548ad74c7bbbb60f4d65e9b3ec92a35fa9e077c35db9ab398d921461450594185956d05d5dda063fe972b72 |
26 |
|
27 |
diff --git a/dev-python/flask-security/files/flask-security-3.4.3-optional-deps.patch b/dev-python/flask-security/files/flask-security-3.4.3-optional-deps.patch |
28 |
deleted file mode 100644 |
29 |
index 484e816908f..00000000000 |
30 |
--- a/dev-python/flask-security/files/flask-security-3.4.3-optional-deps.patch |
31 |
+++ /dev/null |
32 |
@@ -1,63 +0,0 @@ |
33 |
-From 8943f49c3e6064839bd1e3c2c73a750b2b476ae3 Mon Sep 17 00:00:00 2001 |
34 |
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
35 |
-Date: Wed, 15 Jul 2020 09:02:15 +0200 |
36 |
-Subject: [PATCH 1/2] tests: Skip tests requiring specific data backends if not |
37 |
- available |
38 |
- |
39 |
-Skip tests that require a specific database backend if the respective |
40 |
-package is not available. This is mostly intended to make it possible |
41 |
-to test flask-security on Python 3.9 since Pony does not support this |
42 |
-Python version but there is no harm in extending it to other backends. |
43 |
- |
44 |
-Technically, Flask-SQLAlchemy is still required due to other tests. |
45 |
---- |
46 |
- tests/conftest.py | 5 +++++ |
47 |
- 1 file changed, 5 insertions(+) |
48 |
- |
49 |
-diff --git a/tests/conftest.py b/tests/conftest.py |
50 |
-index 3305d92..a48f480 100644 |
51 |
---- a/tests/conftest.py |
52 |
-+++ b/tests/conftest.py |
53 |
-@@ -218,6 +218,7 @@ def mongoengine_datastore(request, app, tmpdir, realdburl): |
54 |
- |
55 |
- |
56 |
- def mongoengine_setup(request, app, tmpdir, realdburl): |
57 |
-+ pytest.importorskip('flask_mongoengine') |
58 |
- from flask_mongoengine import MongoEngine |
59 |
- from mongoengine.fields import ( |
60 |
- BooleanField, |
61 |
-@@ -282,6 +283,7 @@ def sqlalchemy_datastore(request, app, tmpdir, realdburl): |
62 |
- |
63 |
- |
64 |
- def sqlalchemy_setup(request, app, tmpdir, realdburl): |
65 |
-+ pytest.importorskip('flask_sqlalchemy') |
66 |
- from flask_sqlalchemy import SQLAlchemy |
67 |
- from flask_security.models import fsqla_v2 as fsqla |
68 |
- |
69 |
-@@ -326,6 +328,7 @@ def sqlalchemy_session_datastore(request, app, tmpdir, realdburl): |
70 |
- |
71 |
- |
72 |
- def sqlalchemy_session_setup(request, app, tmpdir, realdburl): |
73 |
-+ pytest.importorskip('sqlalchemy') |
74 |
- from sqlalchemy import create_engine |
75 |
- from sqlalchemy.orm import scoped_session, sessionmaker, relationship, backref |
76 |
- from sqlalchemy.ext.declarative import declarative_base |
77 |
-@@ -426,6 +429,7 @@ def peewee_datastore(request, app, tmpdir, realdburl): |
78 |
- |
79 |
- |
80 |
- def peewee_setup(request, app, tmpdir, realdburl): |
81 |
-+ pytest.importorskip('peewee') |
82 |
- from peewee import ( |
83 |
- TextField, |
84 |
- DateTimeField, |
85 |
-@@ -522,6 +526,7 @@ def pony_datastore(request, app, tmpdir, realdburl): |
86 |
- |
87 |
- def pony_setup(request, app, tmpdir, realdburl): |
88 |
- |
89 |
-+ pytest.importorskip('pony') |
90 |
- from pony.orm import Database, Optional, Required, Set |
91 |
- from pony.orm.core import SetInstance |
92 |
- |
93 |
--- |
94 |
-2.27.0 |
95 |
- |
96 |
|
97 |
diff --git a/dev-python/flask-security/flask-security-3.4.4.ebuild b/dev-python/flask-security/flask-security-3.4.4.ebuild |
98 |
deleted file mode 100644 |
99 |
index ff4924b074a..00000000000 |
100 |
--- a/dev-python/flask-security/flask-security-3.4.4.ebuild |
101 |
+++ /dev/null |
102 |
@@ -1,74 +0,0 @@ |
103 |
-# Copyright 1999-2021 Gentoo Authors |
104 |
-# Distributed under the terms of the GNU General Public License v2 |
105 |
- |
106 |
-EAPI=7 |
107 |
- |
108 |
-PYTHON_COMPAT=( python3_{7..9} ) |
109 |
-inherit distutils-r1 |
110 |
- |
111 |
-DESCRIPTION="Simple security for Flask apps" |
112 |
-HOMEPAGE=" |
113 |
- https://github.com/Flask-Middleware/flask-security/ |
114 |
- https://pypi.org/project/Flask-Security-Too/" |
115 |
-SRC_URI=" |
116 |
- https://github.com/Flask-Middleware/flask-security/archive/${PV}.tar.gz |
117 |
- -> ${P}.gh.tar.gz" |
118 |
- |
119 |
-LICENSE="MIT" |
120 |
-SLOT="0" |
121 |
-KEYWORDS="amd64 x86" |
122 |
- |
123 |
-RDEPEND=" |
124 |
- dev-python/cachetools[${PYTHON_USEDEP}] |
125 |
- >=dev-python/flask-1.1.1[${PYTHON_USEDEP}] |
126 |
- >=dev-python/flask-babelex-0.9.3[${PYTHON_USEDEP}] |
127 |
- >=dev-python/flask-login-0.4.1[${PYTHON_USEDEP}] |
128 |
- >=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}] |
129 |
- >=dev-python/flask-wtf-0.14.2[${PYTHON_USEDEP}] |
130 |
- >=dev-python/itsdangerous-1.1.0[${PYTHON_USEDEP}] |
131 |
- >=dev-python/passlib-1.7.2[${PYTHON_USEDEP}] |
132 |
- >=dev-python/python-email-validator-1.0.5[${PYTHON_USEDEP}] |
133 |
-" |
134 |
- |
135 |
-BDEPEND=" |
136 |
- dev-python/Babel[${PYTHON_USEDEP}] |
137 |
- test? ( |
138 |
- >=dev-python/argon2-cffi-19.1.0[${PYTHON_USEDEP}] |
139 |
- >=dev-python/bcrypt-3.1.5[${PYTHON_USEDEP}] |
140 |
- >=dev-python/cryptography-2.3.1[${PYTHON_USEDEP}] |
141 |
- >=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}] |
142 |
- >=dev-python/flask-mongoengine-0.9.5[${PYTHON_USEDEP}] |
143 |
- >=dev-python/flask-sqlalchemy-2.3[${PYTHON_USEDEP}] |
144 |
- dev-python/mock[${PYTHON_USEDEP}] |
145 |
- >=dev-python/mongomock-3.19.0[${PYTHON_USEDEP}] |
146 |
- >=dev-python/peewee-3.11.2[${PYTHON_USEDEP}] |
147 |
- >=dev-python/phonenumbers-8.11.1[${PYTHON_USEDEP}] |
148 |
- >=dev-python/psycopg-2.8.4:2[${PYTHON_USEDEP}] |
149 |
- >=dev-python/pymysql-0.9.3[${PYTHON_USEDEP}] |
150 |
- >=dev-python/pyqrcode-1.2[${PYTHON_USEDEP}] |
151 |
- >=dev-python/zxcvbn-4.4.28[${PYTHON_USEDEP}] |
152 |
- $(python_gen_cond_dep ' |
153 |
- >=dev-python/pony-0.7.11[${PYTHON_USEDEP}] |
154 |
- ' python3_{6,7}) |
155 |
- )" |
156 |
- |
157 |
-distutils_enable_tests pytest |
158 |
- |
159 |
-PATCHES=( |
160 |
- "${FILESDIR}"/${PN}-3.4.3-optional-deps.patch |
161 |
-) |
162 |
- |
163 |
-src_prepare() { |
164 |
- sed -i -e '/setup_requires/d' setup.py || die |
165 |
- sed -e 's@--cov flask_security@-p no:httpbin@' \ |
166 |
- -e 's:--cov-report term-missing::' \ |
167 |
- -e 's:--black::' \ |
168 |
- -e 's:--flake8::' \ |
169 |
- -e 's:--cache-clear::' \ |
170 |
- -i pytest.ini || die |
171 |
- distutils-r1_src_prepare |
172 |
-} |
173 |
- |
174 |
-python_configure_all() { |
175 |
- esetup.py compile_catalog |
176 |
-} |
177 |
|
178 |
diff --git a/dev-python/flask-security/flask-security-3.4.5.ebuild b/dev-python/flask-security/flask-security-3.4.5.ebuild |
179 |
deleted file mode 100644 |
180 |
index ff4924b074a..00000000000 |
181 |
--- a/dev-python/flask-security/flask-security-3.4.5.ebuild |
182 |
+++ /dev/null |
183 |
@@ -1,74 +0,0 @@ |
184 |
-# Copyright 1999-2021 Gentoo Authors |
185 |
-# Distributed under the terms of the GNU General Public License v2 |
186 |
- |
187 |
-EAPI=7 |
188 |
- |
189 |
-PYTHON_COMPAT=( python3_{7..9} ) |
190 |
-inherit distutils-r1 |
191 |
- |
192 |
-DESCRIPTION="Simple security for Flask apps" |
193 |
-HOMEPAGE=" |
194 |
- https://github.com/Flask-Middleware/flask-security/ |
195 |
- https://pypi.org/project/Flask-Security-Too/" |
196 |
-SRC_URI=" |
197 |
- https://github.com/Flask-Middleware/flask-security/archive/${PV}.tar.gz |
198 |
- -> ${P}.gh.tar.gz" |
199 |
- |
200 |
-LICENSE="MIT" |
201 |
-SLOT="0" |
202 |
-KEYWORDS="amd64 x86" |
203 |
- |
204 |
-RDEPEND=" |
205 |
- dev-python/cachetools[${PYTHON_USEDEP}] |
206 |
- >=dev-python/flask-1.1.1[${PYTHON_USEDEP}] |
207 |
- >=dev-python/flask-babelex-0.9.3[${PYTHON_USEDEP}] |
208 |
- >=dev-python/flask-login-0.4.1[${PYTHON_USEDEP}] |
209 |
- >=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}] |
210 |
- >=dev-python/flask-wtf-0.14.2[${PYTHON_USEDEP}] |
211 |
- >=dev-python/itsdangerous-1.1.0[${PYTHON_USEDEP}] |
212 |
- >=dev-python/passlib-1.7.2[${PYTHON_USEDEP}] |
213 |
- >=dev-python/python-email-validator-1.0.5[${PYTHON_USEDEP}] |
214 |
-" |
215 |
- |
216 |
-BDEPEND=" |
217 |
- dev-python/Babel[${PYTHON_USEDEP}] |
218 |
- test? ( |
219 |
- >=dev-python/argon2-cffi-19.1.0[${PYTHON_USEDEP}] |
220 |
- >=dev-python/bcrypt-3.1.5[${PYTHON_USEDEP}] |
221 |
- >=dev-python/cryptography-2.3.1[${PYTHON_USEDEP}] |
222 |
- >=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}] |
223 |
- >=dev-python/flask-mongoengine-0.9.5[${PYTHON_USEDEP}] |
224 |
- >=dev-python/flask-sqlalchemy-2.3[${PYTHON_USEDEP}] |
225 |
- dev-python/mock[${PYTHON_USEDEP}] |
226 |
- >=dev-python/mongomock-3.19.0[${PYTHON_USEDEP}] |
227 |
- >=dev-python/peewee-3.11.2[${PYTHON_USEDEP}] |
228 |
- >=dev-python/phonenumbers-8.11.1[${PYTHON_USEDEP}] |
229 |
- >=dev-python/psycopg-2.8.4:2[${PYTHON_USEDEP}] |
230 |
- >=dev-python/pymysql-0.9.3[${PYTHON_USEDEP}] |
231 |
- >=dev-python/pyqrcode-1.2[${PYTHON_USEDEP}] |
232 |
- >=dev-python/zxcvbn-4.4.28[${PYTHON_USEDEP}] |
233 |
- $(python_gen_cond_dep ' |
234 |
- >=dev-python/pony-0.7.11[${PYTHON_USEDEP}] |
235 |
- ' python3_{6,7}) |
236 |
- )" |
237 |
- |
238 |
-distutils_enable_tests pytest |
239 |
- |
240 |
-PATCHES=( |
241 |
- "${FILESDIR}"/${PN}-3.4.3-optional-deps.patch |
242 |
-) |
243 |
- |
244 |
-src_prepare() { |
245 |
- sed -i -e '/setup_requires/d' setup.py || die |
246 |
- sed -e 's@--cov flask_security@-p no:httpbin@' \ |
247 |
- -e 's:--cov-report term-missing::' \ |
248 |
- -e 's:--black::' \ |
249 |
- -e 's:--flake8::' \ |
250 |
- -e 's:--cache-clear::' \ |
251 |
- -i pytest.ini || die |
252 |
- distutils-r1_src_prepare |
253 |
-} |
254 |
- |
255 |
-python_configure_all() { |
256 |
- esetup.py compile_catalog |
257 |
-} |