forked from pool/python-mypy
- Clean up SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=9
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 22 13:48:55 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Clean up SPEC file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 18 14:33:02 UTC 2024 - Dan Čermák <dcermak@suse.com>
|
||||
|
||||
|
||||
@@ -35,13 +35,15 @@ Source2: https://files.pythonhosted.org/packages/source/t/types-psutil/ty
|
||||
# License Source3: Apache-2.0. Only for the test suite, not packaged here.
|
||||
Source3: 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}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module tomli >= 1.1.0}
|
||||
BuildRequires: %{python_module typed-ast >= 1.4.0 if %python-base < 3.8}
|
||||
BuildRequires: %{python_module typing_extensions >= 4.1.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: %{python_module exceptiongroup}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-mypy_extensions >= 0.4.3
|
||||
@@ -49,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}
|
||||
@@ -104,7 +106,7 @@ mv types-psutil-%{types_psutil_version}/psutil-stubs* mystubs/
|
||||
rm docs/make.bat
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
# building docs fails due to missing theme 'furo'
|
||||
#pushd docs
|
||||
#%%make_build html
|
||||
@@ -112,7 +114,7 @@ rm docs/make.bat
|
||||
#popd
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/dmypy
|
||||
%python_clone -a %{buildroot}%{_bindir}/mypy
|
||||
%python_clone -a %{buildroot}%{_bindir}/mypyc
|
||||
|
||||
Reference in New Issue
Block a user