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/pykwalify/, dev-python/pykwalify/files/
Date: Tue, 02 Mar 2021 09:00:31
Message-Id: 1614675466.3b0fdf224361ec4a01f47753631921cb3f456569.mgorny@gentoo
1 commit: 3b0fdf224361ec4a01f47753631921cb3f456569
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 2 08:57:46 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 2 08:57:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b0fdf22
7
8 dev-python/pykwalify: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pykwalify/Manifest | 1 -
13 .../pykwalify/files/pykwalify-1.7.0-test.patch | 48 ----------------------
14 dev-python/pykwalify/pykwalify-1.7.0.ebuild | 35 ----------------
15 3 files changed, 84 deletions(-)
16
17 diff --git a/dev-python/pykwalify/Manifest b/dev-python/pykwalify/Manifest
18 index 80b7b12f0f9..d7d091a8b14 100644
19 --- a/dev-python/pykwalify/Manifest
20 +++ b/dev-python/pykwalify/Manifest
21 @@ -1,2 +1 @@
22 -DIST pykwalify-1.7.0.tar.gz 69402 BLAKE2B ad2ecafad8457509a5517917cd3bbb078a244a9ef96e5560efc4f6b0c4a3939df7f20a9e3e72e43be97edb8af6315d49e2c2f3248aaf17d3c4f0962f60132185 SHA512 d0db48814712dc26eeac8f00ee0751a006c8b00521c9829e3c1a4ecedd6083194e9e28da1ed3c13eaff30d9b5c3dd1dbb499ba8864251400e34c23911110d848
23 DIST pykwalify-1.8.0.tar.gz 62462 BLAKE2B 1593f5e3e15188929574ece60bf6818438258bf024d105ae26323a97a202ac69001a15ca6daaa430970af3659c49da745bcf1f77c23ac72bed2ddca14440d943 SHA512 c77d3072995bb3f61336e725227eeece1dafe2182513e5f67eedeeca3437825b53ac691a991055aad8298db252e2012bc9a61c23d766335fcfbb10a3b587b45d
24
25 diff --git a/dev-python/pykwalify/files/pykwalify-1.7.0-test.patch b/dev-python/pykwalify/files/pykwalify-1.7.0-test.patch
26 deleted file mode 100644
27 index a41653abae1..00000000000
28 --- a/dev-python/pykwalify/files/pykwalify-1.7.0-test.patch
29 +++ /dev/null
30 @@ -1,48 +0,0 @@
31 -From 744816a146e567a4c1efd30e874ff76134754fe2 Mon Sep 17 00:00:00 2001
32 -From: Grokzen <Grokzen@×××××.com>
33 -Date: Wed, 9 Oct 2019 23:25:59 +0200
34 -Subject: [PATCH] Fix broken test where errors data was wrong and duplicated
35 -
36 ----
37 - tests/files/fail/test_type_float.yaml | 2 --
38 - 1 file changed, 2 deletions(-)
39 -
40 -diff --git a/tests/files/fail/test_type_float.yaml b/tests/files/fail/test_type_float.yaml
41 -index bef14b8..972167d 100644
42 ---- a/tests/files/fail/test_type_float.yaml
43 -+++ b/tests/files/fail/test_type_float.yaml
44 -@@ -16,8 +16,6 @@ schema:
45 - type: seq
46 - seq:
47 - - type: float
48 --errors:
49 -- - "Value 'foo' is not of type 'float'. Path: '/0'"
50 - errors:
51 - - "Value 'True' is not of type 'float'. Path: '/1'"
52 - - "Value 'foo' is not of type 'float'. Path: '/0'"
53 -
54 -From 49052dd010637e1403c8b2b1c3710926acd2b1a0 Mon Sep 17 00:00:00 2001
55 -From: Grokzen <Grokzen@×××××.com>
56 -Date: Wed, 9 Oct 2019 23:21:09 +0200
57 -Subject: [PATCH] Fixed bug in test_multi_file_support where pytest would raise
58 - issue with a option that is no longer supported
59 -
60 ----
61 - tests/test_core.py | 4 +++-
62 - 1 file changed, 3 insertions(+), 1 deletion(-)
63 -
64 -diff --git a/tests/test_core.py b/tests/test_core.py
65 -index 6fcd81e..bd974df 100644
66 ---- a/tests/test_core.py
67 -+++ b/tests/test_core.py
68 -@@ -336,7 +336,9 @@ def test_multi_file_support(self):
69 - compare(c.root_rule.schema_str, passing_test[2], prefix="Parsed rules is not correct, something have changed...")
70 -
71 - for failing_test in failing_tests:
72 -- with pytest.raises(failing_test[2], message="Test files: {0} : {1}".format(", ".join(failing_test[0]), failing_test[1])):
73 -+ print("Test files: {0} : {1}".format(", ".join(failing_test[0]), failing_test[1]))
74 -+
75 -+ with pytest.raises(failing_test[2]):
76 - c = Core(schema_files=failing_test[0], source_file=failing_test[1])
77 - c.validate()
78 -
79
80 diff --git a/dev-python/pykwalify/pykwalify-1.7.0.ebuild b/dev-python/pykwalify/pykwalify-1.7.0.ebuild
81 deleted file mode 100644
82 index fba6ffb6482..00000000000
83 --- a/dev-python/pykwalify/pykwalify-1.7.0.ebuild
84 +++ /dev/null
85 @@ -1,35 +0,0 @@
86 -# Copyright 1999-2020 Gentoo Authors
87 -# Distributed under the terms of the GNU General Public License v2
88 -
89 -EAPI=7
90 -
91 -DISTUTILS_USE_SETUPTOOLS=rdepend
92 -PYTHON_COMPAT=( python3_{7..9} )
93 -
94 -inherit distutils-r1
95 -
96 -DESCRIPTION="Python lib/cli for JSON/YAML schema validation"
97 -HOMEPAGE="https://pypi.org/project/pykwalify/ https://github.com/Grokzen/pykwalify"
98 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
99 -
100 -SLOT="0"
101 -LICENSE="MIT"
102 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
103 -
104 -RDEPEND="
105 - >=dev-python/docopt-0.6.2[${PYTHON_USEDEP}]
106 - >=dev-python/pyyaml-3.11[${PYTHON_USEDEP}]
107 - >=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}]
108 -"
109 -DEPEND="
110 - test? (
111 - dev-python/testfixtures[${PYTHON_USEDEP}]
112 - )
113 -"
114 -
115 -distutils_enable_tests pytest
116 -
117 -PATCHES=(
118 - "${FILESDIR}"/${PN}-1.4.0-S.patch
119 - "${FILESDIR}"/${P}-test.patch
120 -)