- update to 2.4.0:
* Drop official support for Python version 3.5 and 3.6, which
have reached end-of-life.
* Remove pytz dependency (#49)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-convertdate?expand=0&rev=17
This commit is contained in:
@@ -19,23 +19,25 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-convertdate
|
||||
Version: 2.3.2
|
||||
Version: 2.4.0
|
||||
Release: 0
|
||||
Summary: Module for date conversions from and to Gregorian calendar
|
||||
License: MIT
|
||||
URL: https://github.com/fitnr/convertdate
|
||||
Source: https://github.com/fitnr/convertdate/archive/v%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyMeeus >= 0.3.6
|
||||
Requires: python-pytz >= 2014.10
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyMeeus >= 0.3.6}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytz >= 2014.10}
|
||||
# /SECTION
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -49,20 +51,29 @@ sed -i -e 's:, < 2020::g' setup.py
|
||||
|
||||
%build
|
||||
export LC_ALL="en_US.UTF8"
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
export LC_ALL="en_US.UTF8"
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/censusgeocode
|
||||
|
||||
%check
|
||||
export LC_ALL="en_US.UTF8"
|
||||
%pytest
|
||||
%pytest %{?jobs:-n %jobs}
|
||||
|
||||
%post
|
||||
%python_install_alternative censusgeocode
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative censusgeocode
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/censusgeocode
|
||||
%{python_sitelib}/convertdate
|
||||
%{python_sitelib}/convertdate-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user