Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/xmlschema/files/, dev-python/xmlschema/
Date: Mon, 02 Nov 2020 09:49:11
Message-Id: 1604310533.44e5bcbf2b984653bef394dc23703c7b671d3405.mgorny@gentoo
1 commit: 44e5bcbf2b984653bef394dc23703c7b671d3405
2 Author: Wim Muskee <wimmuskee <AT> gmail <DOT> com>
3 AuthorDate: Sun Nov 1 06:12:48 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 2 09:48:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44e5bcbf
7
8 dev-python/xmlschema: version bump to 1.2.5, update metadata
9
10 - add upstream ids to metadata
11
12 Signed-off-by: Wim Muskee <wimmuskee <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/18099
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 dev-python/xmlschema/Manifest | 1 +
17 .../files/xmlschema-1.2.5-skip_network_tests.patch | 10 ++++++
18 dev-python/xmlschema/metadata.xml | 4 +++
19 dev-python/xmlschema/xmlschema-1.2.5.ebuild | 36 ++++++++++++++++++++++
20 4 files changed, 51 insertions(+)
21
22 diff --git a/dev-python/xmlschema/Manifest b/dev-python/xmlschema/Manifest
23 index 4aedc28835e..ace081b7fdf 100644
24 --- a/dev-python/xmlschema/Manifest
25 +++ b/dev-python/xmlschema/Manifest
26 @@ -1,2 +1,3 @@
27 DIST xmlschema-1.2.3.tar.gz 322076 BLAKE2B 2b6c587772a14b4b804a35614a2e1e77ade9be0ef25cabfc331efc3a443058fd51c178339f1d6df2cbda77d2a8d1c2ac2c33155406e7e7f36c10225ecb70a3e7 SHA512 15c47c7e93cb0bf14534dfc298848ba4ac332677583ee14eca0c5908fd935e1a3dc01b96f92e7df6eb45b215eae2b67d74ee2d4d227fb3e3360be944815532b7
28 DIST xmlschema-1.2.4.tar.gz 287636 BLAKE2B bbb06fcf0e93b98ad7b9746fa0492bc79705dab79fa3d738bc02368e5d777b61cce60f6bd65f095dc99395037d7f0af3056c0877f0c96efb830fa65e1a389c2b SHA512 27f50890728be149e3c36a5ad706b27c32efecf859699a99bebe9a0b81dea2c1ab733860366a2cf0d30680de7f45d8ae581cb445ba78708db3ed25ff7eef94ee
29 +DIST xmlschema-1.2.5.tar.gz 290750 BLAKE2B b6fb6722f1f9468cbae6507522c4398a7d0aff11918479b8e89e24986df2ad1ae4fe8640c5fe532319c6e7dbdb958d81df8cf81f1ceb18db09c406fc6a137219 SHA512 f821f041b7be483039746d7c7771117d4cac6189dd02a0f95235ea6597300dead39813b1ede9b6871fad93e50aa55f01f7da4e485c7074f66d78a76f1b57e7cf
30
31 diff --git a/dev-python/xmlschema/files/xmlschema-1.2.5-skip_network_tests.patch b/dev-python/xmlschema/files/xmlschema-1.2.5-skip_network_tests.patch
32 new file mode 100644
33 index 00000000000..4dee9a4ef10
34 --- /dev/null
35 +++ b/dev-python/xmlschema/files/xmlschema-1.2.5-skip_network_tests.patch
36 @@ -0,0 +1,10 @@
37 +--- xmlschema-1.2.5/tests/validators/test_schema_class.py
38 ++++ xmlschema-1.2.5/tests/validators/test_schema_class.py
39 +@@ -261,6 +261,7 @@ class TestXMLSchema10(XsdValidatorTestCa
40 +
41 + self.assertFalse(os.path.isdir(dirname))
42 +
43 ++ @unittest.skipIf(SKIP_REMOTE_TESTS, "Remote networks are not accessible.")
44 + def test_export_remote__issue_187(self):
45 + vh_schema_file = self.casepath('issues/issue_187/issue_187_2.xsd')
46 + vh_schema = self.schema_class(vh_schema_file)
47
48 diff --git a/dev-python/xmlschema/metadata.xml b/dev-python/xmlschema/metadata.xml
49 index e59516686a4..54ba6f5b2b0 100644
50 --- a/dev-python/xmlschema/metadata.xml
51 +++ b/dev-python/xmlschema/metadata.xml
52 @@ -5,4 +5,8 @@
53 <email>python@g.o</email>
54 </maintainer>
55 <stabilize-allarches/>
56 + <upstream>
57 + <remote-id type="pypi">xmlschema</remote-id>
58 + <remote-id type="github">sissaschool/xmlschema</remote-id>
59 + </upstream>
60 </pkgmetadata>
61
62 diff --git a/dev-python/xmlschema/xmlschema-1.2.5.ebuild b/dev-python/xmlschema/xmlschema-1.2.5.ebuild
63 new file mode 100644
64 index 00000000000..a97acabc532
65 --- /dev/null
66 +++ b/dev-python/xmlschema/xmlschema-1.2.5.ebuild
67 @@ -0,0 +1,36 @@
68 +# Copyright 2019-2020 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=7
72 +
73 +DISTUTILS_USE_SETUPTOOLS=rdepend
74 +PYTHON_COMPAT=( python3_{6..9} pypy3 )
75 +
76 +inherit distutils-r1
77 +
78 +DESCRIPTION="An XML Schema validator and decoder"
79 +HOMEPAGE="https://github.com/sissaschool/xmlschema https://pypi.org/project/xmlschema/"
80 +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
81 +
82 +LICENSE="MIT"
83 +SLOT="0"
84 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
85 +IUSE="test"
86 +RESTRICT="!test? ( test )"
87 +
88 +RDEPEND="
89 + >=dev-python/elementpath-2.0.2[${PYTHON_USEDEP}]"
90 +BDEPEND="${RDEPEND}
91 + test? (
92 + dev-python/lxml[${PYTHON_USEDEP}]
93 + )"
94 +
95 +# patch from https://github.com/sissaschool/xmlschema/issues/206
96 +PATCHES=(
97 + "${FILESDIR}/${P}-skip_network_tests.patch"
98 +)
99 +
100 +python_test() {
101 + "${EPYTHON}" tests/test_all.py -v ||
102 + die "Tests fail with ${EPYTHON}"
103 +}