!33 Adapting to the pyproject.toml compilation mode
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
e2fdcc977d
@ -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,13 +1,13 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-importlib-metadata
|
Name: python-importlib-metadata
|
||||||
Version: 6.1.0
|
Version: 6.1.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Read metadata from Python packages
|
Summary: Read metadata from Python packages
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/python/importlib_metadata
|
URL: https://github.com/python/importlib_metadata
|
||||||
Source0: https://files.pythonhosted.org/packages/e2/d8/3d431bade4598ad9e33be9da41d15e6607b878008e922d122659ab01b077/importlib_metadata-6.1.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/e2/d8/3d431bade4598ad9e33be9da41d15e6607b878008e922d122659ab01b077/importlib_metadata-6.1.0.tar.gz
|
||||||
Patch0: 0001-add-setup.py.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel
|
||||||
|
|
||||||
Requires: python3-zipp >= 0.5
|
Requires: python3-zipp >= 0.5
|
||||||
Requires: python3-typing-extensions
|
Requires: python3-typing-extensions
|
||||||
@ -51,10 +51,10 @@ importlib_metadata is a library which provides an API for accessing an installed
|
|||||||
%autosetup -n importlib_metadata-%{version} -p1
|
%autosetup -n importlib_metadata-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install importlib_metadata==%{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
|
||||||
@ -83,11 +83,15 @@ mv %{buildroot}/doclist.lst .
|
|||||||
|
|
||||||
%files -n python3-importlib-metadata -f filelist.lst
|
%files -n python3-importlib-metadata -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
|
%{python3_sitelib}/importlib_metadata
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help -f doclist.lst
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 26 2023 xu_ping <707078654@qq.com> - 6.1.0-2
|
||||||
|
- Adapting to the pyproject.toml compilation mode
|
||||||
|
|
||||||
* Fri Apr 07 2023 xu_ping <707078654@qq.com> - 6.1.0-1
|
* Fri Apr 07 2023 xu_ping <707078654@qq.com> - 6.1.0-1
|
||||||
- Upgrade 6.1.0
|
- Upgrade 6.1.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user