Update to 20.3.0 (#1914641)
This commit is contained in:
parent
6146c7b4f5
commit
acb80f1b48
@ -1,5 +1,5 @@
|
|||||||
Name: python-virtualenv
|
Name: python-virtualenv
|
||||||
Version: 20.2.1
|
Version: 20.3.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Tool to create isolated Python environments
|
Summary: Tool to create isolated Python environments
|
||||||
|
|
||||||
@ -9,6 +9,11 @@ Source0: %{pypi_source virtualenv}
|
|||||||
|
|
||||||
# Add /usr/share/python-wheels to extra_search_dir
|
# Add /usr/share/python-wheels to extra_search_dir
|
||||||
Patch1: rpm-wheels.patch
|
Patch1: rpm-wheels.patch
|
||||||
|
# A pytest autouse fixture introduced to workaround a pip issue breaks when PIP_CERT is set.
|
||||||
|
# We don't need the workaround, so we remove the fixture entirely until this is fixed.
|
||||||
|
# https://github.com/pypa/virtualenv/issues/2048
|
||||||
|
# https://github.com/pypa/pip/issues/8984
|
||||||
|
Patch2: remove-pip_cert-fixture.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -36,12 +41,10 @@ BuildRequires: gcc
|
|||||||
BuildRequires: python3-flaky
|
BuildRequires: python3-flaky
|
||||||
BuildRequires: python3-packaging
|
BuildRequires: python3-packaging
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-pytest-xdist
|
|
||||||
BuildRequires: python3-pytest-mock
|
BuildRequires: python3-pytest-mock
|
||||||
BuildRequires: python3-pytest-randomly
|
BuildRequires: python3-pytest-randomly
|
||||||
BuildRequires: python3-pytest-timeout
|
BuildRequires: python3-pytest-timeout
|
||||||
# FTBFS with Py 3.9: https://bugzilla.redhat.com/show_bug.cgi?id=1817770
|
BuildRequires: xonsh
|
||||||
# BuildRequires: xonsh
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# RPM installed wheels
|
# RPM installed wheels
|
||||||
@ -132,11 +135,7 @@ unset SOURCE_DATE_EPOCH
|
|||||||
# - test_acquire_find_wheel.py (whole file)
|
# - test_acquire_find_wheel.py (whole file)
|
||||||
# Uses disabled functionalities around automatic updates:
|
# Uses disabled functionalities around automatic updates:
|
||||||
# - test_periodic_update.py (whole file)
|
# - test_periodic_update.py (whole file)
|
||||||
# Workaround xonsh tests not being skipped when xonsh is missing:
|
%pytest -vv -k "not test_acquire_find_wheel and not test_periodic_update and not test_wheel_ and not test_download_ and not test_base_bootstrap_via_pip_invoke and not test_seed_link_via_app_data"
|
||||||
# - test_xonsh
|
|
||||||
# - https://github.com/pypa/virtualenv/issues/2014
|
|
||||||
# - https://github.com/pypa/virtualenv/pull/2013
|
|
||||||
%pytest -vv -k "not test_acquire_find_wheel and not test_periodic_update and not test_wheel_ and not test_download_ and not test_base_bootstrap_via_pip_invoke and not test_seed_link_via_app_data and not xonsh"
|
|
||||||
|
|
||||||
rm -r tmp_path
|
rm -r tmp_path
|
||||||
%endif
|
%endif
|
||||||
@ -155,6 +154,9 @@ rm -r tmp_path
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 12 2021 Lumír Balhar <lbalhar@redhat.com> - 20.3.0-1
|
||||||
|
- Update to 20.3.0 (#1914641)
|
||||||
|
|
||||||
* Mon Nov 23 2020 Lumír Balhar <lbalhar@redhat.com> - 20.2.1-1
|
* Mon Nov 23 2020 Lumír Balhar <lbalhar@redhat.com> - 20.2.1-1
|
||||||
- Update to 20.2.1 (#1900253)
|
- Update to 20.2.1 (#1900253)
|
||||||
|
|
||||||
|
38
remove-pip_cert-fixture.patch
Normal file
38
remove-pip_cert-fixture.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
From bd1bf597199a209b70bddec3cdaa64a9e4902cfa Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lumir Balhar <lbalhar@redhat.com>
|
||||||
|
Date: Tue, 12 Jan 2021 08:09:38 +0100
|
||||||
|
Subject: [PATCH] Remove pip_cert fixture
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/conftest.py | 15 ---------------
|
||||||
|
1 file changed, 15 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/conftest.py b/tests/conftest.py
|
||||||
|
index 4b91773..7b9628c 100644
|
||||||
|
--- a/tests/conftest.py
|
||||||
|
+++ b/tests/conftest.py
|
||||||
|
@@ -148,21 +148,6 @@ def ignore_global_config(tmp_path_factory):
|
||||||
|
yield
|
||||||
|
|
||||||
|
|
||||||
|
-@pytest.fixture(autouse=True, scope="session")
|
||||||
|
-def pip_cert(tmp_path_factory):
|
||||||
|
- # workaround for https://github.com/pypa/pip/issues/8984 - if the certificate is explicitly set no error can happen
|
||||||
|
- key = ensure_str("PIP_CERT")
|
||||||
|
- if key in os.environ:
|
||||||
|
- return
|
||||||
|
- cert = tmp_path_factory.mktemp("folder") / "cert"
|
||||||
|
- import pkgutil
|
||||||
|
-
|
||||||
|
- cert_data = pkgutil.get_data("pip._vendor.certifi", "cacert.pem")
|
||||||
|
- cert.write_bytes(cert_data)
|
||||||
|
- with change_os_environ(key, str(cert)):
|
||||||
|
- yield
|
||||||
|
-
|
||||||
|
-
|
||||||
|
@pytest.fixture(autouse=True)
|
||||||
|
def check_os_environ_stable():
|
||||||
|
old = os.environ.copy()
|
||||||
|
--
|
||||||
|
2.29.2
|
||||||
|
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (virtualenv-20.2.1.tar.gz) = e7877a9766bc47f47a07219258201ad8457ca587a04d61119a0516da43016dda4b5cfeaf725dd0b06f1f896ac8af0f3d7a2ceed3d3f35ac7a4b6ecc607c84118
|
SHA512 (virtualenv-20.3.0.tar.gz) = 5703a934d373d88670092febf26782f65303c65de93cffdd1a2ca06d6f2de4868378421f3ad96e3857eb99d0b60e7a77b0a2dbcf10561918efcbadb29a4ebf3b
|
||||||
|
Loading…
Reference in New Issue
Block a user