Adapted to setup.py

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit acd0092940aacc5ad67ab90ffdd9722579470741)
This commit is contained in:
cherry530 2023-03-24 15:44:05 +08:00 committed by openeuler-sync-bot
parent e8d074b3a4
commit b699a9ae19
2 changed files with 19 additions and 11 deletions

View File

@ -13,15 +13,21 @@ 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