update to version 4.6.0
This commit is contained in:
parent
9c58369398
commit
8fb1b5e259
@ -1,23 +0,0 @@
|
|||||||
From 808e6eea0818aabca60c8093c914f711686830bc Mon Sep 17 00:00:00 2001
|
|
||||||
From: liqiuyu123 <liqiuyu@kylinos.cn>
|
|
||||||
Date: Wed, 9 Nov 2022 17:38:08 +0800
|
|
||||||
Subject: [PATCH] add version to setup.cfg
|
|
||||||
|
|
||||||
---
|
|
||||||
setup.cfg | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/setup.cfg b/setup.cfg
|
|
||||||
index 54cbbc6..bed650f 100644
|
|
||||||
--- a/setup.cfg
|
|
||||||
+++ b/setup.cfg
|
|
||||||
@@ -1,5 +1,6 @@
|
|
||||||
[metadata]
|
|
||||||
name = humanize
|
|
||||||
+version = 4.4.0
|
|
||||||
description = Python humanize utilities
|
|
||||||
long_description = file: README.md
|
|
||||||
long_description_content_type = text/markdown
|
|
||||||
--
|
|
||||||
2.37.1.windows.1
|
|
||||||
|
|
||||||
Binary file not shown.
BIN
humanize-4.6.0.tar.gz
Normal file
BIN
humanize-4.6.0.tar.gz
Normal file
Binary file not shown.
@ -1,12 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-humanize
|
Name: python-humanize
|
||||||
Version: 4.4.0
|
Version: 4.6.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Python humanize utilities
|
Summary: Python humanize utilities
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/python-humanize/humanize
|
URL: https://github.com/python-humanize/humanize
|
||||||
Source0: https://files.pythonhosted.org/packages/51/19/3e1adf0e7a8c8361496b085edcab2ddcd85410735a2b6fdd044247fc5b75/humanize-4.4.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/06/b1/9e491df2ee1c919d67ee328d8bc9f17b7a9af68e4077f3f5fac83a4488c9/humanize-4.6.0.tar.gz
|
||||||
Patch0: 0001-add-version-to-setup.cfg.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python3-importlib-metadata
|
Requires: python3-importlib-metadata
|
||||||
@ -21,7 +20,10 @@ BuildRequires: python3-devel
|
|||||||
BuildRequires: python3-freezegun
|
BuildRequires: python3-freezegun
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-pytest-cov
|
BuildRequires: python3-pytest-cov
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
|
BuildRequires: python3-hatch-vcs
|
||||||
|
BuildRequires: python3-wheel
|
||||||
%description -n python3-humanize
|
%description -n python3-humanize
|
||||||
Python module that includes various common humanization utilities.
|
Python module that includes various common humanization utilities.
|
||||||
|
|
||||||
@ -32,39 +34,18 @@ Provides: python3-humanize-doc
|
|||||||
Python module that includes various common humanization utilities.
|
Python module that includes various common humanization utilities.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n humanize-4.4.0
|
%setup -n humanize-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install humanize==%{version}
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{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 example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
pushd %{buildroot}
|
|
||||||
if [ -d usr/lib ]; then
|
|
||||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/lib64 ]; then
|
|
||||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/bin ]; then
|
|
||||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/sbin ]; then
|
|
||||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
touch doclist.lst
|
|
||||||
if [ -d usr/share/man ]; then
|
|
||||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
||||||
fi
|
|
||||||
popd
|
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{?_with_check:1}%{!?_with_check:0}
|
%if %{?_with_check:1}%{!?_with_check:0}
|
||||||
@ -73,13 +54,16 @@ LANG=en_US.UTF-8 /usr/bin/python3 setup.py test
|
|||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python3-humanize -f filelist.lst
|
%files -n python3-humanize
|
||||||
%dir %{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Mon Oct 24 2022 liqiuyu <liqiuyu@kylinos.cn> - 4.4.0-1
|
||||||
- Upgrade to version 4.4.0
|
- Upgrade to version 4.4.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user