Adapting to the pyproject.toml compilation mode
This commit is contained in:
parent
c019e6b3e1
commit
1c35df399f
@ -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
|
||||
Name: python-jaraco-classes
|
||||
Version: 3.2.3
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: Utility functions for Python class constructs
|
||||
License: MIT
|
||||
URL: https://github.com/jaraco/jaraco.classes
|
||||
Source0: https://files.pythonhosted.org/packages/bf/02/a956c9bfd2dfe60b30c065ed8e28df7fcf72b292b861dca97e951c145ef6/jaraco.classes-3.2.3.tar.gz
|
||||
Patch0: 0001-add-setup.py.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Recommends: %{name}-help = %{version}-%{release}
|
||||
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-hatchling
|
||||
BuildRequires: python3-hatch-vcs
|
||||
BuildRequires: python3-wheel
|
||||
Requires: python3-more-itertools
|
||||
Requires: python3-sphinx
|
||||
Requires: python3-pytest
|
||||
@ -46,10 +50,10 @@ Documentation for jaraco-classes
|
||||
%autosetup -n jaraco.classes-%{version} -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install jaraco.classes==%{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
|
||||
@ -78,11 +82,15 @@ mv %{buildroot}/doclist.lst .
|
||||
|
||||
%files -n python3-jaraco-classes -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
%{python3_sitelib}/jaraco/classes
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%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
|
||||
- Adaptation to setup.py and modify the patching mode to resolve installation conflicts
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user