!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
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,9 @@
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+from setuptools import setup
+from distutils.core import setup
+
+if __name__ == "__main__":
+ setup(
+ name = "pep517",
+ version = "0.13.0",
+)
+packages = \
+['pep517', 'pep517.in_process']
+
+package_data = \
+{'': ['*']}
+
+setup(name='pep517',
+ version='0.13.0',
+ packages=packages,
+ package_data=package_data,
+ )
--
2.37.1

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0
Name: python-pep517
Version: 0.13.0
Release: 1
Release: 2
Summary: Wrappers to build Python packages using PEP 517 hooks
License: MIT
URL: https://github.com/pypa/pep517
@ -31,8 +31,7 @@ Provides: python3-pep517-doc
Wrappers to build Python packages using PEP 517 hooks
%prep
%autosetup -n pep517-%{version}
%patch0
%autosetup -n pep517-%{version} -p1
%build
%py3_build
@ -72,6 +71,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%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
- Upgrade package to version 0.13.0