Compare commits

1 Commits
main ... 1.1

6 changed files with 1303 additions and 53 deletions

View File

@@ -1,31 +1,3 @@
-------------------------------------------------------------------
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>

1259
python-pytz.keyring Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytz
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,29 +18,42 @@
# Ensure you update the tzdata_version for any minor version increase
# otherwise the update python library has the incorrect timezone data.
%define tzdata_version 2024a
%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 .. "}"))
} }
%{?sle15_python_module_pythons}
Name: python-pytz
Version: 2024.1
Version: 2023.3
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
@@ -64,10 +77,10 @@ sed -i '/^#!/d' ./pytz/tzfile.py
touch pytz/tests/__init__.py
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_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
@@ -86,6 +99,6 @@ fi || :
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/pytz
%{python_sitelib}/pytz-%{version}*-info
%{python_sitelib}/pytz-%{version}-py*.egg-info
%changelog

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

Binary file not shown.

6
pytz-2023.3.tar.gz.asc Normal file
View File

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

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

Binary file not shown.