Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/apispec/, dev-python/apispec/files/
Date: Wed, 13 May 2020 17:19:18
Message-Id: 1589390343.cc89c679a0afdb4379b82cacdfe48f8950f7ea37.chutzpah@gentoo
1 commit: cc89c679a0afdb4379b82cacdfe48f8950f7ea37
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Wed May 13 17:18:35 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed May 13 17:19:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc89c679
7
8 dev-python/apispec-3.3.0: version bump
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/apispec/Manifest | 1 +
15 dev-python/apispec/apispec-3.3.0.ebuild | 33 ++++++++++++++++++++++
16 dev-python/apispec/files/apispec-3.3.0-tests.patch | 20 +++++++++++++
17 3 files changed, 54 insertions(+)
18
19 diff --git a/dev-python/apispec/Manifest b/dev-python/apispec/Manifest
20 index c5f2a6a964b..ad32036c7ff 100644
21 --- a/dev-python/apispec/Manifest
22 +++ b/dev-python/apispec/Manifest
23 @@ -1 +1,2 @@
24 DIST apispec-0.35.0.tar.gz 47684 BLAKE2B 3067a0d50a6f53378f46a9a07596da53679f399732619f5bd3d1bedd85d088c6901560dc46be22b42d77537c437d9d97840a55f0b1513e39c87760e9e6c8ea0c SHA512 45a3034c49169ca7998480a8b8e0ac6415d49b6235885fba31eaaccb1c008b4ea845a6743f10cc3492215affe20b690d73a9a06e0e0c3942e0327f381415fa57
25 +DIST apispec-3.3.0.tar.gz 66952 BLAKE2B a744230a1754d88b3bdc2325916e100d1de19bdf0e7985245d9f0ecf4a6bd9c778e502be73107a90a3676e8ecda45653d9f0962d33f68c6242bc52dc4695b1cb SHA512 f8cfaeec9486554653a09ce37cf2aa11b037047aa3af918a1273a4ca892d723c9367827cb3a034683722965f17dc8ed45ce3f163631c666902a3a87b5485b537
26
27 diff --git a/dev-python/apispec/apispec-3.3.0.ebuild b/dev-python/apispec/apispec-3.3.0.ebuild
28 new file mode 100644
29 index 00000000000..df2a9b020bc
30 --- /dev/null
31 +++ b/dev-python/apispec/apispec-3.3.0.ebuild
32 @@ -0,0 +1,33 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="A pluggable API specification generator."
42 +HOMEPAGE="https://github.com/marshmallow-code/apispec/"
43 +SRC_URI="https://github.com/marshmallow-code/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
53 +"
54 +BDEPEND="${RDEPEND}
55 + test? (
56 + dev-python/bottle[${PYTHON_USEDEP}]
57 + dev-python/mock[${PYTHON_USEDEP}]
58 + dev-python/marshmallow[${PYTHON_USEDEP}]
59 + )"
60 +
61 +PATCHES=(
62 + "${FILESDIR}/apispec-3.3.0-tests.patch"
63 +)
64 +
65 +distutils_enable_tests pytest
66
67 diff --git a/dev-python/apispec/files/apispec-3.3.0-tests.patch b/dev-python/apispec/files/apispec-3.3.0-tests.patch
68 new file mode 100644
69 index 00000000000..fb2ffc54920
70 --- /dev/null
71 +++ b/dev-python/apispec/files/apispec-3.3.0-tests.patch
72 @@ -0,0 +1,20 @@
73 +diff --git a/tests/test_ext_marshmallow_openapi.py b/tests/test_ext_marshmallow_openapi.py
74 +index ab1b0b8..d151a32 100644
75 +--- a/tests/test_ext_marshmallow_openapi.py
76 ++++ b/tests/test_ext_marshmallow_openapi.py
77 +@@ -454,6 +454,7 @@ class TestNesting:
78 + assert "breed" not in category_props
79 +
80 +
81 ++@×××××××××××.skip("test requires extra dependencies")
82 + def test_openapi_tools_validate_v2():
83 + ma_plugin = MarshmallowPlugin()
84 + spec = APISpec(
85 +@@ -512,6 +513,7 @@ def test_openapi_tools_validate_v2():
86 + pytest.fail(str(error))
87 +
88 +
89 ++@×××××××××××.skip("test requires extra dependencies")
90 + def test_openapi_tools_validate_v3():
91 + ma_plugin = MarshmallowPlugin()
92 + spec = APISpec(