- 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:
Dirk Mueller 2023-05-04 19:06:28 +00:00 committed by Git OBS Bridge
parent 2797c108ed
commit 0012ae0a74
4 changed files with 30 additions and 11 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu May 4 18:59:03 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:23:42 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:23:42 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -19,23 +19,25 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-convertdate Name: python-convertdate
Version: 2.3.2 Version: 2.4.0
Release: 0 Release: 0
Summary: Module for date conversions from and to Gregorian calendar Summary: Module for date conversions from and to Gregorian calendar
License: MIT License: MIT
URL: https://github.com/fitnr/convertdate URL: https://github.com/fitnr/convertdate
Source: https://github.com/fitnr/convertdate/archive/v%{version}.tar.gz 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: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-PyMeeus >= 0.3.6 Requires: python-PyMeeus >= 0.3.6
Requires: python-pytz >= 2014.10
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module PyMeeus >= 0.3.6} BuildRequires: %{python_module PyMeeus >= 0.3.6}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz >= 2014.10}
# /SECTION # /SECTION
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages %python_subpackages
%description %description
@ -49,20 +51,29 @@ sed -i -e 's:, < 2020::g' setup.py
%build %build
export LC_ALL="en_US.UTF8" export LC_ALL="en_US.UTF8"
%python_build %pyproject_wheel
%install %install
export LC_ALL="en_US.UTF8" export LC_ALL="en_US.UTF8"
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/censusgeocode
%check %check
export LC_ALL="en_US.UTF8" export LC_ALL="en_US.UTF8"
%pytest %pytest %{?jobs:-n %jobs}
%post
%python_install_alternative censusgeocode
%postun
%python_uninstall_alternative censusgeocode
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{python_sitelib}/* %python_alternative %{_bindir}/censusgeocode
%{python_sitelib}/convertdate
%{python_sitelib}/convertdate-%{version}.dist-info
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec0757193a5263647ae8ecb26ca1cd7c0f9da9f81a287cfd515ab176e62ebe86
size 52155

BIN
v2.4.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.