diff --git a/python-pytzdata.changes b/python-pytzdata.changes index 762a581..9debacd 100644 --- a/python-pytzdata.changes +++ b/python-pytzdata.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed May 31 08:51:45 UTC 2023 - Ben Greiner + +- 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 + ------------------------------------------------------------------- Mon May 8 04:54:25 UTC 2023 - Johannes Kastl diff --git a/python-pytzdata.spec b/python-pytzdata.spec index 6c7fd99..e779037 100644 --- a/python-pytzdata.spec +++ b/python-pytzdata.spec @@ -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 diff --git a/pytzdata-2020.1-gh.tar.gz b/pytzdata-2020.1-gh.tar.gz new file mode 100644 index 0000000..f77fd90 --- /dev/null +++ b/pytzdata-2020.1-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffec92eb79bb2155862c9c3b80efb12a052182c197098501ec986d5ea1d178df +size 249045 diff --git a/pytzdata-2020.1.tar.gz b/pytzdata-2020.1.tar.gz deleted file mode 100644 index ef33231..0000000 --- a/pytzdata-2020.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3efa13b335a00a8de1d345ae41ec78dd11c9f8807f522d39850f2dd828681540 -size 281719