Accepting request 1114909 from devel:languages:python

- Add fix-tests-hookimpls.patch to fix tests with latest pytest in
  Factory.
- Update to v20.24.5:
  - Fix brew cannot copy by @gaborbernat in #2640
  - Test with 3.12 rc by @gaborbernat in #2641
  - Upgrade setuptools by @gaborbernat in #2642
  - GitHub Actions: Add PyPy 3.10 to testing by @cclauss in #2638
- 20.24.4:
  - Fix typo found by codespell by @DimitriPapadopoulos in #2624
  - Updating extend.rst typo by @sagardesai1 in #2626
- 20.24.3:
  - Update compatibility docs by @jugmac00 in #2618
  - fix ResourceWarning on process exit (#2472) by @sigma67 in #2617
  - added scripts in tasks directory to sdist on build (#2610) by @sigma67 in #2620
  - Bump wheel by @gaborbernat in #2622
- 20.24.2:
  - Bump pip and wheel by @gaborbernat in #2614
- 20.24.1:
  - Upgrade pip by @arielkirkwood in #2611
- 20.24.0:
  - Fix the CI by @gaborbernat in #2593
  - Quickstart guide by @AlvesJorge in #2599
  - Updated CLI documentation with config file name by @nathanczh in #2602
  - Exclude dependabot and pre-commit ci from release notes by @gaborbernat in #2603
  - Export VIRTUAL_ENV_PROMPT in activation scripts (#2194) by @jimporter in #2606
  - Upgrade setuptools by @gaborbernat in #2607

OBS-URL: https://build.opensuse.org/request/show/1114909
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-virtualenv?expand=0&rev=61
This commit is contained in:
Ana Guerrero 2023-10-04 20:30:31 +00:00 committed by Git OBS Bridge
commit 50b5a29056
5 changed files with 60 additions and 11 deletions

13
fix-tests-hookimpls.patch Normal file
View File

@ -0,0 +1,13 @@
Index: virtualenv-20.24.5/tests/conftest.py
===================================================================
--- virtualenv-20.24.5.orig/tests/conftest.py
+++ virtualenv-20.24.5/tests/conftest.py
@@ -25,7 +25,7 @@ def pytest_configure(config):
"""Ensure randomly is called before we re-order"""
manager = config.pluginmanager
- order = manager.hook.pytest_collection_modifyitems._hookimpls # noqa: SLF001
+ order = manager.hook.pytest_collection_modifyitems.get_hookimpls() # noqa: SLF001
dest = next((i for i, p in enumerate(order) if p.plugin is manager.getplugin("randomly")), None)
if dest is not None:
from_pos = next(i for i, p in enumerate(order) if p.plugin is manager.getplugin(__file__))

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Tue Oct 3 07:10:17 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Add fix-tests-hookimpls.patch to fix tests with latest pytest in
Factory.
-------------------------------------------------------------------
Tue Oct 3 06:39:58 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Update to v20.24.5:
- Fix brew cannot copy by @gaborbernat in #2640
- Test with 3.12 rc by @gaborbernat in #2641
- Upgrade setuptools by @gaborbernat in #2642
- GitHub Actions: Add PyPy 3.10 to testing by @cclauss in #2638
- 20.24.4:
- Fix typo found by codespell by @DimitriPapadopoulos in #2624
- Updating extend.rst typo by @sagardesai1 in #2626
- 20.24.3:
- Update compatibility docs by @jugmac00 in #2618
- fix ResourceWarning on process exit (#2472) by @sigma67 in #2617
- added scripts in tasks directory to sdist on build (#2610) by @sigma67 in #2620
- Bump wheel by @gaborbernat in #2622
- 20.24.2:
- Bump pip and wheel by @gaborbernat in #2614
- 20.24.1:
- Upgrade pip by @arielkirkwood in #2611
- 20.24.0:
- Fix the CI by @gaborbernat in #2593
- Quickstart guide by @AlvesJorge in #2599
- Updated CLI documentation with config file name by @nathanczh in #2602
- Exclude dependabot and pre-commit ci from release notes by @gaborbernat in #2603
- Export VIRTUAL_ENV_PROMPT in activation scripts (#2194) by @jimporter in #2606
- Upgrade setuptools by @gaborbernat in #2607
-------------------------------------------------------------------
Fri Jun 30 15:40:31 UTC 2023 - Markéta Machová <mmachova@suse.com>

View File

@ -28,27 +28,29 @@
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-virtualenv%{psuffix}
Version: 20.23.1
Version: 20.24.5
Release: 0
Summary: Virtual Python Environment builder
License: MIT
URL: http://www.virtualenv.org/
Source: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
BuildRequires: %{python_module distlib >= 0.3.6}
BuildRequires: %{python_module filelock >= 3.11}
# PATCH-FIX-OPENSUSE fix-tests-hookimpls.patch
Patch1: fix-tests-hookimpls.patch
BuildRequires: %{python_module distlib >= 0.3.7}
BuildRequires: %{python_module filelock >= 3.12.2}
BuildRequires: %{python_module hatch-vcs >= 0.3}
BuildRequires: %{python_module hatchling >= 1.14}
BuildRequires: %{python_module importlib-metadata >= 6.4.1 if %python-base < 3.8}
BuildRequires: %{python_module importlib-metadata >= 6.6 if %python-base < 3.8}
BuildRequires: %{python_module importlib_resources >= 1.0 if %python-base < 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module platformdirs >= 3.2}
BuildRequires: %{python_module platformdirs}
BuildRequires: %{python_module setuptools >= 41.0.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-distlib >= 0.3.6
Requires: python-filelock >= 3.11
Requires: python-platformdirs >= 3.2
Requires: python-distlib >= 0.3.7
Requires: python-filelock >= 3.12.2
Requires: python-platformdirs
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ff19a38c1021c742148edc4f81cb43d7f8c6816d2ede2ab72af5b84c749ade1
size 6619074

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8361967f6da6fbdf1426483bfe9fca8287c242ac0bc30429905721cefbff752
size 7119883