diff --git a/python-termcolor.spec b/python-termcolor.spec index 1f2854c786ec130c07a0c42bc836dbc4df9f6926..2c44c0c3cf9d77f87e333f67749b4b361613e238 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-termcolor -Version: 1.1.0 +Version: 2.0.1 Release: 1 Summary: ANSII Color formatting for output in terminal. License: MIT URL: http://pypi.python.org/pypi/termcolor -Source0: https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz +Source0: https://files.pythonhosted.org/packages/c1/ee/ad1f448e360e4b662fbff9e75cd210b73ad79998ce6483086e9df5b8e7e2/termcolor-2.0.1.tar.gz BuildArch: noarch @@ -17,6 +17,8 @@ Summary: ANSII Color formatting for output in terminal. Provides: python-termcolor BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip python3-wheel +BuildRequires: python3-hatchling python3-hatch-vcs %description -n python3-termcolor ANSII Color formatting for output in terminal. @@ -27,13 +29,14 @@ Provides: python3-termcolor-doc ANSII Color formatting for output in terminal. %prep -%autosetup -n termcolor-1.1.0 +%autosetup -n termcolor-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%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 @@ -41,20 +44,20 @@ if [ -d example ]; then cp -arf example %{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 + 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 + 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 + 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 + 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 + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . @@ -63,9 +66,17 @@ mv %{buildroot}/doclist.lst . %files -n python3-termcolor -f filelist.lst %dir %{python3_sitelib}/* +%exclude %{python3_sitelib}/termcolor/__pycache__/*.pyc + %files help -f doclist.lst %{_docdir}/* %changelog +* Mon Apr 15 2024 wangjing - 2.0.1-1 +- update package of version 2.0.1 +- Update source URL +- Add support for Python 3.10/3/11 PyPy +- Add type annotations to the project and run mypy on CI + * Sat Oct 03 2020 Python_Bot - Package Spec generated diff --git a/termcolor-1.1.0.tar.gz b/termcolor-1.1.0.tar.gz deleted file mode 100644 index 47f3cd004a58ec849159c3e0e1088571c77ab38f..0000000000000000000000000000000000000000 Binary files a/termcolor-1.1.0.tar.gz and /dev/null differ diff --git a/termcolor-2.0.1.tar.gz b/termcolor-2.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9b8c3e1c0a9439e60d8936b913dd4c100a5c7d58 Binary files /dev/null and b/termcolor-2.0.1.tar.gz differ