public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-jsonschema] 2488367: Update to 2.6.0 (Jan Beran)
@ 2026-06-15  7:29 Alan Pevec
  0 siblings, 0 replies; only message in thread
From: Alan Pevec @ 2026-06-15  7:29 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-jsonschema
            Branch : 2488367
            Commit : 1abd40cb2700e1182e3d3d01f71dce98ae5aa85f
            Author : Alan Pevec <alan.pevec@redhat.com>
            Date   : 2017-07-24T00:44:07+02:00
            Stats  : +70/-59 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-jsonschema/c/1abd40cb2700e1182e3d3d01f71dce98ae5aa85f?branch=2488367

            Log:
            Update to 2.6.0 (Jan Beran)

Fix of missing Python 3 version executables (Jan Beran)

Resolves: rhbz#1436800
Resolves: rhbz#1419376

---
diff --git a/.gitignore b/.gitignore
index 7c35874..68054e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
 /jsonschema-2.3.0.tar.gz
 /jsonschema-2.4.0.tar.gz
 /jsonschema-2.5.1.tar.gz
+/jsonschema-2.6.0.tar.gz

diff --git a/avoid-unpackaged-for-jsonschema-2.6.0.patch b/avoid-unpackaged-for-jsonschema-2.6.0.patch
new file mode 100644
index 0000000..0c32181
--- /dev/null
+++ b/avoid-unpackaged-for-jsonschema-2.6.0.patch
@@ -0,0 +1,58 @@
+diff -ru jsonschema-2.6.0.orig/jsonschema/compat.py jsonschema-2.6.0/jsonschema/compat.py
+--- jsonschema-2.6.0.orig/jsonschema/compat.py	2015-11-30 13:58:04.000000000 +0100
++++ jsonschema-2.6.0/jsonschema/compat.py	2017-07-21 12:57:25.768508757 +0200
+@@ -8,6 +8,7 @@
+     from collections.abc import MutableMapping, Sequence  # noqa
+ 
+ PY3 = sys.version_info[0] >= 3
++PY27 = sys.version_info[:2] == (2, 7)
+ 
+ if PY3:
+     zip = zip
+@@ -32,8 +33,10 @@
+     int_types = int, long
+     iteritems = operator.methodcaller("iteritems")
+ 
+-    from functools32 import lru_cache
+-
++    if PY27:
++        from repoze.lru import lru_cache
++    else:
++        from functools32 import lru_cache
+ 
+ # On python < 3.3 fragments are not handled properly with unknown schemes
+ def urlsplit(url):
+diff -ru jsonschema-2.6.0.orig/setup.py jsonschema-2.6.0/setup.py
+--- jsonschema-2.6.0.orig/setup.py	2016-08-28 04:29:36.000000000 +0200
++++ jsonschema-2.6.0/setup.py	2017-07-21 13:28:06.503903938 +0200
+@@ -1,6 +1,7 @@
+ import os
+ 
+ from setuptools import setup
++from jsonschema import _version
+ 
+ 
+ with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
+@@ -22,14 +23,14 @@
+ 
+ extras_require = {
+     "format" : ["rfc3987", "strict-rfc3339", "webcolors"],
+-    ":python_version=='2.7'": ["functools32"],
++    ":python_version=='2.7'": ["repoze.lru"],
+ }
+ 
+ setup(
+     name="jsonschema",
++    version=_version.__version__,
+     packages=["jsonschema", "jsonschema.tests"],
+     package_data={"jsonschema": ["schemas/*.json"]},
+-    setup_requires=["vcversioner>=2.16.0.0"],
+     extras_require=extras_require,
+     author="Julian Berman",
+     author_email="Julian@GrayVines.com",
+@@ -39,5 +40,4 @@
+     long_description=long_description,
+     url="http://github.com/Julian/jsonschema",
+     entry_points={"console_scripts": ["jsonschema = jsonschema.cli:main"]},
+-    vcversioner={"version_module_paths" : ["jsonschema/_version.py"]},
+ )

diff --git a/avoid-unpackaged.patch b/avoid-unpackaged.patch
deleted file mode 100644
index 70fc147..0000000
--- a/avoid-unpackaged.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-diff -ru jsonschema-2.5.1.orig/jsonschema/compat.py jsonschema-2.5.1/jsonschema/compat.py
---- jsonschema-2.5.1.orig/jsonschema/compat.py	2015-04-13 17:23:46.000000000 +0200
-+++ jsonschema-2.5.1/jsonschema/compat.py	2016-02-27 16:33:40.938583562 +0100
-@@ -9,6 +9,7 @@
- 
- PY3 = sys.version_info[0] >= 3
- PY26 = sys.version_info[:2] == (2, 6)
-+PY27 = sys.version_info[:2] == (2, 7)
- 
- if PY3:
-     zip = zip
-@@ -33,7 +34,7 @@
-     int_types = int, long
-     iteritems = operator.methodcaller("iteritems")
- 
--    if PY26:
-+    if PY26 or PY27:
-         from repoze.lru import lru_cache
-     else:
-         from functools32 import lru_cache
-diff -ru jsonschema-2.5.1.orig/setup.py jsonschema-2.5.1/setup.py
---- jsonschema-2.5.1.orig/setup.py	2015-06-08 18:04:36.000000000 +0200
-+++ jsonschema-2.5.1/setup.py	2016-02-27 16:34:40.462446660 +0100
-@@ -1,6 +1,7 @@
- import os
- 
- from setuptools import setup
-+from jsonschema import _version
- 
- 
- with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
-@@ -24,14 +25,14 @@
- extras_require = {
-     "format" : ["rfc3987", "strict-rfc3339", "webcolors"],
-     ":python_version=='2.6'": ["argparse", "repoze.lru"],
--    ":python_version=='2.7'": ["functools32"],
-+    ":python_version=='2.7'": ["repoze.lru"],
- }
- 
- setup(
-     name="jsonschema",
-+    version=_version.__version__,
-     packages=["jsonschema", "jsonschema.tests"],
-     package_data={"jsonschema": ["schemas/*.json"]},
--    setup_requires=["vcversioner"],
-     extras_require=extras_require,
-     author="Julian Berman",
-     author_email="Julian@GrayVines.com",
-@@ -41,5 +42,4 @@
-     long_description=long_description,
-     url="http://github.com/Julian/jsonschema",
-     entry_points={"console_scripts": ["jsonschema = jsonschema.cli:main"]},
--    vcversioner={"version_module_paths" : ["jsonschema/_version.py"]},
- )

diff --git a/python-jsonschema.spec b/python-jsonschema.spec
index a6b9255..f3eec8c 100644
--- a/python-jsonschema.spec
+++ b/python-jsonschema.spec
@@ -4,13 +4,13 @@
 %global with_python3 1
 
 Name:           python-%{pypi_name}
-Version:        2.5.1
-Release:        5%{?dist}
+Version:        2.6.0
+Release:        1%{?dist}
 Summary:        An implementation of JSON Schema validation for Python
 
 License:        MIT
 URL:            http://pypi.python.org/pypi/jsonschema
-Source0:        http://pypi.python.org/packages/source/j/jsonschema/%{pypi_name}-%{version}.tar.gz
+Source0:        https://files.pythonhosted.org/packages/source/j/jsonschema/%{pypi_name}-%{version}.tar.gz
 BuildArch:      noarch
 
 %if %{?rhel}%{!?rhel:0} == 6
@@ -32,7 +32,7 @@ BuildRequires:  python%{python3_pkgversion}-mock
 %endif
 
 # avoid functools32, vcversioner
-Patch0: avoid-unpackaged.patch
+Patch0: avoid-unpackaged-for-jsonschema-2.6.0.patch
 
 %description
 jsonschema is JSON Schema validator currently based on
@@ -72,6 +72,7 @@ http://tools.ietf.org/html/draft-zyp-json-schema-03
 %install
 %if 0%{?with_python3}
 %py3_install
+mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-3
 %endif
 %py2_install
 
@@ -92,12 +93,17 @@ http://tools.ietf.org/html/draft-zyp-json-schema-03
 %files -n python%{python3_pkgversion}-%{pypi_name}
 %license COPYING
 %doc README.rst
+%{_bindir}/jsonschema-3
 %{python3_sitelib}/%{pypi_name}/
 %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
 %endif
 
 
 %changelog
+* Fri Jul 21 2017 Jan Beran <jberan@redhat.com> 2.6.0-1
+- Update to 2.6.0
+- Fix of missing Python 3 version executables
+
 * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 

diff --git a/sources b/sources
index 0def3b1..66db0ed 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-374e848fdb69a3ce8b7e778b47c30640  jsonschema-2.5.1.tar.gz
+SHA512 (jsonschema-2.6.0.tar.gz) = 03f916abd023b32fbe60f91718d6f2f94d8834bd1bd8ec85ab02f591a145161275c2cde25b037c4d2e94703b870159feb776d3556f011e4c394d2e20ab897b0b

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-15  7:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15  7:29 [rpms/python-jsonschema] 2488367: Update to 2.6.0 (Jan Beran) Alan Pevec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox