From 6cf8818af8f52a11e9832a4a9d38456e11157400 Mon Sep 17 00:00:00 2001 From: han-guangyu Date: Thu, 25 Apr 2024 23:10:39 +0800 Subject: [PATCH] Drop redundant Requires python3-typed-ast when python version >= 3.8 typed_ast as requirement when python_version < '3.8'[1]. [1] https://github.com/python/mypy/blob/v0.982/mypy-requirements.txt#L4 --- python-mypy.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python-mypy.spec b/python-mypy.spec index d2b6519..94052ef 100644 --- a/python-mypy.spec +++ b/python-mypy.spec @@ -1,13 +1,15 @@ %global _empty_manifest_terminate_build 0 Name: python-mypy Version: 0.982 -Release: 1 +Release: 2 Summary: Optional static typing for Python License: MIT and Python-2.0 URL: https://github.com/python/mypy Source0: https://github.com/python/mypy/archive/refs/tags/v%{version}.tar.gz -Requires: python3-typed-ast +%if 0%{?python3_version_nodots} && %{?python3_version_nodots} < 308 +Requires: python3-typed-ast +%endif Requires: python3-typing-extensions Requires: python3-mypy-extensions Requires: python3-psutil @@ -90,6 +92,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \ %{_mandir}/man1/stubgen.1* %changelog +* Thu Apr 25 2024 Han Guangyu - 0.982-2 +- Drop redundant Requires python3-typed-ast when python version >= 3.8 + * Thu Apr 11 2024 wangjing - 0.982-1 - update package of version 0.982 - Restore Type vs Callable special-casing that was broken in refactoring -- Gitee