From 2f63be0b17db6dea0291334da63ed4d41370640c7cce018a997a8db92e320be0 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 8 Oct 2020 09:49:22 +0000 Subject: [PATCH] - Update to 20.0.33: * Fix ``None`` type error in cygwin if POSIX path in dest - by :user:`danyeaw`. (`#1962 `_) * Fix Python 3.4 incompatibilities (added back to the CI) - by :user:`gaborbernat`. (`#1963 `_) * For activation scripts always use UNIX line endings (unless it's BATCH shell related) - by :user:`saytosid`. (`#1818 `_) * Avoid spawning new windows when doing seed package upgrades in the background on Windows - by :user:`gaborbernat`. (`#1928 `_) * Fix a bug that reading and writing on the same file may cause race on multiple processes. (`#1938 `_) * Provide correct path for bash activator in cygwin or msys2 - by :user:`danyeaw`. (`#1940 `_) * Relax importlib requirement to allow version<3 - by :user:`usamasadiq` (`#1953 `_) * pth files were not processed on CPython2 if $PYTHONPATH was pointing to site-packages/ - by :user:`navytux`. (`#1959 `_) (`#1960 `_) * Fix test suite failing if run from system Python - by :user:`gaborbernat`. (`#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 `_) * 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 `_) * No longer preimport threading to fix support for `gpython `_ and `gevent `_ - by :user:`navytux`. (`#1897 `_) * Bump dependency ``distutils >= 0.3.1`` - by :user:`gaborbernat`. (`#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 `_) * Do not print error message if the application exists with ``SystemExit(0)`` - by :user:`gaborbernat`. (`#1885 `_) - Update Requires of python-distlib - Drop tests.patch, included upstream. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=88 --- python-virtualenv.changes | 27 ++++++++++++++++++++++ python-virtualenv.spec | 6 ++--- tests.patch | 48 --------------------------------------- virtualenv-20.0.25.tar.gz | 3 --- virtualenv-20.0.33.tar.gz | 3 +++ 5 files changed, 32 insertions(+), 55 deletions(-) delete mode 100644 tests.patch delete mode 100644 virtualenv-20.0.25.tar.gz create mode 100644 virtualenv-20.0.33.tar.gz diff --git a/python-virtualenv.changes b/python-virtualenv.changes index b4822bf..3a2534f 100644 --- a/python-virtualenv.changes +++ b/python-virtualenv.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Thu Oct 8 04:11:15 UTC 2020 - Steve Kowalik + +- Update to 20.0.33: + * Fix ``None`` type error in cygwin if POSIX path in dest - by :user:`danyeaw`. (`#1962 `_) + * Fix Python 3.4 incompatibilities (added back to the CI) - by :user:`gaborbernat`. (`#1963 `_) + * For activation scripts always use UNIX line endings (unless it's BATCH shell related) - by :user:`saytosid`. (`#1818 `_) + * Avoid spawning new windows when doing seed package upgrades in the background on Windows - by :user:`gaborbernat`. (`#1928 `_) + * Fix a bug that reading and writing on the same file may cause race on multiple processes. (`#1938 `_) + * Provide correct path for bash activator in cygwin or msys2 - by :user:`danyeaw`. (`#1940 `_) + * Relax importlib requirement to allow version<3 - by :user:`usamasadiq` (`#1953 `_) + * pth files were not processed on CPython2 if $PYTHONPATH was pointing to site-packages/ - by :user:`navytux`. (`#1959 `_) (`#1960 `_) + * Fix test suite failing if run from system Python - by :user:`gaborbernat`. (`#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 `_) + * 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 `_) + * No longer preimport threading to fix support for `gpython `_ and `gevent `_ - by :user:`navytux`. (`#1897 `_) + * Bump dependency ``distutils >= 0.3.1`` - by :user:`gaborbernat`. (`#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 `_) + * Do not print error message if the application exists with ``SystemExit(0)`` - by :user:`gaborbernat`. (`#1885 `_) +- Update Requires of python-distlib +- Drop tests.patch, included upstream. + ------------------------------------------------------------------- Tue Jul 7 07:20:17 UTC 2020 - Tomáš Chvátal diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 299745f..c89629e 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -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 diff --git a/tests.patch b/tests.patch deleted file mode 100644 index 9cd79fb..0000000 --- a/tests.patch +++ /dev/null @@ -1,48 +0,0 @@ -From 1f937b09bc268725cfdb09fc88939d1acde24b25 Mon Sep 17 00:00:00 2001 -From: Bernat Gabor -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 ---- - 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) diff --git a/virtualenv-20.0.25.tar.gz b/virtualenv-20.0.25.tar.gz deleted file mode 100644 index 146e977..0000000 --- a/virtualenv-20.0.25.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f332ba0b2dfbac9f6b1da9f11224f0036b05cdb4df23b228527c2a2d5504aeed -size 8059847 diff --git a/virtualenv-20.0.33.tar.gz b/virtualenv-20.0.33.tar.gz new file mode 100644 index 0000000..0fa557a --- /dev/null +++ b/virtualenv-20.0.33.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5e0d253fe138097c6559c906c528647254f437d1019af9d5a477b09bfa7300f +size 8282602