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>
|
||||
|
||||
|
@ -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
|
||||
|
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