1 |
commit: 9c727ea758bccfd5cc058c2990e01980e20449dc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 29 11:34:46 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 29 11:55:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c727ea7 |
7 |
|
8 |
dev-python/falcon: Bump to 3.1.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/falcon/Manifest | 1 + |
13 |
dev-python/falcon/falcon-3.1.0.ebuild | 61 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/falcon/Manifest b/dev-python/falcon/Manifest |
17 |
index 55051ca41e26..41ea3755b11f 100644 |
18 |
--- a/dev-python/falcon/Manifest |
19 |
+++ b/dev-python/falcon/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST falcon-3.0.1.tar.gz 1300689 BLAKE2B 76dd59d0274cc2e78052b800e6e5b4c4244e1f5e47169a424882cda5bb59c38cd69c1c0942d506867728da9ddaf5d35b88195a1b003ca5f66549248293b7006d SHA512 c6a5763264b497979129df26d83a04323f53861b6d453a2b642d22208d0dad2ec1fcb88b13a53c2cb2b2988a1c0d19b94021099b458e23d640984b4d03880edc |
22 |
+DIST falcon-3.1.0.tar.gz 1319252 BLAKE2B 183623c8d7e8b86ed9915cbf3757fd526f7f3a8a97ae5fdf86294bcc65052c5c827d4a920d93e9fa0198a8d255c7b56ecff465a36d9b0ea31581abd87d55ccd0 SHA512 9da76dd92dfce1611ef681588d8e0e2fc7e906b5c0bc4b60a4620e2e9907564783763b7776c9cc2ccb296116c985e527b2f429520a1c601567cf4eb15e98f8cc |
23 |
|
24 |
diff --git a/dev-python/falcon/falcon-3.1.0.ebuild b/dev-python/falcon/falcon-3.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..121575f7c481 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/falcon/falcon-3.1.0.ebuild |
29 |
@@ -0,0 +1,61 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="A supersonic micro-framework for building cloud APIs" |
41 |
+HOMEPAGE=" |
42 |
+ https://falconframework.org/ |
43 |
+ https://pypi.org/project/falcon/ |
44 |
+ https://github.com/falconry/falcon/ |
45 |
+" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/falconry/${PN}/archive/${PV}.tar.gz |
48 |
+ -> ${P}.tar.gz |
49 |
+" |
50 |
+ |
51 |
+LICENSE="Apache-2.0 MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+ |
55 |
+BDEPEND=" |
56 |
+ dev-python/cython[${PYTHON_USEDEP}] |
57 |
+ test? ( |
58 |
+ dev-python/aiofiles[${PYTHON_USEDEP}] |
59 |
+ dev-python/cbor2[${PYTHON_USEDEP}] |
60 |
+ dev-python/httpx[${PYTHON_USEDEP}] |
61 |
+ dev-python/msgpack[${PYTHON_USEDEP}] |
62 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
63 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
64 |
+ dev-python/uvicorn[${PYTHON_USEDEP}] |
65 |
+ dev-python/websockets[${PYTHON_USEDEP}] |
66 |
+ ) |
67 |
+" |
68 |
+ |
69 |
+distutils_enable_tests pytest |
70 |
+ |
71 |
+python_test() { |
72 |
+ local EPYTEST_DESELECT=( |
73 |
+ # uwsgi seems to be broken/incompatible |
74 |
+ 'tests/test_wsgi_servers.py::TestWSGIServer::test_get[uwsgi]' |
75 |
+ 'tests/test_wsgi_servers.py::TestWSGIServer::test_get_deprecated[uwsgi]' |
76 |
+ 'tests/test_wsgi_servers.py::TestWSGIServer::test_post_multipart_form[uwsgi]' |
77 |
+ 'tests/test_wsgi_servers.py::TestWSGIServer::test_static_file[uwsgi]' |
78 |
+ 'tests/test_wsgi_servers.py::TestWSGIServer::test_static_file_byte_range[uwsgi-' |
79 |
+ ) |
80 |
+ |
81 |
+ local EPYTEST_IGNORE=( |
82 |
+ # mujson is unpackaged, test-only dep |
83 |
+ tests/test_media_handlers.py |
84 |
+ ) |
85 |
+ |
86 |
+ rm -rf falcon || die |
87 |
+ # needed because servers are spawned via /usr/bin/python* |
88 |
+ local -x PYTHONPATH=${BUILD_DIR}/install$(python_get_sitedir):${PYTHONPATH} |
89 |
+ epytest tests |
90 |
+} |