Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytzdata for openSUSE:Factory checked in at 2023-06-03 00:06:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytzdata (Old) and /work/SRC/openSUSE:Factory/.python-pytzdata.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytzdata" Sat Jun 3 00:06:20 2023 rev:4 rq:1089980 version:2020.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytzdata/python-pytzdata.changes 2023-05-10 16:19:16.247239587 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytzdata.new.15902/python-pytzdata.changes 2023-06-03 00:06:28.641724521 +0200 @@ -1,0 +2,10 @@ +Wed May 31 08:51:45 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Bring this Ring1 package to python packaging standards + * Switch to github tarball in order to run the tests + * Don't catchall sitelib + * Replace deprecated setup.py with PEP517 + (poetry-core is enough to build) + * Pure python module: BuildArch is noarch + +------------------------------------------------------------------- Old: ---- pytzdata-2020.1.tar.gz New: ---- pytzdata-2020.1-gh.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytzdata.spec ++++++ --- /var/tmp/diff_new_pack.44RyKU/_old 2023-06-03 00:06:29.205727851 +0200 +++ /var/tmp/diff_new_pack.44RyKU/_new 2023-06-03 00:06:29.209727875 +0200 @@ -1,5 +1,5 @@ # -# spec file +# spec file for package python-pytzdata # # Copyright (c) 2023 SUSE LLC # Copyright (c) 2020 Dr. Axel Braun @@ -18,41 +18,48 @@ %{?sle15_python_module_pythons} -%define modname pytzdata -Name: python-%{modname} +Name: python-pytzdata Version: 2020.1 Release: 0 Summary: The pytzdata module for Python-pendulum License: MIT URL: https://github.com/sdispater/pytzdata -Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +Source: https://github.com/sdispater/pytzdata/archive/refs/tags/%{version}.tar.gz#/pytzdata-%{version}-gh.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module pytest} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: timezone Requires: timezone +BuildArch: noarch %python_subpackages %description The Olson timezone database for Python. This version is linked to the systemwide zone info %prep -%setup -q -n %{modname}-%{version} +%setup -q -n pytzdata-%{version} +sed -i 's/poetry.masonry/poetry.core.masonry/' pyproject.toml %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install # delete internal database %{python_expand rm -r %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo ln -s /usr/share/zoneinfo %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo %fdupes %{buildroot}%{$python_sitelib} } +%check +%pytest + %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pytzdata +%{python_sitelib}/pytzdata-%{version}.dist-info %changelog