diff --git a/python-virtualenvwrapper.changes b/python-virtualenvwrapper.changes index d20ac2a..f3a7726 100644 --- a/python-virtualenvwrapper.changes +++ b/python-virtualenvwrapper.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Mar 8 05:47:59 UTC 2024 - Steve Kowalik + +- Update to 6.1.0: + * Breaking Changes + + formally drop Python 2 support + + remove toggleglobalsitepackages command, since virtualenv seems to + have removed that capability + + drop ksh support + + remove python2 from startup logic for finding the python interpreter + + Updated tested Python versions in README. + * Features + + add a --version option to the hook loader + * Miscellaneous Improvements + + switch to implicit namespaces + + modernize packaging + + Update the tested Python versions to match README + + Changed workon's env switching to use OR not $? + + Fix issues for python 3.12 +- Switch to autosetup and pyproject macros. +- No more greedy globs in %files. +- Drop patch virtualenvwrapper-4.8.4-python_version.patch, no longer + required. + ------------------------------------------------------------------- Sat Feb 13 22:07:00 UTC 2021 - Dirk Müller diff --git a/python-virtualenvwrapper.spec b/python-virtualenvwrapper.spec index fd2c30b..33a9332 100644 --- a/python-virtualenvwrapper.spec +++ b/python-virtualenvwrapper.spec @@ -1,7 +1,7 @@ # # spec file for package python-virtualenvwrapper # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_with test %global pythons python3 Name: python-virtualenvwrapper -Version: 4.8.4 +Version: 6.1.0 Release: 0 Summary: Enhancements to virtualenv License: MIT -Group: Development/Languages/Python URL: https://virtualenvwrapper.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-%{version}.tar.gz -Patch0: virtualenvwrapper-4.8.4-python_version.patch BuildRequires: %{python_module pbr} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-stevedore @@ -60,15 +59,14 @@ conflicts in their dependencies. 6. Plugin system for more creating sharable extensions. %prep -%setup -q -n virtualenvwrapper-%{version} +%autosetup -p1 -n virtualenvwrapper-%{version} sed -i -e '1i#!/bin/sh' virtualenvwrapper.sh -%patch0 -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} mv %{buildroot}%{_bindir}/virtualenvwrapper.sh %{buildroot}%{_bindir}/virtualenvwrapper mv %{buildroot}%{_bindir}/virtualenvwrapper_lazy.sh %{buildroot}%{_bindir}/virtualenvwrapper_lazy @@ -91,9 +89,10 @@ done %files %{python_files} %license LICENSE -%doc AUTHORS ChangeLog README.es.rst README.ja.rst README.txt +%doc README.es.rst README.ja.rst README.txt %python_alternative %{_bindir}/virtualenvwrapper %python_alternative %{_bindir}/virtualenvwrapper_lazy -%{python_sitelib}/* +%{python_sitelib}/virtualenvwrapper +%{python_sitelib}/virtualenvwrapper-%{version}.dist-info %changelog diff --git a/virtualenvwrapper-4.8.4-python_version.patch b/virtualenvwrapper-4.8.4-python_version.patch deleted file mode 100644 index 591823b..0000000 --- a/virtualenvwrapper-4.8.4-python_version.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: virtualenvwrapper-4.8.4/virtualenvwrapper.sh -=================================================================== ---- virtualenvwrapper-4.8.4.orig/virtualenvwrapper.sh -+++ virtualenvwrapper-4.8.4/virtualenvwrapper.sh -@@ -47,7 +47,7 @@ - # Locate the global Python where virtualenvwrapper is installed. - if [ "${VIRTUALENVWRAPPER_PYTHON:-}" = "" ] - then -- VIRTUALENVWRAPPER_PYTHON="$(command \which python)" -+ VIRTUALENVWRAPPER_PYTHON="$(command \which python3)" - fi - - # Set the name of the virtualenv app to use. diff --git a/virtualenvwrapper-4.8.4.tar.gz b/virtualenvwrapper-4.8.4.tar.gz deleted file mode 100644 index 2b03beb..0000000 --- a/virtualenvwrapper-4.8.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51a1a934e7ed0ff221bdd91bf9d3b604d875afbb3aa2367133503fee168f5bfa -size 334920 diff --git a/virtualenvwrapper-6.1.0.tar.gz b/virtualenvwrapper-6.1.0.tar.gz new file mode 100644 index 0000000..aaa4ae7 --- /dev/null +++ b/virtualenvwrapper-6.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d467beac5a44be00fb5cd1bcf332398c3dab5fb3bd3af7815ea86b4d6bb3d3a4 +size 95880