From 4aeadc5e807451f94835f0ba863758b6ce8d6dcf Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Wed, 26 Apr 2023 18:02:55 +0800 Subject: [PATCH] Adapting to the pyproject.toml compilation mode --- 0001-add-setup.py.patch | 34 ---------------------------------- python-pep517.spec | 15 +++++++++++---- 2 files changed, 11 insertions(+), 38 deletions(-) delete mode 100644 0001-add-setup.py.patch diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch deleted file mode 100644 index c478c29..0000000 --- a/0001-add-setup.py.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 089e8308734b5274f489a0c0162f420a6ce23ddd Mon Sep 17 00:00:00 2001 -From: jxy_git -Date: Wed, 9 Nov 2022 19:02:47 +0800 -Subject: [PATCH] add setup.py - ---- - setup.py | 9 +++++++++ - 1 file changed, 9 insertions(+) - create mode 100644 setup.py - -diff --git a/setup.py b/setup.py -new file mode 100644 -index 0000000..06f8341 ---- /dev/null -+++ b/setup.py -@@ -0,0 +1,15 @@ -+#!/usr/bin/env python -+ -+from distutils.core import setup -+ -+packages = \ -+['pep517', 'pep517.in_process'] -+ -+package_data = \ -+{'': ['*']} -+ -+setup(name='pep517', -+ version='0.13.0', -+ packages=packages, -+ package_data=package_data, -+ ) --- -2.37.1 - diff --git a/python-pep517.spec b/python-pep517.spec index da4a795..4c96318 100644 --- a/python-pep517.spec +++ b/python-pep517.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-pep517 Version: 0.13.0 -Release: 2 +Release: 3 Summary: Wrappers to build Python packages using PEP 517 hooks License: MIT URL: https://github.com/pypa/pep517 Source0: https://files.pythonhosted.org/packages/4d/19/e11fcc88288f68ae48e3aa9cf5a6fd092a88e629cb723465666c44d487a0/pep517-0.13.0.tar.gz -Patch0: 0001-add-setup.py.patch BuildArch: noarch %description @@ -17,6 +16,10 @@ Summary: Wrappers to build Python packages using PEP 517 hooks Provides: python-pep517 BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-pdm-pep517 +BuildRequires: python3-flit-core Requires: python3-toml Requires: python3-tomli Requires: python3-importlib-metadata @@ -34,10 +37,10 @@ Wrappers to build Python packages using PEP 517 hooks %autosetup -n pep517-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install pep517==%{version} 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 @@ -66,11 +69,15 @@ mv %{buildroot}/doclist.lst . %files -n python3-pep517 -f filelist.lst %dir %{python3_sitelib}/* +%{python3_sitelib}/pep517 %files help -f doclist.lst %{_docdir}/* %changelog +* Tue Apr 25 2023 caodongxia - 0.13.0-3 +- Adapting to the pyproject.toml compilation mode + * Fri Mar 24 2023 xu_ping - 0.13.0-2 - Adaptation to setup.py -- Gitee