!13 Adapting to the pyproject.toml compilation mode
From: @caodongxia Reviewed-by: @cherry530 Signed-off-by: @cherry530
This commit is contained in:
commit
892c778a92
@ -1,25 +0,0 @@
|
||||
From 442decd2a4c9b754e8c674044b85016d4fa99a7d Mon Sep 17 00:00:00 2001
|
||||
From: Gzx1999 <guozhengxin@kylinos.cn>
|
||||
Date: Sat, 24 Sep 2022 19:45:06 +0800
|
||||
Subject: [PATCH] add setup.py
|
||||
|
||||
---
|
||||
setup.py | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
create mode 100644 setup.py
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
new file mode 100644
|
||||
index 0000000..bac24a4
|
||||
--- /dev/null
|
||||
+++ b/setup.py
|
||||
@@ -0,0 +1,6 @@
|
||||
+#!/usr/bin/env python
|
||||
+
|
||||
+import setuptools
|
||||
+
|
||||
+if __name__ == "__main__":
|
||||
+ setuptools.setup()
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-importlib-resources
|
||||
Version: 5.12.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Read resources from Python packages
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/python/importlib_resources
|
||||
Source0: https://files.pythonhosted.org/packages/4e/a2/3cab1de83f95dd15297c15bdc04d50902391d707247cada1f021bbfe2149/importlib_resources-5.12.0.tar.gz
|
||||
Patch0: 0001-add-setup.py.patch
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description
|
||||
Importlib_resources is a backport of Python standard library.
|
||||
|
||||
@ -38,10 +38,10 @@ Importlib_resources is a backport of Python standard library.
|
||||
%autosetup -n importlib_resources-%{version} -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install importlib_resources==%{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
|
||||
@ -73,11 +73,15 @@ mv %{buildroot}/doclist.lst .
|
||||
|
||||
%files -n python3-importlib-resources -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
%{python3_sitelib}/importlib_resources
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 25 2023 caodongxia <caodongxia@h-partners.com> - 5.12.0-2
|
||||
- Adapting to the pyproject.toml compilation mode
|
||||
|
||||
* Tue Mar 28 2023 wubijie <wubijie@kylinos.cn> - 5.12.0-1
|
||||
- Update package to version 5.12.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user