Mageia Bugzilla – Attachment 14410 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-shutil spec
python-pytest-shutil.spec.patch (text/plain), 1.95 KB, created by
Aurelian R
on 2024-02-22 00:37:44 CET
(
hide
)
Description:
patch for pytest-shutil spec
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-02-22 00:37:44 CET
Size:
1.95 KB
patch
obsolete
>--- python-pytest-shutil/python-pytest-shutil.spec 2024-02-20 02:02:50.083156885 +0200 >+++ SPECS/python-pytest-shutil.spec 2024-02-21 21:49:23.201043682 +0200 >@@ -1,23 +1,24 @@ > %global pypi_name pytest-shutil > >+%bcond_without tests >+ > Name: python-%{pypi_name} > Version: 1.7.0 >-Release: %mkrel 5 >+Release: %mkrel 6 > Summary: A goodie-bag of unix shell and environment tools for py.test > Group: Development/Python > License: MIT > URL: https://pypi.org/project/pytest-shutil/ > Source0: %{pypi_source} >+# https://github.com/man-group/pytest-plugins/pull/219/commits/bbb9e5c7cba84fb4665a521569d1cfcca08ee4e5 >+Patch0: 001-replace-deprecated-imp-module.patch > > BuildArch: noarch >-BuildRequires: python3-devel >-BuildRequires: python3-setuptools >+%if %{with tests} > BuildRequires: python3-pytest >-BuildRequires: python3-six >-BuildRequires: python3-mock >-BuildRequires: python3-path >-BuildRequires: python3-execnet >+BuildRequires: python3-contextlib2 > BuildRequires: python3-termcolor >+%endif > > %description > This library is a goodie-bag of Unix shell and >@@ -34,7 +35,7 @@ This library is a goodie-bag of Unix she > environment management tools for automated tests. > > %prep >-%setup -qn %{pypi_name}-%{version} >+%autosetup -p2 -n %{pypi_name}-%{version} > > sed -i \ > -e "/'contextlib2'/d" \ >@@ -45,16 +46,19 @@ sed -i \ > # 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 >+%pyproject_save_files pytest_shutil > > %check >-# test_pretty_formatter requires termcolor >-PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest >+%pyproject_check_import >+%{?with_tests:%pytest} > >-%files -n python3-%{pypi_name} >+%files -n python3-%{pypi_name} -f %{pyproject_files} > %doc README.md CHANGES.md >-%{python3_sitelib}/*
--- python-pytest-shutil/python-pytest-shutil.spec 2024-02-20 02:02:50.083156885 +0200 +++ SPECS/python-pytest-shutil.spec 2024-02-21 21:49:23.201043682 +0200 @@ -1,23 +1,24 @@ %global pypi_name pytest-shutil +%bcond_without tests + Name: python-%{pypi_name} Version: 1.7.0 -Release: %mkrel 5 +Release: %mkrel 6 Summary: A goodie-bag of unix shell and environment tools for py.test Group: Development/Python License: MIT URL: https://pypi.org/project/pytest-shutil/ Source0: %{pypi_source} +# https://github.com/man-group/pytest-plugins/pull/219/commits/bbb9e5c7cba84fb4665a521569d1cfcca08ee4e5 +Patch0: 001-replace-deprecated-imp-module.patch BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: python3-setuptools +%if %{with tests} BuildRequires: python3-pytest -BuildRequires: python3-six -BuildRequires: python3-mock -BuildRequires: python3-path -BuildRequires: python3-execnet +BuildRequires: python3-contextlib2 BuildRequires: python3-termcolor +%endif %description This library is a goodie-bag of Unix shell and @@ -34,7 +35,7 @@ This library is a goodie-bag of Unix she environment management tools for automated tests. %prep -%setup -qn %{pypi_name}-%{version} +%autosetup -p2 -n %{pypi_name}-%{version} sed -i \ -e "/'contextlib2'/d" \ @@ -45,16 +46,19 @@ sed -i \ # 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 +%pyproject_save_files pytest_shutil %check -# test_pretty_formatter requires termcolor -PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest +%pyproject_check_import +%{?with_tests:%pytest} -%files -n python3-%{pypi_name} +%files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md CHANGES.md -%{python3_sitelib}/*
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32881
: 14410 |
14411