!8 Upgrade to latest release [python-tzlocal -> 5.2]

From: @Wangjunqi123 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2024-02-27 09:57:17 +00:00 committed by Gitee
commit a577c331f2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 16 additions and 7 deletions

View File

@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-tzlocal Name: python-tzlocal
Version: 5.0.1 Version: 5.2
Release: 1 Release: 1
Summary: tzinfo object for the local timezone Summary: tzinfo object for the local timezone
License: MIT License: MIT
URL: https://github.com/regebro/tzlocal URL: https://github.com/regebro/tzlocal
Source0: https://files.pythonhosted.org/packages/ee/f5/3e644f08771b242f7460438cdc0aaad4d1484c1f060f1e52f4738d342983/tzlocal-5.0.1.tar.gz Source0: https://files.pythonhosted.org/packages/04/d3/c19d65ae67636fe63953b20c2e4a8ced4497ea232c43ff8d01db16de8dc0/tzlocal-5.2.tar.gz
BuildArch: noarch BuildArch: noarch
Requires: python3-pytz Requires: python3-pytz
@ -29,6 +29,8 @@ Summary: tzinfo object for the local timezone
Provides: python-tzlocal Provides: python-tzlocal
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
%description -n python3-tzlocal %description -n python3-tzlocal
This Python module returns a ``tzinfo`` object with the local timezone information under Unix and Win-32. This Python module returns a ``tzinfo`` object with the local timezone information under Unix and Win-32.
It requires ``pytz``, and returns ``pytz`` ``tzinfo`` objects. It requires ``pytz``, and returns ``pytz`` ``tzinfo`` objects.
@ -64,10 +66,10 @@ will be used.
%autosetup -n tzlocal-%{version} %autosetup -n tzlocal-%{version}
%build %build
%py3_build %pyproject_build
%install %install
%py3_install %pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir} install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
@ -94,13 +96,20 @@ popd
mv %{buildroot}/filelist.lst . mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst . mv %{buildroot}/doclist.lst .
%files -n python3-tzlocal -f filelist.lst %files -n python3-tzlocal
%dir %{python3_sitelib}/* %{python3_sitelib}/*
%files help -f doclist.lst %files help
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Mon Feb 26 2024 wangjunqi <wangjunqi@kylinos.cn> - 5.2-1
- Update package to version 5.2
Added a pre-commit config
Updated python versions [hugovk]
Added type hints for the public functions
Moved to using pyproject.toml for project config.
* Wed Jul 05 2023 chenzixuan <chenzixuan@kylinos.cn> - 5.0.1-1 * Wed Jul 05 2023 chenzixuan <chenzixuan@kylinos.cn> - 5.0.1-1
- Update to version 4.3 - Update to version 4.3

Binary file not shown.

BIN
tzlocal-5.2.tar.gz Normal file

Binary file not shown.