public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-humanize] rawhide: Update to v4.17.0
@ 2026-11-14 18:51 Steve Traylen
0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-11-14 18:51 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-humanize
Branch : rawhide
Commit : 9a0ba38d21b351499051ab38679d2cd7388c4d21
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2026-11-14T19:50:46+01:00
Stats : +10/-5 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-humanize/c/9a0ba38d21b351499051ab38679d2cd7388c4d21?branch=rawhide
Log:
Update to v4.17.0
- Resolves: rhbz#2572615
---
diff --git a/.gitignore b/.gitignore
index 8e12b20..c4f06ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
/humanize-4.14.0.tar.gz
/humanize-4.15.0.tar.gz
/humanize-4.16.0.tar.gz
+/humanize-4.17.0.tar.gz
diff --git a/python-humanize.spec b/python-humanize.spec
index 036797d..5590f3b 100644
--- a/python-humanize.spec
+++ b/python-humanize.spec
@@ -1,7 +1,7 @@
%bcond_without check
Name: python-humanize
-Version: 4.16.0
+Version: 4.17.0
Release: %autorelease
Summary: Turns dates in to human readable format, e.g '3 minutes ago'
@@ -11,6 +11,7 @@ Source0: %{pypi_source humanize}
BuildArch: noarch
BuildRequires: python3-devel
+BuildRequires: babel
%global _description %{expand:
@@ -37,8 +38,8 @@ for lib in src/humanize/filesize.py; do
touch -r $lib $lib.new && mv $lib.new $lib
done
-# Remove .po files
-find -name '*.po' -delete
+# Remove prebuilt translations, regenerated in %%build
+find -name '*.mo' -delete
%pyproject_patch_dependency pytest-codspeed:ignore
%pyproject_patch_dependency pytest-cov:ignore
@@ -52,6 +53,9 @@ sed -Ei 's/ ?--cov(-[^ ]+)? +[^ ]+//g' tox.ini
%build
+pybabel --quiet compile --directory src/humanize/locale --domain humanize
+# Ship only the compiled catalogs
+find -name '*.po' -delete
%pyproject_wheel
@@ -62,7 +66,7 @@ sed -Ei 's/ ?--cov(-[^ ]+)? +[^ ]+//g' tox.ini
%if %{with check}
%check
-%tox
+%pytest
%endif
diff --git a/sources b/sources
index 0a1985e..c8deb81 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (humanize-4.16.0.tar.gz) = ec5588287d7d5547b7fdf44234f4e52b6726a867dfd9f223e942fdb57b37b7a5e7fc44583a6cfd51f8209732f676d2b20e870e2e3b9a772c786c9cbda7fd5adc
+SHA512 (humanize-4.17.0.tar.gz) = 60f2ff47ed40ec549eb5f2ead2ae313919c5a1fbdd21e289ed041034fed2ce827b4f049fa10501e6e1fb48199dec639f73eada117bd1ba1c8adfa1b2b0d64aea
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-14 18:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-14 18:51 [rpms/python-humanize] rawhide: Update to v4.17.0 Steve Traylen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox