!8 [sync] PR-7: Adaptation to setup.py

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-03-24 09:12:00 +00:00 committed by Gitee
commit 06d4313c71
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 19 additions and 11 deletions

View File

@ -13,16 +13,22 @@ new file mode 100644
index 0000000..06f8341 index 0000000..06f8341
--- /dev/null --- /dev/null
+++ b/setup.py +++ b/setup.py
@@ -0,0 +1,9 @@ @@ -0,0 +1,15 @@
+#!/usr/bin/env python +#!/usr/bin/env python
+ +
+from setuptools import setup +from distutils.core import setup
+ +
+if __name__ == "__main__": +packages = \
+ setup( +['pep517', 'pep517.in_process']
+ name = "pep517", +
+ version = "0.13.0", +package_data = \
+) +{'': ['*']}
+
+setup(name='pep517',
+ version='0.13.0',
+ packages=packages,
+ package_data=package_data,
+ )
-- --
2.37.1 2.37.1

View File

@ -1,12 +1,12 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-pep517 Name: python-pep517
Version: 0.13.0 Version: 0.13.0
Release: 1 Release: 2
Summary: Wrappers to build Python packages using PEP 517 hooks Summary: Wrappers to build Python packages using PEP 517 hooks
License: MIT License: MIT
URL: https://github.com/pypa/pep517 URL: https://github.com/pypa/pep517
Source0: https://files.pythonhosted.org/packages/4d/19/e11fcc88288f68ae48e3aa9cf5a6fd092a88e629cb723465666c44d487a0/pep517-0.13.0.tar.gz Source0: https://files.pythonhosted.org/packages/4d/19/e11fcc88288f68ae48e3aa9cf5a6fd092a88e629cb723465666c44d487a0/pep517-0.13.0.tar.gz
Patch0: 0001-add-setup.py.patch Patch0: 0001-add-setup.py.patch
BuildArch: noarch BuildArch: noarch
%description %description
@ -31,8 +31,7 @@ Provides: python3-pep517-doc
Wrappers to build Python packages using PEP 517 hooks Wrappers to build Python packages using PEP 517 hooks
%prep %prep
%autosetup -n pep517-%{version} %autosetup -n pep517-%{version} -p1
%patch0
%build %build
%py3_build %py3_build
@ -72,6 +71,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Fri Mar 24 2023 xu_ping <xuping33@h-partners.com> - 0.13.0-2
- Adaptation to setup.py
* Tue Nov 08 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.13.0-1 * Tue Nov 08 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.13.0-1
- Upgrade package to version 0.13.0 - Upgrade package to version 0.13.0