!20 Adapting to the pyproject.toml compilation mode
From: @caodongxia Reviewed-by: @cherry530 Signed-off-by: @cherry530
This commit is contained in:
commit
c86121379d
@ -1,31 +0,0 @@
|
|||||||
From bfed6fe2faa3df27b50c0b8efe9a3274207c82ad Mon Sep 17 00:00:00 2001
|
|
||||||
From: starlet-dx <15929766099@163.com>
|
|
||||||
Date: Tue, 28 Feb 2023 10:54:01 +0800
|
|
||||||
Subject: [PATCH 1/1] add setup file
|
|
||||||
|
|
||||||
---
|
|
||||||
setup.py | 12 ++++++++++++
|
|
||||||
1 file changed, 12 insertions(+)
|
|
||||||
create mode 100644 setup.py
|
|
||||||
|
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..f2daeed
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -0,0 +1,12 @@
|
|
||||||
+#!/usr/bin/env python
|
|
||||||
+
|
|
||||||
+from setuptools import setup
|
|
||||||
+
|
|
||||||
+entry_points = \
|
|
||||||
+ {'console_scripts': ['jaraco.classes = jaraco.classes:main']}
|
|
||||||
+
|
|
||||||
+setup(
|
|
||||||
+ name='jaraco.classes',
|
|
||||||
+ version='3.2.3',
|
|
||||||
+ py_modules=['jaraco.classes'],
|
|
||||||
+)
|
|
||||||
--
|
|
||||||
2.30.0
|
|
||||||
|
|
||||||
@ -1,16 +1,20 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-jaraco-classes
|
Name: python-jaraco-classes
|
||||||
Version: 3.2.3
|
Version: 3.2.3
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Utility functions for Python class constructs
|
Summary: Utility functions for Python class constructs
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/jaraco/jaraco.classes
|
URL: https://github.com/jaraco/jaraco.classes
|
||||||
Source0: https://files.pythonhosted.org/packages/bf/02/a956c9bfd2dfe60b30c065ed8e28df7fcf72b292b861dca97e951c145ef6/jaraco.classes-3.2.3.tar.gz
|
Source0: https://files.pythonhosted.org/packages/bf/02/a956c9bfd2dfe60b30c065ed8e28df7fcf72b292b861dca97e951c145ef6/jaraco.classes-3.2.3.tar.gz
|
||||||
Patch0: 0001-add-setup.py.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Recommends: %{name}-help = %{version}-%{release}
|
Recommends: %{name}-help = %{version}-%{release}
|
||||||
|
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
|
BuildRequires: python3-hatch-vcs
|
||||||
|
BuildRequires: python3-wheel
|
||||||
Requires: python3-more-itertools
|
Requires: python3-more-itertools
|
||||||
Requires: python3-sphinx
|
Requires: python3-sphinx
|
||||||
Requires: python3-pytest
|
Requires: python3-pytest
|
||||||
@ -46,10 +50,10 @@ Documentation for jaraco-classes
|
|||||||
%autosetup -n jaraco.classes-%{version} -p1
|
%autosetup -n jaraco.classes-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install jaraco.classes==%{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
|
||||||
@ -78,11 +82,15 @@ mv %{buildroot}/doclist.lst .
|
|||||||
|
|
||||||
%files -n python3-jaraco-classes -f filelist.lst
|
%files -n python3-jaraco-classes -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
|
%{python3_sitelib}/jaraco/classes
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help -f doclist.lst
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 25 2023 caodongxia <caodongxia@h-partners.com> - 3.2.3-4
|
||||||
|
- Adapting to the pyproject.toml compilation mode
|
||||||
|
|
||||||
* Mon Feb 27 2023 yaoxin <yaoxin30@h-partners.com> - 3.2.3-3
|
* Mon Feb 27 2023 yaoxin <yaoxin30@h-partners.com> - 3.2.3-3
|
||||||
- Adaptation to setup.py and modify the patching mode to resolve installation conflicts
|
- Adaptation to setup.py and modify the patching mode to resolve installation conflicts
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user