diff --git a/python-dfdatetime.changes b/python-dfdatetime.changes index 82c85c5..601c98f 100644 --- a/python-dfdatetime.changes +++ b/python-dfdatetime.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Dec 14 22:48:01 UTC 2022 - Ben Greiner + +- Implement some python packaging best practices +- Prevent failing builds for Python < 3.7 +- Remove pytest: python unittest is enough + ------------------------------------------------------------------- Thu Dec 1 17:50:20 UTC 2022 - Greg Freemyer diff --git a/python-dfdatetime.spec b/python-dfdatetime.spec index 27f8770..2dfaca2 100644 --- a/python-dfdatetime.spec +++ b/python-dfdatetime.spec @@ -16,9 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define timestamp 20220925 -%define skip_python2 1 %define modname dfdatetime Name: python-dfdatetime Version: 0~%{timestamp} @@ -28,7 +26,7 @@ License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/log2timeline/dfdatetime Source: https://github.com/log2timeline/%{modname}//releases/download/%{timestamp}/%{modname}-%{timestamp}.tar.gz -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -53,11 +51,12 @@ rm -rfv %{buildroot}%{_datadir}/doc/%{modname} %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest tests/*.py +%pyunittest -v tests/*.py %files %{python_files} %license LICENSE %doc ACKNOWLEDGEMENTS AUTHORS README -%{python_sitelib}/* +%{python_sitelib}/dfdatetime +%{python_sitelib}/dfdatetime-%{timestamp}*info %changelog