diff --git a/.gitignore b/.gitignore index 4a2bf2b..0dc3e7c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /humanize-0.5.1.tar.gz /0.5.1.tar.gz /3.13.1.tar.gz +/humanize-3.13.1.tar.gz diff --git a/python-humanize.spec b/python-humanize.spec index 75dfd59..25091f9 100644 --- a/python-humanize.spec +++ b/python-humanize.spec @@ -2,22 +2,27 @@ Name: python-humanize Version: 3.13.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Turns dates in to human readable format, e.g '3 minutes ago' License: MIT URL: https://github.com/jmoiron/humanize -Source0: %{url}/archive/%{version}.tar.gz +Source0: %{pypi_source humanize} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3dist(setuptools-scm[toml]) -%if %{with check} + +%%if %{with check} BuildRequires: python3-pytest BuildRequires: python3-freezegun %endif +%generate_buildrequires +%pyproject_buildrequires -t + + %global _description\ This modest package contains various common humanization utilities, like turning\ @@ -44,27 +49,40 @@ for lib in src/humanize/time.py src/humanize/filesize.py src/humanize/number.py; touch -r $lib $lib.new && mv $lib.new $lib done - - %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install + +%find_lang humanize %if %{with check} %check -%{__python3} setup.py test +%tox %endif -%files -n python3-humanize +%files -n python3-humanize -f humanize.lang %dir %{python3_sitelib}/humanize %{python3_sitelib}/humanize/*.py %{python3_sitelib}/humanize/__pycache__ -%{python3_sitelib}/humanize-0.0.0-py%{python3_version}.egg-info -%license LICENCE +%{python3_sitelib}/humanize-%{version}.dist-info/INSTALLER +%{python3_sitelib}/humanize-%{version}.dist-info/LICENCE +%{python3_sitelib}/humanize-%{version}.dist-info/METADATA +%{python3_sitelib}/humanize-%{version}.dist-info/WHEEL +%{python3_sitelib}/humanize-%{version}.dist-info/top_level.txt +%license %{python3_sitelib}/humanize-%{version}.dist-info/LICENCE + +%dir %{python3_sitelib}/humanize/locale +%dir %{python3_sitelib}/humanize/locale/* +%dir %{python3_sitelib}/humanize/locale/*/LC_MESSAGES +%{python3_sitelib}/humanize/locale/*/LC_MESSAGES/*.mo +%exclude %{python3_sitelib}/humanize/locale/*/LC_MESSAGES/*.po %changelog +* Mon Jan 31 2022 Steve Traylen - 3.13.1-2 +- Switch to pypi source, toml and tox rhbz#2048090 + * Fri Jan 28 2022 Steve Traylen - 3.13.1-1 - Update to 3.13.1 diff --git a/sources b/sources index 94b8638..d120dcc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (3.13.1.tar.gz) = eef66fa077cd3fb102fe19fe41593023919f5db6f8842196f95e5e18588afd629dc397e10d48f48ffaa01bfe028d37b7a26fa94662a43a65f2303894e246138e +SHA512 (humanize-3.13.1.tar.gz) = f2d510347f05f953bb6f67811a7fd062f721c76892388d43ea0f19f826e75853c6f7b6cddcd986c06414dc8a3c8b3c88bee16a61fa23baa24d951ba275114de2