!4 Adapting to the pyproject.toml compilation mode
From: @lyn1001 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
435b08dca9
@ -1,11 +0,0 @@
|
||||
--- c/setup.py 1970-01-01 08:00:00.000000000 +0800
|
||||
+++ a/setup.py 2023-03-07 09:36:37.599063820 +0800
|
||||
@@ -0,0 +1,8 @@
|
||||
+from setuptools import setup
|
||||
+
|
||||
+
|
||||
+setup(
|
||||
+ name = "testpath",
|
||||
+ version = "0.6.0",
|
||||
+ description = "Testpath is a collection of utilities for Python code working with files and commands. It contains functions to check things on the filesystem, and tools for mocking system commands and recording calls to those.",
|
||||
+ )
|
||||
@ -8,13 +8,13 @@ mocking system commands and recording calls to those.
|
||||
|
||||
Name: python-testpath
|
||||
Version: 0.6.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Test utilities for code working with files and commands
|
||||
License: MIT
|
||||
URL: https://github.com/jupyter/testpath
|
||||
Source0: https://files.pythonhosted.org/packages/08/ad/a3e7d580902f57e31d2181563fc4088894692bb6ef79b816344f27719cdc/testpath-0.6.0.tar.gz
|
||||
Patch0: 0001-add-setup.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-hatchling python3-hatch-vcs
|
||||
|
||||
%description
|
||||
%_description
|
||||
@ -24,7 +24,7 @@ Summary: Test utilities for code working with files and commands
|
||||
Provides: python-testpath = %{version}-%{release}
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-flit
|
||||
BuildRequires: python3-flit-core
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-sphinx_rtd_theme
|
||||
BuildRequires: python3-pytest
|
||||
@ -44,10 +44,11 @@ Provides: python3-testpath-doc
|
||||
rm -f testpath/*.exe
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install testpath==%{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
|
||||
@ -82,12 +83,16 @@ mv %{buildroot}/doclist.lst .
|
||||
|
||||
%files -n python3-testpath -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
%{python3_sitelib}/testpath/__pycache__/
|
||||
%license LICENSE
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Wed Apr 26 2023 liyanan <thistleslyn@163.com> - 0.6.0-2
|
||||
- Adapting to the pyproject.toml compilation mode
|
||||
|
||||
* Tue Mar 07 2023 wangjunqi <wangjunqi@kylinos.cn> - 0.6.0-1
|
||||
- Update package to version 0.6.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user