Accepting request 840217 from devel:languages:python
- Update to 20.0.33: * Fix ``None`` type error in cygwin if POSIX path in dest - by :user:`danyeaw`. (`#1962 <https://github.com/pypa/virtualenv/issues/1962>`_) * Fix Python 3.4 incompatibilities (added back to the CI) - by :user:`gaborbernat`. (`#1963 <https://github.com/pypa/virtualenv/issues/1963>`_) * For activation scripts always use UNIX line endings (unless it's BATCH shell related) - by :user:`saytosid`. (`#1818 <https://github.com/pypa/virtualenv/issues/1818>`_) * Avoid spawning new windows when doing seed package upgrades in the background on Windows - by :user:`gaborbernat`. (`#1928 <https://github.com/pypa/virtualenv/issues/1928>`_) * Fix a bug that reading and writing on the same file may cause race on multiple processes. (`#1938 <https://github.com/pypa/virtualenv/issues/1938>`_) * Provide correct path for bash activator in cygwin or msys2 - by :user:`danyeaw`. (`#1940 <https://github.com/pypa/virtualenv/issues/1940>`_) * Relax importlib requirement to allow version<3 - by :user:`usamasadiq` (`#1953 <https://github.com/pypa/virtualenv/issues/1953>`_) * pth files were not processed on CPython2 if $PYTHONPATH was pointing to site-packages/ - by :user:`navytux`. (`#1959 <https://github.com/pypa/virtualenv/issues/1959>`_) (`#1960 <https://github.com/pypa/virtualenv/issues/1960>`_) * Fix test suite failing if run from system Python - by :user:`gaborbernat`. (`#1882 <https://github.com/pypa/virtualenv/issues/1882>`_) * Provide ``setup_logging`` flag to python API so that users can bypass logging handling if their application already * performs this - by :user:`gaborbernat`. (`#1896 <https://github.com/pypa/virtualenv/issues/1896>`_) * Use ``\n`` instead if ``\r\n`` as line separator for report (because Python already performs this transformation * automatically upon write to the logging pipe) - by :user:`gaborbernat`. (`#1905 <https://github.com/pypa/virtualenv/issues/1905>`_) * No longer preimport threading to fix support for `gpython <https://pypi.org/project/pygolang/#gpython>`_ and `gevent <https://www.gevent.org/>`_ - by :user:`navytux`. (`#1897 <https://github.com/pypa/virtualenv/issues/1897>`_) * Bump dependency ``distutils >= 0.3.1`` - by :user:`gaborbernat`. (`#1880 <https://github.com/pypa/virtualenv/issues/1880>`_) * Improve periodic update handling: + better logging output while running and enable logging on background process call (``_VIRTUALENV_PERIODIC_UPDATE_INLINE`` may be used to debug behaviour inline) + fallback to unverified context when querying the PyPi for release date, + stop downloading wheels once we reach the embedded version, by :user:`gaborbernat`. (`#1883 <https://github.com/pypa/virtualenv/issues/1883>`_) * Do not print error message if the application exists with ``SystemExit(0)`` - by :user:`gaborbernat`. (`#1885 <https://github.com/pypa/virtualenv/issues/1885>`_) - Update Requires of python-distlib - Drop tests.patch, included upstream. OBS-URL: https://build.opensuse.org/request/show/840217 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-virtualenv?expand=0&rev=40
This commit is contained in:
commit
28f261edf9
@ -1,3 +1,30 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 8 04:11:15 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 20.0.33:
|
||||
* Fix ``None`` type error in cygwin if POSIX path in dest - by :user:`danyeaw`. (`#1962 <https://github.com/pypa/virtualenv/issues/1962>`_)
|
||||
* Fix Python 3.4 incompatibilities (added back to the CI) - by :user:`gaborbernat`. (`#1963 <https://github.com/pypa/virtualenv/issues/1963>`_)
|
||||
* For activation scripts always use UNIX line endings (unless it's BATCH shell related) - by :user:`saytosid`. (`#1818 <https://github.com/pypa/virtualenv/issues/1818>`_)
|
||||
* Avoid spawning new windows when doing seed package upgrades in the background on Windows - by :user:`gaborbernat`. (`#1928 <https://github.com/pypa/virtualenv/issues/1928>`_)
|
||||
* Fix a bug that reading and writing on the same file may cause race on multiple processes. (`#1938 <https://github.com/pypa/virtualenv/issues/1938>`_)
|
||||
* Provide correct path for bash activator in cygwin or msys2 - by :user:`danyeaw`. (`#1940 <https://github.com/pypa/virtualenv/issues/1940>`_)
|
||||
* Relax importlib requirement to allow version<3 - by :user:`usamasadiq` (`#1953 <https://github.com/pypa/virtualenv/issues/1953>`_)
|
||||
* pth files were not processed on CPython2 if $PYTHONPATH was pointing to site-packages/ - by :user:`navytux`. (`#1959 <https://github.com/pypa/virtualenv/issues/1959>`_) (`#1960 <https://github.com/pypa/virtualenv/issues/1960>`_)
|
||||
* Fix test suite failing if run from system Python - by :user:`gaborbernat`. (`#1882 <https://github.com/pypa/virtualenv/issues/1882>`_)
|
||||
* Provide ``setup_logging`` flag to python API so that users can bypass logging handling if their application already
|
||||
* performs this - by :user:`gaborbernat`. (`#1896 <https://github.com/pypa/virtualenv/issues/1896>`_)
|
||||
* Use ``\n`` instead if ``\r\n`` as line separator for report (because Python already performs this transformation
|
||||
* automatically upon write to the logging pipe) - by :user:`gaborbernat`. (`#1905 <https://github.com/pypa/virtualenv/issues/1905>`_)
|
||||
* No longer preimport threading to fix support for `gpython <https://pypi.org/project/pygolang/#gpython>`_ and `gevent <https://www.gevent.org/>`_ - by :user:`navytux`. (`#1897 <https://github.com/pypa/virtualenv/issues/1897>`_)
|
||||
* Bump dependency ``distutils >= 0.3.1`` - by :user:`gaborbernat`. (`#1880 <https://github.com/pypa/virtualenv/issues/1880>`_)
|
||||
* Improve periodic update handling:
|
||||
+ better logging output while running and enable logging on background process call (``_VIRTUALENV_PERIODIC_UPDATE_INLINE`` may be used to debug behaviour inline)
|
||||
+ fallback to unverified context when querying the PyPi for release date,
|
||||
+ stop downloading wheels once we reach the embedded version, by :user:`gaborbernat`. (`#1883 <https://github.com/pypa/virtualenv/issues/1883>`_)
|
||||
* Do not print error message if the application exists with ``SystemExit(0)`` - by :user:`gaborbernat`. (`#1885 <https://github.com/pypa/virtualenv/issues/1885>`_)
|
||||
- Update Requires of python-distlib
|
||||
- Drop tests.patch, included upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 7 07:20:17 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -26,19 +26,18 @@
|
||||
%bcond_with test
|
||||
%endif
|
||||
Name: python-virtualenv%{psuffix}
|
||||
Version: 20.0.25
|
||||
Version: 20.0.33
|
||||
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
|
||||
Patch0: tests.patch
|
||||
BuildRequires: %{python_module setuptools >= 41.0.0}
|
||||
BuildRequires: %{python_module setuptools_scm >= 2}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-appdirs >= 1.4.3
|
||||
Requires: python-distlib >= 0.3.0
|
||||
Requires: python-distlib >= 0.3.1
|
||||
Requires: python-filelock >= 3.0.0
|
||||
Requires: python-importlib-metadata >= 0.12
|
||||
Requires: python-importlib_resources >= 1.0
|
||||
@ -88,7 +87,6 @@ libraries either).
|
||||
|
||||
%prep
|
||||
%setup -q -n virtualenv-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
48
tests.patch
48
tests.patch
@ -1,48 +0,0 @@
|
||||
From 1f937b09bc268725cfdb09fc88939d1acde24b25 Mon Sep 17 00:00:00 2001
|
||||
From: Bernat Gabor <bgabor8@bloomberg.net>
|
||||
Date: Sat, 4 Jul 2020 17:37:51 +0100
|
||||
Subject: [PATCH] Fix test suite failing if run under system Python
|
||||
|
||||
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
|
||||
---
|
||||
docs/changelog/1882.bufix.rst | 1 +
|
||||
tests/conftest.py | 7 +++++++
|
||||
tests/unit/discovery/py_info/test_py_info.py | 2 +-
|
||||
3 files changed, 9 insertions(+), 1 deletion(-)
|
||||
create mode 100644 docs/changelog/1882.bufix.rst
|
||||
|
||||
diff --git a/docs/changelog/1882.bufix.rst b/docs/changelog/1882.bufix.rst
|
||||
new file mode 100644
|
||||
index 000000000..25669a364
|
||||
--- /dev/null
|
||||
+++ b/docs/changelog/1882.bufix.rst
|
||||
@@ -0,0 +1 @@
|
||||
+Fix test suite failing if run from system Python - by :user:`gaborbernat`.
|
||||
diff --git a/tests/conftest.py b/tests/conftest.py
|
||||
index 97e109e93..e69e4d72d 100644
|
||||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -342,3 +342,10 @@ def cross_python(is_inside_ci, session_app_data):
|
||||
@pytest.fixture(scope="session")
|
||||
def for_py_version():
|
||||
return "{}.{}".format(*sys.version_info[0:2])
|
||||
+
|
||||
+
|
||||
+@pytest.fixture()
|
||||
+def skip_if_test_in_system(session_app_data):
|
||||
+ current = PythonInfo.current(session_app_data)
|
||||
+ if current.system_executable is not None:
|
||||
+ pytest.skip("test not valid if run under system")
|
||||
diff --git a/tests/unit/discovery/py_info/test_py_info.py b/tests/unit/discovery/py_info/test_py_info.py
|
||||
index 11f3dcc26..6ed11c3e2 100644
|
||||
--- a/tests/unit/discovery/py_info/test_py_info.py
|
||||
+++ b/tests/unit/discovery/py_info/test_py_info.py
|
||||
@@ -299,7 +299,7 @@ def test_py_info_setuptools():
|
||||
PythonInfo()
|
||||
|
||||
|
||||
-def test_py_info_to_system_raises(session_app_data, mocker, caplog):
|
||||
+def test_py_info_to_system_raises(session_app_data, mocker, caplog, skip_if_test_in_system):
|
||||
caplog.set_level(logging.DEBUG)
|
||||
mocker.patch.object(PythonInfo, "_find_possible_folders", return_value=[])
|
||||
result = PythonInfo.from_exe(sys.executable, app_data=session_app_data, raise_on_error=False)
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f332ba0b2dfbac9f6b1da9f11224f0036b05cdb4df23b228527c2a2d5504aeed
|
||||
size 8059847
|
3
virtualenv-20.0.33.tar.gz
Normal file
3
virtualenv-20.0.33.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a5e0d253fe138097c6559c906c528647254f437d1019af9d5a477b09bfa7300f
|
||||
size 8282602
|
Loading…
Reference in New Issue
Block a user