From 0012ae0a74410a1c62edefce92c46898b9fa221c512045318db97f4f441e9b43 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 4 May 2023 19:06:28 +0000 Subject: [PATCH] - 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 --- python-convertdate.changes | 8 ++++++++ python-convertdate.spec | 27 +++++++++++++++++++-------- v2.3.2.tar.gz | 3 --- v2.4.0.tar.gz | 3 +++ 4 files changed, 30 insertions(+), 11 deletions(-) delete mode 100644 v2.3.2.tar.gz create mode 100644 v2.4.0.tar.gz diff --git a/python-convertdate.changes b/python-convertdate.changes index 325a5f8..de0e2e9 100644 --- a/python-convertdate.changes +++ b/python-convertdate.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu May 4 18:59:03 UTC 2023 - Dirk Müller + +- 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 diff --git a/python-convertdate.spec b/python-convertdate.spec index e8511f8..b4c1f7e 100644 --- a/python-convertdate.spec +++ b/python-convertdate.spec @@ -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 diff --git a/v2.3.2.tar.gz b/v2.3.2.tar.gz deleted file mode 100644 index c9589c9..0000000 --- a/v2.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec0757193a5263647ae8ecb26ca1cd7c0f9da9f81a287cfd515ab176e62ebe86 -size 52155 diff --git a/v2.4.0.tar.gz b/v2.4.0.tar.gz new file mode 100644 index 0000000..4337cf0 --- /dev/null +++ b/v2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b28d65ae1755463c47583113f5ff35d7738f64b05aa27fa2be320341ffbecb0a +size 52728