Mageia Bugzilla – Attachment 14411 Details for
Bug 32881
upgrade python-pytest-shutil and switch to pyproject
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch for pytest-virtualenv spec file
python-pytest-virtualenv.spec.patch (text/plain), 1.36 KB, created by
Aurelian R
on 2024-02-22 00:38:33 CET
(
hide
)
Description:
patch for pytest-virtualenv spec file
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-02-22 00:38:33 CET
Size:
1.36 KB
patch
obsolete
>--- python-pytest-virtualenv/python-pytest-virtualenv.spec 2024-02-20 01:57:00.851533854 +0200 >+++ SPECS/python-pytest-virtualenv.spec 2024-02-21 21:58:47.454519231 +0200 >@@ -1,5 +1,7 @@ > %global pypi_name pytest-virtualenv > >+%bcond_without tests >+ > Name: python-%{pypi_name} > Version: 1.7.0 > Release: %mkrel 5 >@@ -9,14 +11,6 @@ License: MIT > URL: https://pypi.org/project/pytest-virtualenv > Source0: %{pypi_source} > BuildArch: noarch >-BuildRequires: python3-devel >-BuildRequires: python3-setuptools >-# needed for tests >-BuildRequires: python3-pytest >-BuildRequires: python3-pytest-shutil >-BuildRequires: python3-pytest-fixture-config >-BuildRequires: python3-path >-BuildRequires: python3-virtualenv > > %description > Create a Python virtual environment in your test that cleans up on teardown. >@@ -39,14 +33,20 @@ The fixture has utility methods to insta > # This is not needed when building from the sdist > sed -i -e '/setuptools-git/d' common_setup.py > >+%generate_buildrequires >+%pyproject_buildrequires >+ > %build >-%py3_build >+%pyproject_wheel > > %install >-%py3_install >+%pyproject_install > > %check >-%{__python3} setup.py test >+%{?with_tests: >+# Partial testing, no module pkg_resources in py3.12 >+rm -rf tests/integration/test_tmpvirtualenv.py >+%pytest tests } > > %files -n python3-%{pypi_name} > %doc README.md CHANGES.md
--- python-pytest-virtualenv/python-pytest-virtualenv.spec 2024-02-20 01:57:00.851533854 +0200 +++ SPECS/python-pytest-virtualenv.spec 2024-02-21 21:58:47.454519231 +0200 @@ -1,5 +1,7 @@ %global pypi_name pytest-virtualenv +%bcond_without tests + Name: python-%{pypi_name} Version: 1.7.0 Release: %mkrel 5 @@ -9,14 +11,6 @@ License: MIT URL: https://pypi.org/project/pytest-virtualenv Source0: %{pypi_source} BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: python3-setuptools -# needed for tests -BuildRequires: python3-pytest -BuildRequires: python3-pytest-shutil -BuildRequires: python3-pytest-fixture-config -BuildRequires: python3-path -BuildRequires: python3-virtualenv %description Create a Python virtual environment in your test that cleans up on teardown. @@ -39,14 +33,20 @@ The fixture has utility methods to insta # This is not needed when building from the sdist sed -i -e '/setuptools-git/d' common_setup.py +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install %check -%{__python3} setup.py test +%{?with_tests: +# Partial testing, no module pkg_resources in py3.12 +rm -rf tests/integration/test_tmpvirtualenv.py +%pytest tests } %files -n python3-%{pypi_name} %doc README.md CHANGES.md
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32881
:
14410
| 14411