diff --git a/python-mypy.changes b/python-mypy.changes index 06c7081..3f342db 100644 --- a/python-mypy.changes +++ b/python-mypy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 5 12:58:47 UTC 2025 - Matej Cepl + +- Update vendored types_* to the appropriate versions. + ------------------------------------------------------------------- Fri Jan 24 15:13:25 UTC 2025 - ecsos diff --git a/python-mypy.spec b/python-mypy.spec index bdd5970..98ece85 100644 --- a/python-mypy.spec +++ b/python-mypy.spec @@ -16,10 +16,10 @@ # -%{?sle15_python_module_pythons} +%define types_psutil_version 7.0.0.20250401 +%define types_setuptools_version 78.1.0.20250329 %bcond_without test -%define types_psutil_version 6.0.0.20241011 -%define types_setuptools_version 75.1.0.20241014 +%{?sle15_python_module_pythons} Name: python-mypy Version: 1.14.1 Release: 0 @@ -29,9 +29,9 @@ URL: https://www.mypy-lang.org/ Source0: https://files.pythonhosted.org/packages/source/m/mypy/mypy-%{version}.tar.gz # Source0: mypy-%%{version}.tar.gz # License Source1: Apache-2.0. Only for the test suite, not packaged here. -Source1: https://files.pythonhosted.org/packages/source/t/types-psutil/types-psutil-%{types_psutil_version}.tar.gz +Source1: https://files.pythonhosted.org/packages/source/t/types-psutil/types_psutil-%{types_psutil_version}.tar.gz # License Source2: Apache-2.0. Only for the test suite, not packaged here. -Source2: https://files.pythonhosted.org/packages/source/t/types-setuptools/types-setuptools-%{types_setuptools_version}.tar.gz +Source2: https://files.pythonhosted.org/packages/source/t/types-setuptools/types_setuptools-%{types_setuptools_version}.tar.gz Source99: python-mypy-rpmlintrc BuildRequires: %{python_module exceptiongroup} BuildRequires: %{python_module mypy_extensions >= 1.0.0} @@ -40,20 +40,19 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tomli >= 1.1.0} BuildRequires: %{python_module typing_extensions >= 4.6.0} BuildRequires: %{python_module wheel} -BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-mypy_extensions >= 0.4.3 Requires: python-typing_extensions >= 3.10 Requires: (python-tomli >= 1.1.0 if python-base < 3.11) Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives +Suggests: python-psutil >= 4.0 +BuildArch: noarch %if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" Provides: mypy = %{version} Obsoletes: mypy < %{version} %endif -Suggests: python-psutil >= 4.0 -BuildArch: noarch %if %{with test} BuildRequires: %{python_module attrs >= 18} BuildRequires: %{python_module devel} @@ -85,15 +84,17 @@ Mypy's type system features type inference, gradual typing, generics and union types. %prep -%setup -q -a 1 -a 2 -n mypy-%{version} +%setup -q -a1 -n mypy-%{version} +%setup -T -D -a2 -n mypy-%{version} %autopatch -p1 sed -i '/env python3/d' ./mypy/stubgenc.py sed -i '/env python3/d' ./mypy/stubgen.py mkdir mystubs -mv types-setuptools-%{types_setuptools_version}/setuptools-stubs* mystubs/ -mv types-psutil-%{types_psutil_version}/psutil-stubs* mystubs/ +ls -l types_* +mv types_setuptools-%{types_setuptools_version}/setuptools-stubs* mystubs/ +mv types_psutil-%{types_psutil_version}/psutil-stubs* mystubs/ # "E: wrong-script-end-of-line-encoding" and "E: spurious-executable-perm", file is not needed anyways rm docs/make.bat @@ -153,7 +154,7 @@ donttest+=" or PEP561Suite" %license LICENSE %{python_sitelib}/mypy %{python_sitelib}/mypyc -# %{python_sitelib}/mypy-%%{version}.dist-info +# %%{python_sitelib}/mypy-%%{version}.dist-info %{python_sitelib}/mypy-*.dist-info %python_alternative %{_bindir}/dmypy %python_alternative %{_bindir}/mypy diff --git a/types-psutil-6.0.0.20241011.tar.gz b/types-psutil-6.0.0.20241011.tar.gz deleted file mode 100644 index e6195a3..0000000 --- a/types-psutil-6.0.0.20241011.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5f5c71d02f7a018249d457e080f85966a31a8200644c5459f63cf02be1d85c04 -size 15222 diff --git a/types-setuptools-75.1.0.20241014.tar.gz b/types-setuptools-75.1.0.20241014.tar.gz deleted file mode 100644 index be3f2cc..0000000 --- a/types-setuptools-75.1.0.20241014.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:29b0560a8d4b4a91174be085847002c69abfcb048e20b33fc663005aedf56804 -size 42773 diff --git a/types_psutil-7.0.0.20250401.tar.gz b/types_psutil-7.0.0.20250401.tar.gz new file mode 100644 index 0000000..4a1c7b3 --- /dev/null +++ b/types_psutil-7.0.0.20250401.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a7d663c0888a079fc1643ebc109ad12e57a21c9552a9e2035da504191336dbf +size 20273 diff --git a/types_setuptools-78.1.0.20250329.tar.gz b/types_setuptools-78.1.0.20250329.tar.gz new file mode 100644 index 0000000..a08be4b --- /dev/null +++ b/types_setuptools-78.1.0.20250329.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31e62950c38b8cc1c5114b077504e36426860a064287cac11b9666ab3a483234 +size 43942