14
0

Accepting request 1089984 from home:bnavigator:branches:devel:languages:python

- Move to PEP517
- Do not use pytzdata, but system timezone directly
- Don't catchall sitearch

OBS-URL: https://build.opensuse.org/request/show/1089984
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-time-machine?expand=0&rev=23
This commit is contained in:
2023-05-31 09:54:55 +00:00
committed by Git OBS Bridge
parent 483cd0f0d1
commit fe7442ddb0
2 changed files with 19 additions and 8 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 31 09:26:06 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Move to PEP517
- Do not use pytzdata, but system timezone directly
- Don't catchall sitearch
------------------------------------------------------------------- -------------------------------------------------------------------
Sat May 27 19:44:39 UTC 2023 - Dirk Müller <dmueller@suse.com> Sat May 27 19:44:39 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -16,7 +16,6 @@
# #
%define skip_python2 1
Name: python-time-machine Name: python-time-machine
Group: Development/Languages/Python Group: Development/Languages/Python
Version: 2.9.0 Version: 2.9.0
@@ -27,17 +26,20 @@ URL: https://github.com/adamchainz/time-machine
# pypi packages don't contain the tests anymore since 2.2.0, see changelog # pypi packages don't contain the tests anymore since 2.2.0, see changelog
Source: https://github.com/adamchainz/time-machine/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source: https://github.com/adamchainz/time-machine/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION tests # SECTION tests
BuildRequires: %{python_module backports.zoneinfo if %python-base < 3.9}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module dateutil} BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytzdata} BuildRequires: timezone
BuildRequires: (python38-backports.zoneinfo if python38-base)
# /SECTION # /SECTION
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-generators BuildRequires: python-rpm-generators
%{?python_enable_dependency_generator} Requires: python-python-dateutil
Requires: timezone
%python_subpackages %python_subpackages
%description %description
@@ -48,10 +50,10 @@ It can be used independently, as a function decorator, or as a context manager.
%setup -q -n time-machine-%{version} %setup -q -n time-machine-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -60,6 +62,8 @@ It can be used independently, as a function decorator, or as a context manager.
%files %{python_files} %files %{python_files}
%doc README.rst HISTORY.rst %doc README.rst HISTORY.rst
%license LICENSE %license LICENSE
%{python_sitearch}/* %{python_sitearch}/time_machine
%{python_sitearch}/_time_machine.*.so
%{python_sitearch}/time_machine-%{version}.dist-info
%changelog %changelog