Accepting request 999484 from home:bnavigator:branches:devel:languages:python
Restoring the build for Py 3.6 - Remove deprecated setup.py hack: move to PEP517 build - Fix requirements * Neither jaraco.itertools nor jaraco.tidelift are used outside testing or documentation building - Ignore that upstream requires Python 3.7 or later since version 3.7.0 OBS-URL: https://build.opensuse.org/request/show/999484 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zipp?expand=0&rev=31
This commit is contained in:
parent
be08e56240
commit
cd54ae9e07
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 26 21:07:51 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Remove deprecated setup.py hack: move to PEP517 build
|
||||
- Fix requirements
|
||||
* Neither jaraco.itertools nor jaraco.tidelift are used outside
|
||||
testing or documentation building
|
||||
- Ignore that upstream requires Python 3.7 or later since version
|
||||
3.7.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 23 20:33:38 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -16,9 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
@ -35,18 +33,18 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/jaraco/zipp
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zipp/zipp-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module toml}
|
||||
BuildRequires: %{python_module base >= 3.6}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools >= 56}
|
||||
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-jaraco.tidelift >= 1.4
|
||||
Requires: python-more-itertools
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module jaraco.itertools}
|
||||
BuildRequires: %{python_module more-itertools}
|
||||
BuildRequires: %{python_module pytest >= 3.5}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
@ -55,16 +53,17 @@ A pathlib-compatible Zipfile object wrapper.
|
||||
|
||||
%prep
|
||||
%setup -q -n zipp-%{version}
|
||||
echo "import setuptools; setuptools.setup()" > setup.py
|
||||
# we don't need the extensions for smoke testing
|
||||
rm -f pytest.ini
|
||||
sed -i '/addopts/ s/--doctest-modules//' pytest.ini
|
||||
# People still want this for 15.X despite Python 3.6 is not supported upstream anymore
|
||||
sed -i 's/python_requires = >=3.7/python_requires = >=3.6/' setup.cfg
|
||||
rm -r zipp.egg-info
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
@ -81,7 +80,9 @@ sed -i -e 's:import func_timeout::' \
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/zipp.py*
|
||||
%pycache_only %{python_sitelib}/__pycache__/zipp*.pyc
|
||||
%{python_sitelib}/zipp-%{version}*-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user