commit 3131d75ffe562b7a9d892012dbeb27a1ed5f5640
Author: Jakub Bogusz <[email protected]>
Date:   Sun Mar 10 19:26:29 2024 +0100

    - updated to 4.9.0

 python3-humanize.spec | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)
---
diff --git a/python3-humanize.spec b/python3-humanize.spec
index bd99ff3..2a0b638 100644
--- a/python3-humanize.spec
+++ b/python3-humanize.spec
@@ -5,24 +5,23 @@
 Summary:       Python 3 humanize utilities
 Summary(pl.UTF-8):     Narzędzia Pythona 3 humanize
 Name:          python3-humanize
-Version:       2.0.0
-Release:       4
+Version:       4.9.0
+Release:       1
 License:       MIT
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/humanize/
 Source0:       
https://files.pythonhosted.org/packages/source/h/humanize/humanize-%{version}.tar.gz
-# Source0-md5: 65b289c0ec1a76a1d572aebc7cfed96f
+# Source0-md5: c208071b4c7d38991e9e01730057b7bb
 URL:           https://pypi.org/project/humanize/
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools
-BuildRequires: python3-setuptools_scm
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools >= 1:61
 %if %{with tests}
 BuildRequires: python3-freezegun
 BuildRequires: python3-pytest
 %endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
-Requires:      python3-modules >= 1:3.5
+Requires:      python3-modules >= 1:3.8
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,10 +39,24 @@ czy przepustowość.
 %prep
 %setup -q -n humanize-%{version}
 
+cat >setup.py <<EOF
+from setuptools import setup
+setup()
+EOF
+
+# set static version instead of hatchling-handled dynamic
+%{__sed} -i -e '/^name/ a\
+version = "%{version}"
+' -e '/^dynamic = /,/^]/ s/"version",//' pyproject.toml
+
+# post-2038 dates fail on hosts with 32-bit time_t
+%{__sed} -i -e '/days=10000/d' tests/test_time.py
+
 %build
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd)/src \
 %{__python3} -m pytest tests
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-humanize.git/commitdiff/3131d75ffe562b7a9d892012dbeb27a1ed5f5640

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to