From 7e6dc87ab2b5cd826a0a7eb940299aad051a5413 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Thu, 4 May 2023 17:10:29 +0800 Subject: [PATCH] Adapting to the pyproject.toml compilation mode --- 0001-add-setup.py.patch | 38 -------------------------------------- python-jeepney.spec | 17 +++++++++++------ 2 files changed, 11 insertions(+), 44 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 ebc4dad..0000000 --- a/0001-add-setup.py.patch +++ /dev/null @@ -1,38 +0,0 @@ ---- c/setup.py 1970-01-01 08:00:00.000000000 +0800 -+++ a/setup.py 2022-11-02 10:34:45.755934377 +0800 -@@ -0,0 +1,35 @@ -+#!/usr/bin/env python -+# setup.py generated by flit for tools that don't yet use PEP 517 -+ -+from distutils.core import setup -+ -+packages = \ -+['jeepney', -+ 'jeepney.io', -+ 'jeepney.io.tests', -+ 'jeepney.tests'] -+ -+package_data = \ -+{'': ['*']} -+ -+extras_require = \ -+{'test': ['pytest', -+ 'pytest-trio', -+ 'pytest-asyncio >=0.17', -+ 'testpath', -+ 'trio', -+ 'async-timeout'], -+ 'trio': ['trio'], -+ "trio:python_version == '3.6'": ['async_generator']} -+ -+setup(name='jeepney', -+ version='0.8.0', -+ description='Low-level, pure Python DBus protocol wrapper.', -+ author='Thomas Kluyver', -+ author_email='thomas@kluyver.me.uk', -+ url='https://gitlab.com/takluyver/jeepney', -+ packages=packages, -+ package_data=package_data, -+ extras_require=extras_require, -+ python_requires='>=3.7', -+ ) diff --git a/python-jeepney.spec b/python-jeepney.spec index a07341c..54d674e 100644 --- a/python-jeepney.spec +++ b/python-jeepney.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-jeepney Version: 0.8.0 -Release: 1 +Release: 2 Summary: Low-level, pure Python DBus protocol wrapper. License: MIT URL: https://gitlab.com/takluyver/jeepney Source0: https://files.pythonhosted.org/packages/d6/f4/154cf374c2daf2020e05c3c6a03c91348d59b23c5366e968feb198306fdf/jeepney-0.8.0.tar.gz -Patch0: 0001-add-setup.py.patch BuildArch: noarch Requires: python3-testpath @@ -28,6 +27,9 @@ Summary: Low-level, pure Python DBus protocol wrapper. Provides: python-jeepney BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-flit-core %description -n python3-jeepney This is a low-level, pure Python DBus protocol client. It has an `I/O-free @@ -58,14 +60,13 @@ This project is experimental, and there are a number of `more mature Python DBus bindings `__. %prep -%autosetup -n jeepney-%{version} -%patch0 +%autosetup -n jeepney-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install jeepney==%{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 @@ -94,11 +95,15 @@ mv %{buildroot}/doclist.lst . %files -n python3-jeepney -f filelist.lst %dir %{python3_sitelib}/* +%{python3_sitelib}/jeepney %files help -f doclist.lst %{_pkgdocdir} %changelog +* Thu May 4 2023 caodongxia - 0.8.0-2 +- Adapting to the pyproject.toml compilation mode + * Wed Nov 02 2022 wangjunqi - 0.8.0-1 - Update package to version 0.8.0