diff --git a/jsonschema-4.17.3.tar.gz b/jsonschema-4.17.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cc703423562f70bb9fbc0a2cb5376e126452f10a Binary files /dev/null and b/jsonschema-4.17.3.tar.gz differ diff --git a/jsonschema-4.4.0.tar.gz b/jsonschema-4.4.0.tar.gz deleted file mode 100644 index 9265ac543565094d361803b1761da56a21032859..0000000000000000000000000000000000000000 Binary files a/jsonschema-4.4.0.tar.gz and /dev/null differ diff --git a/python-jsonschema.spec b/python-jsonschema.spec index 3c3f7c1e25e11843bd857627f6aed52e7894fcfc..1244f080ca4c997621d6548739d900e29fdfe002 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -1,4 +1,5 @@ %define anolis_release 1 + %global pypi_name jsonschema %global common_description %{expand: @@ -10,14 +11,11 @@ jsonschema is an implementation of JSON Schema for Python (supporting - Small and extensible - Programmatic querying of which properties or items failed validation.} -%{?python_enable_dependency_generator} - Name: python-%{pypi_name} Summary: Implementation of JSON Schema validation for Python -Version: 4.4.0 -Release: %{anolis_release}%{dist} +Version: 4.17.3 +Release: %{anolis_release}%{?dist} License: MIT - URL: https://github.com/Julian/jsonschema Source0: %{pypi_source} @@ -25,18 +23,11 @@ BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) -BuildRequires: python3dist(setuptools-scm) - # test requirements %bcond_without tests %if %{with tests} -BuildRequires: python3dist(attrs) -BuildRequires: python3dist(perf) -BuildRequires: python3dist(pyrsistent) -BuildRequires: python3dist(six) +# For “trial-3” BuildRequires: python3dist(twisted) -BuildRequires: python3dist(pip) %endif %description %{common_description} @@ -44,50 +35,50 @@ BuildRequires: python3dist(pip) %package -n python3-%{pypi_name} Summary: %{summary} - -%{?python_provide:%python_provide python3-%{pypi_name}} - %description -n python3-%{pypi_name} %{common_description} +%pyproject_extras_subpkg -n python3-%{pypi_name} format format-nongpl -%{?python_extras_subpkg:%python_extras_subpkg -n python3-%{pypi_name} -i %{python3_sitelib}/*.egg-info format} +%package -n python3-%{pypi_name}-doc +Summary: doc files for python3-%{pypi_name} +Requires: python3-%{pypi_name} = %{version}-%{release} +%description -n python3-%{pypi_name}-doc +doc files for python3-%{pypi_name} %prep %autosetup -n %{pypi_name}-%{version} -cat << ! > setup.py -from setuptools import setup -setup() -! -# Remove bundled egg-info -rm -rf %{pypi_name}.egg-info +# 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 %build -%py3_build - +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{pypi_name} %if %{with tests} %check -PYTHONPATH=$(pwd) trial-3 %{pypi_name} +PYTHONPATH=%{buildroot}%{python3_sitelib} trial-3 %{pypi_name} %endif - -%files -n python3-%{pypi_name} +%files -n python3-%{pypi_name} -f %{pyproject_files} %license COPYING json/LICENSE -%doc README.rst - %{_bindir}/jsonschema -%{python3_sitelib}/%{pypi_name}/ -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ +%files -n python3-%{pypi_name}-doc +%doc README.rst +%changelog +* Mon Feb 20 2023 mgb01105731 - 4.17.3-1 +- update to version 4.17.3 -%changelog * Tue Apr 19 2022 Zhongling He 4.4.0-1 - Init package from upstream v4.4.0