Accepting request 998793 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/998793 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-immutables?expand=0&rev=10
This commit is contained in:
commit
cc1764a544
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 22 22:16:34 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
Tue Jul 19 12:26:30 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -25,12 +25,15 @@ Summary: Immutable collections for Python
|
|||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/MagicStack/immutables
|
URL: https://github.com/MagicStack/immutables
|
||||||
Source: https://files.pythonhosted.org/packages/source/i/immutables/immutables-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/i/immutables/immutables-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel >= 3.6}
|
||||||
BuildRequires: %{python_module mypy >= 0.942}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module typing-extensions >= 3.7.4.3 if %python-base < 3.8}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %python_version_nodots < 38
|
||||||
|
Requires: python-typing-extensions >= 3.7.4.3
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -39,8 +42,6 @@ Immutable collections for Python.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n immutables-%{version}
|
%autosetup -p1 -n immutables-%{version}
|
||||||
|
|
||||||
sed -i 's/\.system//' setup.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%python_build
|
%python_build
|
||||||
@ -52,11 +53,13 @@ export CFLAGS="%{optflags}"
|
|||||||
}
|
}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
export IMMU_SKIP_MYPY_TESTS=1
|
||||||
%pyunittest discover -v
|
%pyunittest discover -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/immutables
|
||||||
|
%{python_sitearch}/immutables-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user