diff --git a/python-immutables.changes b/python-immutables.changes index 3f74ce1..98d64e9 100644 --- a/python-immutables.changes +++ b/python-immutables.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Aug 22 22:16:34 UTC 2022 - Ben Greiner + +- Don't do mypy static type checking of the sources in order to + avoid mypy in Ring1. The functionality of the binary rpm package + is not affected by properly typed python sources. +- Remove obsolete setup.py sed fix +- Don't catchall sitearch files in %files section + ------------------------------------------------------------------- Tue Jul 19 12:26:30 UTC 2022 - Dirk Müller diff --git a/python-immutables.spec b/python-immutables.spec index 50b1ed1..c63435c 100644 --- a/python-immutables.spec +++ b/python-immutables.spec @@ -25,12 +25,15 @@ Summary: Immutable collections for Python License: Apache-2.0 URL: https://github.com/MagicStack/immutables Source: https://files.pythonhosted.org/packages/source/i/immutables/immutables-%{version}.tar.gz -BuildRequires: %{python_module devel} -BuildRequires: %{python_module mypy >= 0.942} +BuildRequires: %{python_module devel >= 3.6} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing-extensions >= 3.7.4.3 if %python-base < 3.8} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %python_version_nodots < 38 +Requires: python-typing-extensions >= 3.7.4.3 +%endif %python_subpackages %description @@ -39,8 +42,6 @@ Immutable collections for Python. %prep %autosetup -p1 -n immutables-%{version} -sed -i 's/\.system//' setup.py - %build export CFLAGS="%{optflags}" %python_build @@ -52,11 +53,13 @@ export CFLAGS="%{optflags}" } %check +export IMMU_SKIP_MYPY_TESTS=1 %pyunittest discover -v %files %{python_files} %doc README.rst %license LICENSE -%{python_sitearch}/* +%{python_sitearch}/immutables +%{python_sitearch}/immutables-%{version}*-info %changelog