diff --git a/python-importlib-resources.changes b/python-importlib-resources.changes index 5026e8c..babf583 100644 --- a/python-importlib-resources.changes +++ b/python-importlib-resources.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 2 18:51:58 UTC 2023 - Ben Greiner + +- Remove obsolete cache compilation for tests + * fixes d:l:p:backports 15.4_py39 build failure. +- Avoid building for not supported Python <= 3.6 + ------------------------------------------------------------------- Mon Jan 2 19:11:16 UTC 2023 - Dirk Müller diff --git a/python-importlib-resources.spec b/python-importlib-resources.spec index e9a1cfb..6e17d5a 100644 --- a/python-importlib-resources.spec +++ b/python-importlib-resources.spec @@ -16,8 +16,6 @@ # -%{?!python_module:%define python3-%{**}} -%define skip_python2 1 Name: python-importlib-resources Version: 5.10.2 Release: 0 @@ -25,12 +23,12 @@ Summary: Read resources from Python packages License: Apache-2.0 URL: https://importlib-resources.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/i/importlib_resources/importlib_resources-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 6} BuildRequires: %{python_module setuptools_scm >= 3.4.1} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testsuite} -BuildRequires: %{python_module toml} BuildRequires: %{python_module wheel} # Breaking the depcycle; not absolutely needed as ZipReader is not executed in tests. # BuildRequires: %%{python_module zipp >= 3.1.0 if %%python-base < 3.10} @@ -66,8 +64,6 @@ consistent semantics. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# create pycache so that update-zips.py does not fail with ValueError -python3 -m compileall $PWD/importlib_resources/tests/ %pytest %files %{python_files}