From 3a3b709d8a48af9b37fe527701216e23bdd5d718 Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Wed, 26 Apr 2023 17:10:15 +0800 Subject: [PATCH] Adapting to the pyproject.toml compilation mode --- 0001-add-setup.patch | 11 ----------- python-testpath.spec | 15 ++++++++++----- 2 files changed, 10 insertions(+), 16 deletions(-) delete mode 100644 0001-add-setup.patch diff --git a/0001-add-setup.patch b/0001-add-setup.patch deleted file mode 100644 index 22f0042..0000000 --- a/0001-add-setup.patch +++ /dev/null @@ -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.", -+ ) diff --git a/python-testpath.spec b/python-testpath.spec index 9097aeb..91162a0 100644 --- a/python-testpath.spec +++ b/python-testpath.spec @@ -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 - 0.6.0-2 +- Adapting to the pyproject.toml compilation mode + * Tue Mar 07 2023 wangjunqi - 0.6.0-1 - Update package to version 0.6.0