!11 Update package

From: @Wangjunqi123 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2022-12-03 08:35:49 +00:00 committed by Gitee
commit dfeba1fdf4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 14 additions and 11 deletions

View File

@ -13,7 +13,7 @@ new file mode 100644
index 0000000..e88d95f index 0000000..e88d95f
--- /dev/null --- /dev/null
+++ b/setup.py +++ b/setup.py
@@ -0,0 +1,71 @@ @@ -0,0 +1,69 @@
+# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*-
+# +#
+# Copyright (C) 2021 Vinay Sajip. +# Copyright (C) 2021 Vinay Sajip.
@ -71,16 +71,14 @@ index 0000000..e88d95f
+ 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.10',
+ 'Programming Language :: Python :: 3.11',
+ 'Topic :: Software Development', + 'Topic :: Software Development',
+ ], + ],
+ platforms='any', + platforms='any',
+ packages=[ + packages=[
+ 'distlib' + 'distlib'
+ ], + ],
+ package_data={ + include_package_data = True,
+ 'distlib': ['t32.exe', 't64.exe', 'w32.exe', 'w64.exe',
+ 't64-arm.exe', 'w64-arm.exe'],
+ },
+ cmdclass={ + cmdclass={
+ 'test': TestCommand, + 'test': TestCommand,
+ }, + },

Binary file not shown.

BIN
distlib-0.3.6.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,12 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-distlib Name: python-distlib
Version: 0.3.5 Version: 0.3.6
Release: 1 Release: 1
Summary: A library of packaging functionality Summary: A library of packaging functionality
License: Python-2.0 License: Python-2.0
URL: https://github.com/pypa/distlib URL: https://github.com/pypa/distlib
Source0: https://files.pythonhosted.org/packages/31/d5/e2aa0aa3918c8d88c4c8e4ebbc50a840e101474b98cd83d3c1712ffe5bb4/distlib-0.3.5.tar.gz Source0: https://files.pythonhosted.org/packages/58/07/815476ae605bcc5f95c87a62b95e74a1bce0878bc7a3119bc2bf4178f175/distlib-0.3.6.tar.gz
Patch0: 0001-add-setup.py.patch Patch0: 0001-add-setup.py.patch
BuildArch: noarch BuildArch: noarch
%description %description
@ -15,7 +15,7 @@ basis for third-party packaging tools.
%package -n python3-distlib %package -n python3-distlib
Summary: A library of packaging functionality Summary: A library of packaging functionality
Provides: python-distlib Provides: python-distlib = %{version}-%{release}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
%description -n python3-distlib %description -n python3-distlib
@ -30,8 +30,7 @@ A library of packaging functionality which is intended to be used as the
basis for third-party packaging tools. basis for third-party packaging tools.
%prep %prep
%autosetup -n distlib-0.3.5 %autosetup -n distlib-%{version}
%patch0
%build %build
%py3_build %py3_build
@ -43,6 +42,9 @@ 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
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot} pushd %{buildroot}
if [ -d usr/lib ]; then 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
@ -71,6 +73,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Fri Dec 02 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.3.6-1
- Update package to version 0.3.6
* Thu Aug 04 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.3.5-1 * Thu Aug 04 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.3.5-1
- update to 0.3.5 - update to 0.3.5