forked from pool/python-pytz-deprecation-shim
Accepting request 984261 from home:bnavigator:branches:devel:languages:python
- Remove tzdata from the dist metadata, as we neither have nor need it. - Follow the rest of the metadata, assuming Py >= 3.6 in order to avoid import errors on consuming libs. OBS-URL: https://build.opensuse.org/request/show/984261 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz-deprecation-shim?expand=0&rev=6
This commit is contained in:
parent
dc69ac878a
commit
e59bca7e34
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 21 21:35:54 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Remove tzdata from the dist metadata, as we neither have nor need
|
||||||
|
it.
|
||||||
|
- Follow the rest of the metadata, assuming Py >= 3.6 in order to
|
||||||
|
avoid import errors on consuming libs.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 19 07:49:07 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Sun Jun 19 07:49:07 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
|
# Upstream also supports shimming python2.7, but we assume Python >= 3.6 here (if 15.3 were resolvable for the python3 flavor)
|
||||||
%global skip_python2 1
|
%global skip_python2 1
|
||||||
%define modname pytz-deprecation-shim
|
%define modname pytz-deprecation-shim
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
@ -37,6 +38,9 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if 0%{?python_version_nodots} < 39
|
||||||
|
Requires: python-backports.zoneinfo
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -58,6 +62,8 @@ pytz.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytz_deprecation_shim-%{version}
|
%setup -q -n pytz_deprecation_shim-%{version}
|
||||||
|
# assume that we have tzdata from the system and never need the PyPI package
|
||||||
|
sed -i '/tzdata/ d' setup.cfg
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
Loading…
Reference in New Issue
Block a user