From 9275771367c880a42bf776dcc171a5ae96299f9f3bfaf5d77ade43114960cf08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 23 Aug 2022 09:42:56 +0000 Subject: [PATCH] Accepting request 998729 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/998729 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-immutables?expand=0&rev=19 --- python-immutables.changes | 9 +++++++++ python-immutables.spec | 13 ++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) 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