15
0
forked from pool/python-mypy

Accepting request 1162950 from home:ecsos:python

- Disable self_check under %check in Leap because it does not work 
  and prevent package building.

OBS-URL: https://build.opensuse.org/request/show/1162950
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=11
This commit is contained in:
2024-03-28 08:08:12 +00:00
committed by Git OBS Bridge
parent 00f4a5eaaa
commit ca87b07efe
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 27 15:59:56 UTC 2024 - ecsos <ecsos@opensuse.org>
- Disable self_check under %check in Leap because it does not work
and prevent package building.
-------------------------------------------------------------------
Fri Mar 22 13:48:55 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -51,7 +51,7 @@ Requires: python-typing_extensions >= 3.10
Requires: (python-tomli >= 1.1.0 if python-base < 3.11)
Requires: (python-typed-ast >= 1.4.0 if python-base < 3.8)
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
Provides: mypy = %{version}
Obsoletes: mypy < %{version}
@@ -126,11 +126,12 @@ rm docs/make.bat
%if %{with test}
%check
%if 0%{?suse_version} > 1600
%{python_expand # self-check with manually provided stubs for typed_ast
export PYTHONPATH=%{buildroot}%{$python_sitelib}:./mystubs
$python -m mypy --config-file mypy_self_check.ini -p mypy
}
%endif
unset PYTHONPATH
# cannot compile unoptimized with suse headers
export MYPYC_OPT_LEVEL=2