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/jsonschema/, dev-python/jsonschema/files/
Date: Sat, 22 Jan 2022 10:56:44
Message-Id: 1642848997.157b9faad2181f91f886afe744c11a7f49b2666b.mgorny@gentoo
1 commit: 157b9faad2181f91f886afe744c11a7f49b2666b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 22 10:56:09 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 22 10:56:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=157b9faa
7
8 dev-python/jsonschema: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/jsonschema/Manifest | 1 -
13 ...sonschema-3.2.0-add-webcolors-1.11-compat.patch | 70 ----------------------
14 dev-python/jsonschema/jsonschema-3.2.0-r1.ebuild | 44 --------------
15 3 files changed, 115 deletions(-)
16
17 diff --git a/dev-python/jsonschema/Manifest b/dev-python/jsonschema/Manifest
18 index 2da6195da3f1..922228fe4ff7 100644
19 --- a/dev-python/jsonschema/Manifest
20 +++ b/dev-python/jsonschema/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST jsonschema-3.2.0.tar.gz 167226 BLAKE2B f89a8198f6b7b4dd56b0320ddecdd834423cbeaf49fbbd1563007da61004322b92e25856ecc17b4d02e2162b2359ec5d7601826fe42cfcb7683ae16cf2baeb39 SHA512 acbb4cec730a8cdab9f070593ed896064fbe082d464ec362adc952e4985e9eaa12ad0f2d55a04018ffdaf675e54037999a7219533dad6b84bf609f5dfe21bbab
23 DIST jsonschema-4.3.3.tar.gz 311720 BLAKE2B 685e7712bdf87f0b6cfdc0ca6b094c90efd78acec72a6233661caddbba52e55ab78af83a24b14b9580a9eed6179302208b35ca836dce36459db65f0017805142 SHA512 f2a9e4d89a12d5d1c53666a9c95bc29adf2559438f0ab11f34abaf3f2525f525cd742ae54f2d3a732d98db92c4f45fc7611ffbc61f2ac1121377066a86db3bf9
24 DIST jsonschema-4.4.0.tar.gz 313519 BLAKE2B 6339c4ac9e99b55e41c133861baacb6644e04d15e915d3199955512530c946973ca6d5348746688660ea7392d53102754dba3f3380fc8aa3a4ab284a9dcde684 SHA512 8e5c138f4debf7540e2cd131f3f208d1778927ac9036f5fa67bcf5db8c62fe1bb454c7818ee61acef64e856ea4b498ef6ab08be314a3c6b1e461e0bb44db41c7
25
26 diff --git a/dev-python/jsonschema/files/jsonschema-3.2.0-add-webcolors-1.11-compat.patch b/dev-python/jsonschema/files/jsonschema-3.2.0-add-webcolors-1.11-compat.patch
27 deleted file mode 100644
28 index bfb4fa8d139b..000000000000
29 --- a/dev-python/jsonschema/files/jsonschema-3.2.0-add-webcolors-1.11-compat.patch
30 +++ /dev/null
31 @@ -1,70 +0,0 @@
32 -From 09595a50f507399bf3fa8c68ed6371c42b9c4874 Mon Sep 17 00:00:00 2001
33 -From: Julian Berman <Julian@×××××××××.com>
34 -Date: Fri, 21 Feb 2020 09:30:05 -0500
35 -Subject: [PATCH 1/2] Newer webcolors has a new API apparently.
36 -
37 ----
38 - jsonschema/_format.py | 2 +-
39 - setup.cfg | 4 ++--
40 - 2 files changed, 3 insertions(+), 3 deletions(-)
41 -
42 -diff --git a/jsonschema/_format.py b/jsonschema/_format.py
43 -index 281a7cf..f3c758c 100644
44 ---- a/jsonschema/_format.py
45 -+++ b/jsonschema/_format.py
46 -@@ -354,7 +354,7 @@ else:
47 - def is_css21_color(instance):
48 - if (
49 - not isinstance(instance, str_types) or
50 -- instance.lower() in webcolors.css21_names_to_hex
51 -+ instance.lower() in webcolors.CSS21_NAMES_TO_HEX
52 - ):
53 - return True
54 - return is_css_color_code(instance)
55 ---
56 -2.24.1
57 -
58 -From 0d192e192526252c30c16b3651c293bb5f21a99f Mon Sep 17 00:00:00 2001
59 -From: Julian Berman <Julian@×××××××××.com>
60 -Date: Fri, 21 Feb 2020 09:56:13 -0500
61 -Subject: [PATCH 2/2] Sigh... but also drops Py2 compat.
62 -
63 ----
64 - jsonschema/_format.py | 11 ++++++++---
65 - setup.cfg | 4 ++--
66 - 2 files changed, 10 insertions(+), 5 deletions(-)
67 -
68 -diff --git a/jsonschema/_format.py b/jsonschema/_format.py
69 -index f3c758c..b96efb6 100644
70 ---- a/jsonschema/_format.py
71 -+++ b/jsonschema/_format.py
72 -@@ -342,10 +342,15 @@ def is_draft3_time(instance):
73 - return datetime.datetime.strptime(instance, "%H:%M:%S")
74 -
75 -
76 --try:
77 -+try: # webcolors>=1.11
78 -+ from webcolors import CSS21_NAMES_TO_HEX
79 - import webcolors
80 - except ImportError:
81 -- pass
82 -+ try: # webcolors<1.11
83 -+ from webcolors import css21_names_to_hex as CSS21_NAMES_TO_HEX
84 -+ import webcolors
85 -+ except ImportError:
86 -+ pass
87 - else:
88 - def is_css_color_code(instance):
89 - return webcolors.normalize_hex(instance)
90 -@@ -354,7 +359,7 @@ else:
91 - def is_css21_color(instance):
92 - if (
93 - not isinstance(instance, str_types) or
94 -- instance.lower() in webcolors.CSS21_NAMES_TO_HEX
95 -+ instance.lower() in CSS21_NAMES_TO_HEX
96 - ):
97 - return True
98 - return is_css_color_code(instance)
99 ---
100 -2.24.1
101 -
102
103 diff --git a/dev-python/jsonschema/jsonschema-3.2.0-r1.ebuild b/dev-python/jsonschema/jsonschema-3.2.0-r1.ebuild
104 deleted file mode 100644
105 index a1a69cca3a4a..000000000000
106 --- a/dev-python/jsonschema/jsonschema-3.2.0-r1.ebuild
107 +++ /dev/null
108 @@ -1,44 +0,0 @@
109 -# Copyright 1999-2021 Gentoo Authors
110 -# Distributed under the terms of the GNU General Public License v2
111 -
112 -EAPI=7
113 -
114 -PYTHON_COMPAT=( python3_{8..10} )
115 -DISTUTILS_USE_SETUPTOOLS=rdepend
116 -
117 -inherit distutils-r1
118 -
119 -DESCRIPTION="An implementation of JSON-Schema validation for Python"
120 -HOMEPAGE="https://pypi.org/project/jsonschema/ https://github.com/Julian/jsonschema"
121 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
122 -
123 -LICENSE="MIT"
124 -SLOT="0"
125 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
126 -
127 -BDEPEND="
128 - dev-python/attrs[${PYTHON_USEDEP}]
129 - dev-python/pyrsistent[${PYTHON_USEDEP}]
130 - dev-python/six[${PYTHON_USEDEP}]
131 - test? ( dev-python/twisted[${PYTHON_USEDEP}] )
132 -"
133 -
134 -RDEPEND="${BDEPEND}
135 - dev-python/idna[${PYTHON_USEDEP}]
136 - >=dev-python/jsonpointer-1.13[${PYTHON_USEDEP}]
137 - dev-python/rfc3987[${PYTHON_USEDEP}]
138 - dev-python/strict-rfc3339[${PYTHON_USEDEP}]
139 - dev-python/webcolors[${PYTHON_USEDEP}]
140 - dev-python/rfc3986-validator[${PYTHON_USEDEP}]
141 - dev-python/rfc3339-validator[${PYTHON_USEDEP}]
142 -"
143 -
144 -BDEPEND+="
145 - dev-python/setuptools_scm[${PYTHON_USEDEP}]
146 -"
147 -
148 -PATCHES=(
149 - "${FILESDIR}"/${P}-add-webcolors-1.11-compat.patch
150 -)
151 -
152 -distutils_enable_tests unittest