Adapting to the pyproject.toml compilation mode
This commit is contained in:
parent
36711d874e
commit
d57c4dd890
@ -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()
|
|
||||||
@ -1,11 +1,10 @@
|
|||||||
Name: python-pytest-runner
|
Name: python-pytest-runner
|
||||||
Version: 6.0.0
|
Version: 6.0.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Provide setup.py test support for pytest runner
|
Summary: Provide setup.py test support for pytest runner
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pytest-dev/pytest-runner/
|
URL: https://github.com/pytest-dev/pytest-runner/
|
||||||
Source0: https://files.pythonhosted.org/packages/2b/b2/5a07a37f314d3c0457c5431fd5b130e04355fa143f042356f77dd1570d36/pytest-runner-6.0.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/2b/b2/5a07a37f314d3c0457c5431fd5b130e04355fa143f042356f77dd1570d36/pytest-runner-6.0.0.tar.gz
|
||||||
Patch0: 0001-add-setup.py.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -18,6 +17,8 @@ Provides: python-pytest-runner
|
|||||||
Requires: python3-pytest
|
Requires: python3-pytest
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pip python3-wheel
|
||||||
|
BuildRequires: python3-hatchling python3-hatch-vcs
|
||||||
|
|
||||||
%description -n python3-pytest-runner
|
%description -n python3-pytest-runner
|
||||||
Setup scripts can use pytest-runner to add setup.py test support
|
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
|
%autosetup -n pytest-runner-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
|
|
||||||
%check
|
|
||||||
%{__python3} setup.py test
|
|
||||||
|
|
||||||
%files -n python3-pytest-runner
|
%files -n python3-pytest-runner
|
||||||
%doc README.rst LICENSE
|
%doc README.rst LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 23 2023 liyanan <thistleslyn@163.com> - 6.0.0-3
|
||||||
|
- Adapting to the pyproject.toml compilation mode
|
||||||
|
|
||||||
* Mon Feb 27 2023 wangkai <wangkai385@h-partners.com> - 6.0.0-2
|
* Mon Feb 27 2023 wangkai <wangkai385@h-partners.com> - 6.0.0-2
|
||||||
- Modify the patching method
|
- Modify the patching method
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user