1 |
commit: 1225cd404cfbdb43699eaaf3ced03a0566a7ea91 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 15 21:19:56 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 15 21:32:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1225cd40 |
7 |
|
8 |
dev-python/flask-compress: Bump to 1.10.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/flask-compress/Manifest | 1 + |
13 |
.../files/flask-compress-1.10.0-test-install.patch | 27 +++++++++++++++++++ |
14 |
.../flask-compress/flask-compress-1.10.0.ebuild | 31 ++++++++++++++++++++++ |
15 |
3 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/flask-compress/Manifest b/dev-python/flask-compress/Manifest |
18 |
index d245600fb52..cbd912fea98 100644 |
19 |
--- a/dev-python/flask-compress/Manifest |
20 |
+++ b/dev-python/flask-compress/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST Flask-Compress-1.10.0.tar.gz 12271 BLAKE2B e120dc8f28a686e01d9e8d949d765cd7d05d11322195027ad499a514a4f1d35d79e28627d79abe6279d53ff95d3fe0f43f3561868904ec9ff903925046c5c141 SHA512 6166b4ac303f4fa373615d44e44b628448548e55591f1fe4eea8085f4f441fffe82e9d1419444f31581975fb49ed9ed5c32e594bc97e386e97df9a898f40b469 |
23 |
DIST Flask-Compress-1.9.0.tar.gz 10322 BLAKE2B 4dddfd8a5c4c182a0cb3c5f346ccca611517ab6471dd23512c885e3e370ac09f9a099994afd2ee28eae47cca6cba2d49220d8733103e6cdcfbae03b98a2480f1 SHA512 5f13f20a3a2f8e646a4324cf75a419ea5111252db701a17dd37bbafdb9228d0e279a6c957c5cfd69468bbdffb435e37a50e0dcf5d1a160f7397df1e6a9e6ac9e |
24 |
|
25 |
diff --git a/dev-python/flask-compress/files/flask-compress-1.10.0-test-install.patch b/dev-python/flask-compress/files/flask-compress-1.10.0-test-install.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..c104a71caa7 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/flask-compress/files/flask-compress-1.10.0-test-install.patch |
30 |
@@ -0,0 +1,27 @@ |
31 |
+From c82a993548494ee13035ca77aeaf0726218bee0d Mon Sep 17 00:00:00 2001 |
32 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
33 |
+Date: Tue, 15 Jun 2021 23:25:03 +0200 |
34 |
+Subject: [PATCH] Do not install top-level "tests" package |
35 |
+ |
36 |
+Fixes a regression in af2f16335279044e8baeab42e0b182d3e05861b4 that |
37 |
+causes "tests" to be installed as a top-level package to site-packages. |
38 |
+--- |
39 |
+ setup.py | 2 +- |
40 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
41 |
+ |
42 |
+diff --git a/setup.py b/setup.py |
43 |
+index b4aef13..afbe57a 100644 |
44 |
+--- a/setup.py |
45 |
++++ b/setup.py |
46 |
+@@ -13,7 +13,7 @@ setup( |
47 |
+ description='Compress responses in your Flask app with gzip, deflate or brotli.', |
48 |
+ long_description=LONG_DESCRIPTION, |
49 |
+ long_description_content_type='text/markdown', |
50 |
+- packages=find_packages(), |
51 |
++ packages=find_packages(exclude=['tests']), |
52 |
+ zip_safe=False, |
53 |
+ include_package_data=True, |
54 |
+ platforms='any', |
55 |
+-- |
56 |
+2.32.0 |
57 |
+ |
58 |
|
59 |
diff --git a/dev-python/flask-compress/flask-compress-1.10.0.ebuild b/dev-python/flask-compress/flask-compress-1.10.0.ebuild |
60 |
new file mode 100644 |
61 |
index 00000000000..9292dcfd80d |
62 |
--- /dev/null |
63 |
+++ b/dev-python/flask-compress/flask-compress-1.10.0.ebuild |
64 |
@@ -0,0 +1,31 @@ |
65 |
+# Copyright 1999-2021 Gentoo Authors |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+ |
68 |
+EAPI=7 |
69 |
+ |
70 |
+PYTHON_COMPAT=( python3_{8..9} ) |
71 |
+ |
72 |
+inherit distutils-r1 |
73 |
+ |
74 |
+MY_PN="Flask-Compress" |
75 |
+MY_P="${MY_PN}-${PV}" |
76 |
+ |
77 |
+DESCRIPTION="Compress responses in your Flask app with gzip" |
78 |
+HOMEPAGE="https://pypi.org/project/Flask-Compress/" |
79 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
80 |
+S="${WORKDIR}/${MY_P}" |
81 |
+ |
82 |
+LICENSE="MIT" |
83 |
+SLOT="0" |
84 |
+KEYWORDS="~amd64 ~x86" |
85 |
+ |
86 |
+RDEPEND=" |
87 |
+ app-arch/brotli[python,${PYTHON_USEDEP}] |
88 |
+ dev-python/flask[${PYTHON_USEDEP}] |
89 |
+" |
90 |
+ |
91 |
+distutils_enable_tests pytest |
92 |
+ |
93 |
+PATCHES=( |
94 |
+ "${FILESDIR}"/${P}-test-install.patch |
95 |
+) |