1 |
commit: 72d19d2fdf77c868fef27afa9e9d847c772f97a2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 7 08:50:15 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 7 09:00:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72d19d2f |
7 |
|
8 |
dev-python/apispec: Bump to 4.2.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/apispec/Manifest | 1 + |
13 |
dev-python/apispec/apispec-4.2.0.ebuild | 37 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 38 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/apispec/Manifest b/dev-python/apispec/Manifest |
17 |
index 0a5e012d1a4..0c5dbc3a946 100644 |
18 |
--- a/dev-python/apispec/Manifest |
19 |
+++ b/dev-python/apispec/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST apispec-3.3.0.tar.gz 61687 BLAKE2B f1bcd212494d9196441e44acd4fd0d06063d7f80859ce49cd50dd5a4cbc4ddace974c2388031ddc8ef015b44f10a8f5d97c6d0f4fed96c1336dfc7282fa7c173 SHA512 c94cc48702ced17baa01175be2ff261dd7203cb0f49477f4be633080ef5f8029e5654579609370b4c1cd852d71f0b6fc116a05ee34515b22e7a0877a19d49a27 |
22 |
+DIST apispec-4.2.0.tar.gz 63046 BLAKE2B 4a6729975e28d22a23b0574f8298f3113ed89cdcc7d01e3086af82354d4a61b4a82420ab7ca7b66790481dd8e3232ebe80319266fb2de54c0aa8c6c3a7fa86a1 SHA512 51187a80f8ad260bd0a89d4a882d2517f56237a6cfb0596cf29999e3fc42af0700c88037ba205a4e7f51587abf8b1db5dbae7ee5d98ae55fc9fe2314f69fa656 |
23 |
|
24 |
diff --git a/dev-python/apispec/apispec-4.2.0.ebuild b/dev-python/apispec/apispec-4.2.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..fb3382c1baf |
27 |
--- /dev/null |
28 |
+++ b/dev-python/apispec/apispec-4.2.0.ebuild |
29 |
@@ -0,0 +1,37 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+PYTHON_COMPAT=( python3_{7..9} ) |
35 |
+ |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="A pluggable API specification generator." |
39 |
+HOMEPAGE="https://github.com/marshmallow-code/apispec/" |
40 |
+SRC_URI="https://github.com/marshmallow-code/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}] |
48 |
+" |
49 |
+BDEPEND="${RDEPEND} |
50 |
+ test? ( |
51 |
+ dev-python/bottle[${PYTHON_USEDEP}] |
52 |
+ dev-python/mock[${PYTHON_USEDEP}] |
53 |
+ dev-python/marshmallow[${PYTHON_USEDEP}] |
54 |
+ )" |
55 |
+ |
56 |
+distutils_enable_tests pytest |
57 |
+ |
58 |
+python_test() { |
59 |
+ local deselect=( |
60 |
+ tests/test_ext_marshmallow_openapi.py::test_openapi_tools_validate_v2 |
61 |
+ tests/test_ext_marshmallow_openapi.py::test_openapi_tools_validate_v3 |
62 |
+ ) |
63 |
+ |
64 |
+ pytest -vv ${deselect[@]/#/--deselect } || |
65 |
+ die "Tests failed with ${EPYTHON}" |
66 |
+} |