14
0

- 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenvwrapper?expand=0&rev=71
This commit is contained in:
2024-03-08 05:48:36 +00:00
committed by Git OBS Bridge
parent 0e0175ec99
commit 825087558c
5 changed files with 38 additions and 28 deletions

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Fri Mar 8 05:47:59 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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

View File

@@ -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.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:51a1a934e7ed0ff221bdd91bf9d3b604d875afbb3aa2367133503fee168f5bfa
size 334920

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d467beac5a44be00fb5cd1bcf332398c3dab5fb3bd3af7815ea86b4d6bb3d3a4
size 95880