diff --git a/0001-discard-invalid-package-info-when-it-is-deprecated.patch b/0001-discard-invalid-package-info-when-it-is-deprecated.patch deleted file mode 100644 index 87d1aa8feb0b93b930adaab77ef1c98f290a9120..0000000000000000000000000000000000000000 --- a/0001-discard-invalid-package-info-when-it-is-deprecated.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 0ec69cf350d7e5b3509d3c98860169145f72b25b Mon Sep 17 00:00:00 2001 -From: wang__ge -Date: Sun, 7 Apr 2024 15:42:22 +0800 -Subject: [PATCH] discard invalid package info when it is deprecated - ---- - pytest_virtualenv.py | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/pytest_virtualenv.py b/pytest_virtualenv.py -index dbaf45b..fd7a0f8 100644 ---- a/pytest_virtualenv.py -+++ b/pytest_virtualenv.py -@@ -226,6 +226,7 @@ class VirtualEnv(Workspace): - "for i in working_set: print(i.project_name + ' ' + i.version + ' ' + i.location)" - lines = self.run([self.python, "-c", code], capture=True).split('\n') - for line in [i.strip() for i in lines if i.strip()]: -- name, version, location = line.split() -- res[name] = PackageEntry(name, version, location) -+ if (not 'DeprecationWarning:' in line.split()): -+ name, version, location = line.split() -+ res[name] = PackageEntry(name, version, location) - return res --- -2.43.0 - diff --git a/pytest-virtualenv-1.7.0.tar.gz b/pytest-virtualenv-1.7.0.tar.gz deleted file mode 100644 index b7337ea98463d2dffaa66ba1d439d848f3c9d176..0000000000000000000000000000000000000000 Binary files a/pytest-virtualenv-1.7.0.tar.gz and /dev/null differ diff --git a/pytest-virtualenv-1.8.1.tar.gz b/pytest-virtualenv-1.8.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0a13e3cb5672235585064804c7b39e1f54f1e4cf Binary files /dev/null and b/pytest-virtualenv-1.8.1.tar.gz differ diff --git a/python-pytest-virtualenv.spec b/python-pytest-virtualenv.spec index 72d658cbf376dc431186fa5a13bcff346e6ec96b..2333eea0fff1b243296ce6edde83525f64b1519a 100644 --- a/python-pytest-virtualenv.spec +++ b/python-pytest-virtualenv.spec @@ -3,13 +3,12 @@ %bcond_without tests Name: python-pytest-virtualenv -Version: 1.7.0 -Release: 3 +Version: 1.8.1 +Release: 1 Summary: Virtualenv fixture for py.test License: MIT URL: https://github.com/manahl/pytest-plugins -Source0: https://files.pythonhosted.org/packages/96/73/f3d34462e1d2de89bab407ba3dac5212e9e6996f5b4bc3c6930c68f51b62/pytest-virtualenv-1.7.0.tar.gz -Patch0: 0001-discard-invalid-package-info-when-it-is-deprecated.patch +Source0: %{pypi_source pytest-virtualenv} BuildArch: noarch %description @@ -23,12 +22,11 @@ BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-six BuildRequires: python3-setuptools_git +BuildRequires: python3-importlib-metadata %if %{with tests} BuildRequires: python3-pytest-shutil BuildRequires: python3-pytest-fixture-config -BuildRequires: python3-path BuildRequires: python3-execnet -BuildRequires: python3-mock BuildRequires: python3-virtualenv %endif Requires: python3-pytest-fixture-config @@ -94,6 +92,20 @@ mv %{buildroot}/doclist.lst . %doc README.md CHANGES.md %changelog +* Thu Dec 12 2024 yaoxin - 1.8.1-1 +- Update to 1.8.1: + * Use py_modules in setup.py + * Fix flakiness on py3.9+ on Windows when the receive time was equal to the clear_time. + * Removed usage of deprecated pytest.yield_fixture. + * Removed usage of distutils, where possible. + * Remove custom hooks from python setup.py test since this is no longer supported. + * Drop support for Python 2 and <3.6, removing compatibility code. + * Use stdlib unittest.mock instead of mock package. + * Removed usage of path.py and path in favour of pathlib. + * Modernised package. + * Added delete_workspace parameter to VirtualEnv. + * Removed extras_require. + * Sun Apr 07 2024 Ge Wang - 1.7.0-3 - discard invalid package info when it is deprecated