Accepting request 1089980 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1089980 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytzdata?expand=0&rev=4
This commit is contained in:
commit
1c8f88275e
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 31 08:51:45 UTC 2023 - Ben Greiner <code@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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 8 04:54:25 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
Mon May 8 04:54:25 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file for package python-pytzdata
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
# Copyright (c) 2020 Dr. Axel Braun
|
# Copyright (c) 2020 Dr. Axel Braun
|
||||||
@ -18,41 +18,48 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
%define modname pytzdata
|
Name: python-pytzdata
|
||||||
Name: python-%{modname}
|
|
||||||
Version: 2020.1
|
Version: 2020.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: The pytzdata module for Python-pendulum
|
Summary: The pytzdata module for Python-pendulum
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/sdispater/pytzdata
|
URL: https://github.com/sdispater/pytzdata
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
|
Source: https://github.com/sdispater/pytzdata/archive/refs/tags/%{version}.tar.gz#/pytzdata-%{version}-gh.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module poetry-core}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: timezone
|
BuildRequires: timezone
|
||||||
Requires: timezone
|
Requires: timezone
|
||||||
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Olson timezone database for Python. This version is linked to the systemwide zone info
|
The Olson timezone database for Python. This version is linked to the systemwide zone info
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n pytzdata-%{version}
|
||||||
|
sed -i 's/poetry.masonry/poetry.core.masonry/' pyproject.toml
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
# delete internal database
|
# delete internal database
|
||||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo
|
||||||
ln -s /usr/share/zoneinfo %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo
|
ln -s /usr/share/zoneinfo %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo
|
||||||
%fdupes %{buildroot}%{$python_sitelib}
|
%fdupes %{buildroot}%{$python_sitelib}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pytzdata
|
||||||
|
%{python_sitelib}/pytzdata-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
BIN
pytzdata-2020.1-gh.tar.gz
(Stored with Git LFS)
Normal file
BIN
pytzdata-2020.1-gh.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
pytzdata-2020.1.tar.gz
(Stored with Git LFS)
BIN
pytzdata-2020.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue
Block a user