From 67aff1b0ddfdf6fb518c6e9a6026aec6f7642e5d Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Mar 02 2023 10:39:29 +0000 Subject: Update jsonschema to 4.16.0 Related-to: https://review.rdoproject.org/r/q/I730a86f702933c11f0227c5332286c44d6cfe028 --- diff --git a/.python-jsonschema.metadata b/.python-jsonschema.metadata index 28ba79a..9a9b2d4 100644 --- a/.python-jsonschema.metadata +++ b/.python-jsonschema.metadata @@ -1 +1 @@ -97e49df4601f7066d9954c0ec4d8d697887b32f0 SOURCES/jsonschema-2.6.0.tar.gz +912d562c1394408dca582e14843e3245df2f3827 SOURCES/jsonschema-4.16.0.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-jsonschema.spec b/SPECS/python-jsonschema.spec index 69729f2..37bdf70 100644 --- a/SPECS/python-jsonschema.spec +++ b/SPECS/python-jsonschema.spec @@ -1,66 +1,191 @@ -# Created by pyp2rpm-0.4.2 %global pypi_name jsonschema -Name: python-%{pypi_name} -Version: 2.6.0 -Release: 4%{?dist} -Summary: An implementation of JSON Schema validation for Python +%global common_description %{expand: +jsonschema is an implementation of JSON Schema for Python (supporting +2.7+, including Python 3). + + - Full support for Draft 7, Draft 6, Draft 4 and Draft 3 + - Lazy validation that can iteratively report all validation errors. + - Small and extensible + - Programmatic querying of which properties or items failed validation.} +Name: python-%{pypi_name} +Summary: Implementation of JSON Schema validation for Python +Version: 4.16.0 +Release: 1%{?dist} License: MIT -URL: http://pypi.python.org/pypi/jsonschema -Source0: https://files.pythonhosted.org/packages/source/j/jsonschema/%{pypi_name}-%{version}.tar.gz +URL: https://github.com/Julian/jsonschema +Source0: %{pypi_source} + BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-nose -BuildRequires: python%{python3_pkgversion}-mock +# test requirements +%bcond_without tests +%if %{with tests} +# For “trial-3” +BuildRequires: python3dist(twisted) +%endif -# avoid functools32, vcversioner -Patch0: avoid-unpackaged-for-jsonschema-2.6.0.patch +%description %{common_description} -Patch1: test-sys-executable.patch -%description -jsonschema is JSON Schema validator currently based on -http://tools.ietf.org/html/draft-zyp-json-schema-03 +%package -n python3-%{pypi_name} +Summary: %{summary} +%description -n python3-%{pypi_name} %{common_description} -%package -n python%{python3_pkgversion}-%{pypi_name} -Summary: An implementation of JSON Schema validation for Python %{python3_version} -%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} +%pyproject_extras_subpkg -n python3-%{pypi_name} format format-nongpl -%description -n python%{python3_pkgversion}-%{pypi_name} -jsonschema is JSON Schema validator currently based on -http://tools.ietf.org/html/draft-zyp-json-schema-03 %prep -%setup -q -n %{pypi_name}-%{version} -%patch0 -p1 -%patch1 -p1 +%autosetup -n %{pypi_name}-%{version} -%build -%py3_build +# Requires a checkout of the JSON-Schema-Test-Suite +# https://github.com/json-schema-org/JSON-Schema-Test-Suite +rm jsonschema/tests/test_jsonschema_test_suite.py + +%generate_buildrequires +%pyproject_buildrequires -w +%build +%pyproject_wheel %install -%py3_install -mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-3 +%pyproject_install +%pyproject_save_files %{pypi_name} + +%if %{with tests} %check -%{__python3} -m nose -v +PYTHONPATH=%{buildroot}%{python3_sitelib} trial-3 %{pypi_name} +%endif -%files -n python%{python3_pkgversion}-%{pypi_name} -%license COPYING +%files -n python3-%{pypi_name} -f %{pyproject_files} +%license COPYING json/LICENSE %doc README.rst -%{_bindir}/jsonschema-3 -%{python3_sitelib}/%{pypi_name}/ -%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info - +%{_bindir}/jsonschema %changelog -* Wed May 30 2018 Petr Viktorin - 2.6.0-4 -- Drop the Python2 subpackage - https://bugzilla.redhat.com/show_bug.cgi?id=1584189 -- Use sys.executable rather than unversioned "python" in tests +* Wed Sep 21 2022 Parag Nemade - 4.16.0-1 +- Update to 4.16.0 release + +* Wed Aug 17 2022 Parag Nemade - 4.10.0-1 +- Update to 4.10.0 release + +* Mon Aug 01 2022 Parag Nemade - 4.9.0-1 +- Update to 4.9.0 release + +* Sun Jul 24 2022 Parag Nemade - 4.7.2-1 +- Update to 4.7.2 release + +* Fri Jul 22 2022 Fedora Release Engineering - 4.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 28 2022 Benjamin A. Beasley - 4.6.0-3 +- Drop some BuildRequires that are generated or no longer needed + +* Tue Jun 28 2022 Miro Hrončok - 4.6.0-2 +- Include the metadata directory in python3-jsonschema +- Fixes: rhbz#2101786 + +* Mon Jun 27 2022 Parag Nemade - 4.6.0-1 +- Update to 4.6.0 + +* Tue Jun 14 2022 Python Maint - 3.2.0-17 +- Rebuilt for Python 3.11 + +* Tue Jun 14 2022 Python Maint - 3.2.0-16 +- Bootstrap for Python 3.11 + +* Tue Jun 14 2022 Python Maint - 3.2.0-15 +- Rebuilt for Python 3.11 + +* Mon Jun 13 2022 Python Maint - 3.2.0-14 +- Bootstrap for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 3.2.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 3.2.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 3.2.0-11 +- Rebuilt for Python 3.10 + +* Thu Jun 03 2021 Python Maint - 3.2.0-10 +- Bootstrap for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 3.2.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Nov 10 2020 Nils Philippsen - 3.2.0-8 +- Provide python3dist(jsonschema[format]) again (#1878976) + +* Tue Sep 29 2020 Miro Hrončok - 3.2.0-7 +- Remove metapackage for python3dist(jsonschema[format]) (missing deps, #1880820) + +* Sat Sep 19 2020 Miro Hrončok - 3.2.0-6 +- Add metapackage for python3dist(jsonschema[format]) needed by python3-bravado-core (#1878976) + +* Wed Jul 29 2020 Fedora Release Engineering - 3.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 3.2.0-4 +- Rebuilt for Python 3.9 + +* Sat May 23 2020 Miro Hrončok - 3.2.0-3 +- Bootstrap for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Dec 07 2019 Fabio Valentini - 3.2.0-1 +- Update to version 3.2.0. + +* Thu Oct 03 2019 Miro Hrončok - 3.0.2-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Sat Aug 17 2019 Miro Hrončok - 3.0.2-3 +- Rebuilt for Python 3.8 + +* Thu Aug 15 2019 Miro Hrončok - 3.0.2-2 +- Bootstrap for Python 3.8 + +* Fri Aug 02 2019 Fabio Valentini - 3.0.2-1 +- Update to version 3.0.2. + +* Fri Jul 26 2019 Fedora Release Engineering - 3.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Mar 01 2019 Fabio Valentini - 3.0.1-1 +- Update to version 3.0.1. + +* Sun Feb 24 2019 Fabio Valentini - 3.0.0-1 +- Update to version 3.0.0. + +* Sat Feb 02 2019 Fedora Release Engineering - 3.0.0~b3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jan 28 2019 Fabio Valentini - 3.0.0~b3-1 +- Update to version 3.0.0b3. + +* Tue Jan 22 2019 Fabio Valentini - 3.0.0~b1-1 +- Update to version 3.0.0b1. + +* Sat Jan 19 2019 Fabio Valentini - 3.0.0~a5-1 +- Update to version 3.0.0a5. +- Moved python2 sub-package to separate source package. + +* Sat Jul 14 2018 Fedora Release Engineering - 2.6.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 15 2018 Miro Hrončok - 2.6.0-5 +- Rebuilt for Python 3.7 + +* Wed Feb 21 2018 Iryna Shcherbina - 2.6.0-4 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 2.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -93,7 +218,6 @@ mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-3 * Thu Feb 04 2016 Fedora Release Engineering - 2.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - * Tue Oct 13 2015 Robert Kuska - 2.4.0-3 - Rebuilt for Python3.5 rebuild @@ -136,3 +260,4 @@ mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-3 * Wed May 23 2012 Pádraig Brady - 0.2-1 - Initial package. +