Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
7f5074c0c0
!18 Update package to version 4.9.0
From: @jxy_git 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2023-12-08 09:13:14 +00:00
jxy_git
3b38ed0b3b Update package to version 4.9.0 2023-12-08 15:24:12 +08:00
openeuler-ci-bot
fe8ad3d9c5
!17 update to version 4.6.0
From: @wang--ge 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-04-25 11:29:14 +00:00
wang--ge
8fb1b5e259 update to version 4.6.0 2023-04-25 15:59:30 +08:00
openeuler-ci-bot
9c58369398
!10 Update package
From: @liqiuyu123 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-11-10 09:39:14 +00:00
liqiuyu123
0f5c6e2fd7 update package 2022-11-10 14:06:47 +08:00
openeuler-ci-bot
7882c40510
!9 Generate pythonX.Ydist(CANONICAL_NAME) tag
From: @liqiuyu123 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-08-02 08:59:41 +00:00
liqiuyu123
66d96e0e2e Generate pythonX.Ydist(CANONICAL_NAME) tag 2022-08-02 16:17:10 +08:00
openeuler-ci-bot
62bd2dcad2
!8 Package upgrade
From: @houyingchao 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
2022-06-17 06:41:03 +00:00
houyingchao
c4350a8cc1 Package upgrade 2022-06-17 11:19:30 +08:00
4 changed files with 55 additions and 33 deletions

Binary file not shown.

BIN
humanize-4.9.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,42 +1,51 @@
%global _empty_manifest_terminate_build 0
Name: python-humanize
Version: 0.5.1
Release: 18
Summary: python humanize module
Version: 4.9.0
Release: 1
Summary: Python humanize utilities
License: MIT
URL: https://github.com/jmoiron/humanize
Source0: https://pypi.python.org/packages/source/h/humanize/humanize-%{version}.tar.gz
URL: https://github.com/python-humanize/humanize
Source0: https://files.pythonhosted.org/packages/76/21/7a0b24fae849562397efd79da58e62437243ae0fd0f6c09c6bc26225b75c/humanize-4.9.0.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools python3-tools
Requires: python3-importlib-metadata
%description
Python module that includes various common humanization utilities.
%package -n python3-humanize
Summary: python3 humanize module
%{?python_provide:%python_provide python3-humanize}
Summary: Python humanize utilities
Provides: python-humanize = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-freezegun
BuildRequires: python3-pytest
BuildRequires: python3-pytest-cov
BuildRequires: python3-pip
BuildRequires: python3-hatchling
BuildRequires: python3-hatch-vcs
BuildRequires: python3-wheel
%description -n python3-humanize
Python3 module that includes various common humanization utilities.
Python module that includes various common humanization utilities.
%package help
Summary: Development documents and examples for humanize
Provides: python3-humanize-doc
%description help
Python module that includes various common humanization utilities.
%prep
%autosetup -p1 -n humanize-%{version}
for lib in humanize/time.py humanize/filesize.py humanize/number.py; do
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
touch -r $lib $lib.new && mv $lib.new $lib
done
rm -rf %{py3dir}
cp -a . %{py3dir}
%setup -n humanize-%{version}
%build
pushd %{py3dir}
LANG=en_US.UTF-8 /usr/bin/python3 setup.py build
popd
%pyproject_build
%install
pushd %{py3dir}
LANG=en_US.UTF-8 /usr/bin/python3 setup.py install --skip-build --root %{buildroot}
%find_lang humanize
popd
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
%check
%if %{?_with_check:1}%{!?_with_check:0}
@ -45,15 +54,28 @@ LANG=en_US.UTF-8 /usr/bin/python3 setup.py test
popd
%endif
%files -n python3-humanize -f %{py3dir}/humanize.lang
%doc README.rst LICENCE
%dir %{python3_sitelib}/humanize
%{python3_sitelib}/humanize/*.py
%{python3_sitelib}/humanize/__pycache__
%{python3_sitelib}/humanize-%{version}-py%{python3_version}.egg-info
%exclude %{_usr}/lib/python*/site-packages/humanize/locale/*/LC_MESSAGES/*.po
%files -n python3-humanize
%{python3_sitelib}/*
%files help
%{_docdir}/*
%changelog
* Fri Dec 08 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 4.9.0-1
- Update package to version 4.9.0
* Mon Apr 24 2023 Ge Wang <wang__ge@126.com> - 4.6.0-1
- Update to version 4.6.0
* Mon Oct 24 2022 liqiuyu <liqiuyu@kylinos.cn> - 4.4.0-1
- Upgrade to version 4.4.0
* Tue Aug 02 2022 liqiuyu <liqiuyu@kylinos.cn> - 4.1.0-2
- Generate pythonX.Ydist(CANONICAL_NAME) tag
* Fri Jun 17 2022 houyingchao <houyingchao@h-partners.com> - 4.1.0-1
- Upgrade to version 4.1.0
* Mon Sep 27 2021 caodongxia <caodongxia@huawei.com> - 0.5.1-18
- Provides python-humanize

View File

@ -1,4 +1,4 @@
version_control: github
src_repo: jmoiron/humanize
src_repo: python-humanize/humanize
tag_prefix: ^
seperator: .
separator: .