From be08e562404763eeb9abc6733784512afd1fda8416a77ee720888dce5a852ffa Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 23 Aug 2022 20:36:29 +0000 Subject: [PATCH 1/2] - update to 3.8.1: * enrolled in tidelift OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zipp?expand=0&rev=30 --- python-zipp.changes | 6 ++++++ python-zipp.spec | 3 ++- zipp-3.8.0.tar.gz | 3 --- zipp-3.8.1.tar.gz | 3 +++ 4 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 zipp-3.8.0.tar.gz create mode 100644 zipp-3.8.1.tar.gz diff --git a/python-zipp.changes b/python-zipp.changes index aaf567c..f1d10f2 100644 --- a/python-zipp.changes +++ b/python-zipp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 23 20:33:38 UTC 2022 - Dirk Müller + +- update to 3.8.1: + * enrolled in tidelift + ------------------------------------------------------------------- Sun May 29 19:02:36 UTC 2022 - Dirk Müller diff --git a/python-zipp.spec b/python-zipp.spec index 5487257..29aa715 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -28,7 +28,7 @@ %bcond_with test %endif Name: python-zipp%{psuffix} -Version: 3.8.0 +Version: 3.8.1 Release: 0 Summary: Pathlib-compatible object wrapper for zip files License: MIT @@ -40,6 +40,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module toml} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-jaraco.tidelift >= 1.4 Requires: python-more-itertools BuildArch: noarch %if %{with test} diff --git a/zipp-3.8.0.tar.gz b/zipp-3.8.0.tar.gz deleted file mode 100644 index 743b951..0000000 --- a/zipp-3.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56bf8aadb83c24db6c4b577e13de374ccfb67da2078beba1d037c17980bf43ad -size 13344 diff --git a/zipp-3.8.1.tar.gz b/zipp-3.8.1.tar.gz new file mode 100644 index 0000000..2caad81 --- /dev/null +++ b/zipp-3.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05b45f1ee8f807d0cc928485ca40a07cb491cf092ff587c0df9cb1fd154848d2 +size 14189 From cd54ae9e074571c2d5a1e14bc811abe604e266c7a96401614b4d9c457b6ca6b7 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 29 Aug 2022 04:59:34 +0000 Subject: [PATCH 2/2] 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 --- python-zipp.changes | 10 ++++++++++ python-zipp.spec | 29 +++++++++++++++-------------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/python-zipp.changes b/python-zipp.changes index f1d10f2..8fc9493 100644 --- a/python-zipp.changes +++ b/python-zipp.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Aug 26 21:07:51 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-zipp.spec b/python-zipp.spec index 29aa715..46bb414 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -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