!6 Adapting to the pyproject.toml compilation mode
From: @caodongxia Reviewed-by: @cherry530 Signed-off-by: @cherry530
This commit is contained in:
commit
be563eef25
@ -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',
|
|
||||||
+ )
|
|
||||||
@ -1,12 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-jeepney
|
Name: python-jeepney
|
||||||
Version: 0.8.0
|
Version: 0.8.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Low-level, pure Python DBus protocol wrapper.
|
Summary: Low-level, pure Python DBus protocol wrapper.
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://gitlab.com/takluyver/jeepney
|
URL: https://gitlab.com/takluyver/jeepney
|
||||||
Source0: https://files.pythonhosted.org/packages/d6/f4/154cf374c2daf2020e05c3c6a03c91348d59b23c5366e968feb198306fdf/jeepney-0.8.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/d6/f4/154cf374c2daf2020e05c3c6a03c91348d59b23c5366e968feb198306fdf/jeepney-0.8.0.tar.gz
|
||||||
Patch0: 0001-add-setup.py.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python3-testpath
|
Requires: python3-testpath
|
||||||
@ -28,6 +27,9 @@ Summary: Low-level, pure Python DBus protocol wrapper.
|
|||||||
Provides: python-jeepney
|
Provides: python-jeepney
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-flit-core
|
||||||
|
|
||||||
%description -n python3-jeepney
|
%description -n python3-jeepney
|
||||||
This is a low-level, pure Python DBus protocol client. It has an `I/O-free
|
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 <https://www.freedesktop.org/wiki/Software/DBusBindings/#python>`__.
|
number of `more mature Python DBus bindings <https://www.freedesktop.org/wiki/Software/DBusBindings/#python>`__.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n jeepney-%{version}
|
%autosetup -n jeepney-%{version} -p1
|
||||||
%patch0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install jeepney==%{version}
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{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
|
%files -n python3-jeepney -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
|
%{python3_sitelib}/jeepney
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help -f doclist.lst
|
||||||
%{_pkgdocdir}
|
%{_pkgdocdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 4 2023 caodongxia <caodongxia@h-partners.com> - 0.8.0-2
|
||||||
|
- Adapting to the pyproject.toml compilation mode
|
||||||
|
|
||||||
* Wed Nov 02 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.8.0-1
|
* Wed Nov 02 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.8.0-1
|
||||||
- Update package to version 0.8.0
|
- Update package to version 0.8.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user