diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch deleted file mode 100644 index b32246e..0000000 --- a/0001-add-setup.py.patch +++ /dev/null @@ -1,9 +0,0 @@ ---- a/setup.py 1970-01-01 08:00:00.000000000 +0800 -+++ b/setup.py 2022-10-19 09:38:57.746598491 +0800 -@@ -0,0 +1,6 @@ -+#!/usr/bin/env python -+ -+from setuptools import setup -+ -+if __name__ == "__main__": -+ setup() diff --git a/python-pytest-runner.spec b/python-pytest-runner.spec index ef9afb0..30eae73 100644 --- a/python-pytest-runner.spec +++ b/python-pytest-runner.spec @@ -1,11 +1,10 @@ Name: python-pytest-runner Version: 6.0.0 -Release: 2 +Release: 3 Summary: Provide setup.py test support for pytest runner License: MIT URL: https://github.com/pytest-dev/pytest-runner/ Source0: https://files.pythonhosted.org/packages/2b/b2/5a07a37f314d3c0457c5431fd5b130e04355fa143f042356f77dd1570d36/pytest-runner-6.0.0.tar.gz -Patch0: 0001-add-setup.py.patch BuildArch: noarch %description @@ -18,6 +17,8 @@ Provides: python-pytest-runner Requires: python3-pytest BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip python3-wheel +BuildRequires: python3-hatchling python3-hatch-vcs %description -n python3-pytest-runner Setup scripts can use pytest-runner to add setup.py test support @@ -27,19 +28,19 @@ for pytest runner. %autosetup -n pytest-runner-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install - -%check -%{__python3} setup.py test +%pyproject_install %files -n python3-pytest-runner %doc README.rst LICENSE %{python3_sitelib}/* %changelog +* Wed Aug 23 2023 liyanan - 6.0.0-3 +- Adapting to the pyproject.toml compilation mode + * Mon Feb 27 2023 wangkai - 6.0.0-2 - Modify the patching method