Sync from SUSE:SLFO:Main python-pytz revision 28a183672b003b655fc274463819ddeb

This commit is contained in:
Adrian Schröter 2024-11-25 20:49:18 +01:00
parent 7bba037ca9
commit 13036014a4
6 changed files with 53 additions and 1303 deletions

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
Fri May 31 21:53:27 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up SPEC file.
-------------------------------------------------------------------
Fri May 31 11:52:05 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- update to 2024.1:
* Update olson to 2024a
-------------------------------------------------------------------
Thu Feb 1 12:33:50 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2023.4:
* Update olson to 2023d
-------------------------------------------------------------------
Tue Oct 17 11:19:21 UTC 2023 - Markéta Calábková <meggy.calabkova@gmail.com>
- Update to 2023.3.post1
* Replace deprecated datetime.utcfromtimestamp()
* Resurrect Python 2.7 tests
* Add support for Python 3.12
- Drop pytz-%{version}.tar.gz.asc and python-pytz.keyring
* PyPI hides the .asc files and wants to drop the support
* related: https://github.com/certbot/certbot/issues/9707
-------------------------------------------------------------------
Fri Apr 21 12:32:23 UTC 2023 - Dirk Müller <dmueller@suse.com>

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytz
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,42 +18,29 @@
# Ensure you update the tzdata_version for any minor version increase
# otherwise the update python library has the incorrect timezone data.
%define tzdata_version 2023c
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!pyunittest:%define pyunittest(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-=) \\\
%{lua: local args = rpm.expand("%**");
local broot = rpm.expand("%buildroot");
local intro = "%{python_expand PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}" .. broot .. "%{$python_sitelib} PYTHONDONTWRITEBYTECODE=1 $python -m unittest ";
print(rpm.expand(intro .. args .. "}"))
} }
%define tzdata_version 2024a
%{?sle15_python_module_pythons}
Name: python-pytz
Version: 2023.3
Version: 2024.1
Release: 0
Summary: World timezone definitions, modern and historical
License: MIT
Group: Development/Languages/Python
URL: https://pythonhosted.org/pytz/
Source: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{version}.tar.gz
Source2: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{version}.tar.gz.asc
Source90: %{name}.keyring
# PATCH-FIX-UPSTREAM fix-tests.patch -- Remote tests which are known to be broken
Patch0: fix-tests.patch
# PATCH-FIX-UPSTREAM 0001-Fix-tests-for-older-timezone-versions.patch -- https://code.launchpad.net/~toabctl/pytz/+git/pytz/+merge/326419
Patch2: 0001-Fix-tests-for-older-timezone-versions.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: timezone >= %{tzdata_version}
Requires: python-base
Requires: timezone >= %{tzdata_version}
BuildArch: noarch
%ifpython2
Provides: %{oldpython}-tz = %{version}
Obsoletes: %{oldpython}-tz < %{version}
%endif
%python_subpackages
%description
@ -77,10 +64,10 @@ sed -i '/^#!/d' ./pytz/tzfile.py
touch pytz/tests/__init__.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
# Replace custom data with symlink to /usr/share/zoneinfo
%{python_expand rm -r %{buildroot}%{$python_sitelib}/pytz/zoneinfo
ln -s %{_datadir}/zoneinfo %{buildroot}%{$python_sitelib}/pytz/zoneinfo
@ -99,6 +86,6 @@ fi || :
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/pytz
%{python_sitelib}/pytz-%{version}-py*.egg-info
%{python_sitelib}/pytz-%{version}*-info
%changelog

BIN
pytz-2023.3.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -1,6 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQTH7MNlq28lXh65uhcB+pmPusY3SgUCZCO9OQAKCRAB+pmPusY3
SuqGAJ96Q/JnCSMkbB53e6ba2FC3ssLxNQCgmxQu20qp1Cuq39KWKupVMzYmR9I=
=UBDl
-----END PGP SIGNATURE-----

BIN
pytz-2024.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.