...
 
Commits (3)
......@@ -3,18 +3,24 @@ Aron Griffis <aron@arongriffis.com>
Axel H. <noirbizarre@gmail.com>
Bernardo B. Marques <bernardo.fire@gmail.com>
Carl Karsten <carl@personnelware.com>
Chris L <chris@chrisdeveloper.com>
ChrisHas35 <none@none>
Christopher Arndt <chris@chrisarndt.de>
Clay McClure <clay@daemons.net>
Daniel Hahler <git@thequod.de>
Daniel Kraus <daniel@tr0ll.net>
David Szotten <davidszotten@gmail.com>
David Wolever <david@wolever.net>
Devin Sevilla <dasevilla@gmail.com>
Doug Harris <dharris@gmail.com>
Doug Harris <dharris@truthinitiative.org>
Doug Hellmann <doug.hellmann@gmail.com>
Doug Hellmann <doug@doughellmann.com>
Erick M'bwana <erick@regulusweb.com>
Erik B <erik.bernoth@gmail.com>
Greg Haskins <greg@greghaskins.com>
Harry <hjwp2@cantab.net>
Hiro Ashiya <kekelo1603@gmail.com>
Ismail Badawi <isbadawi@gmail.com>
Ismail Sunni <imajimatika@gmail.com>
James Bennett <james@b-list.org>
......@@ -22,6 +28,7 @@ Jason Myers <jason@jasonamyers.com>
Jason Myers <jason@mailthemyers.com>
Jason Veatch <jtveatch@yahoo.com>
Jeff Byrnes <jeff@evertrue.com>
Jeff Widman <jeff@jeffwidman.com>
Jessamyn Smith <geekchick77@gmail.com>
John Brewer <brewerja@gmail.com>
Justin Abrahms <justin@abrah.ms>
......@@ -45,20 +52,26 @@ Radu Voicilas <radu.voicilas@gmail.com>
Ralph Bean <rbean@redhat.com>
Raphael Das Gupta <bitbucket.org@raphael.dasgupta.ch>
Robson Peixoto <robsonpeixoto@gmail.com>
Sam Brightman <sam.brightman@gmail.com>
Sander Smits <jhmsmits@gmail.com>
Scott Stevenson <scott@scottstvnsn.com>
Shrikant-Sharat <shrikantsharat.k@gmail.com>
SpotlightKid <bitbucket@chrisarndt.de>
Stephen McQuay <stephen@mcquay.me>
Steve Steiner <ssteinerX@gmail.com>
Thomas Desvenain <thomas.desvenain@ingeniweb.com>
Tobias <Tobias@debian-server.fritz.box>
William McVey <wam@cisco.com>
Xidorn Quan <quanxunzhen@gmail.com>
Zhiming Wang <zmwangx@gmail.com>
bwanamarko <bwanamarko@yahoo.com>
convert-repo <none@none>
dbr <dbr.onix@gmail.com>
humitos <none@none>
jforcier <none@none>
kk6 <hiro.ashiya@gmail.com>
lendenmc <chris@chrisdeveloper.com>
lonetwin <steve@lonetwin.net>
matt@sprout.staffknex.com <matt@sprout.staffknex.com>
noirbizarre <none@none>
seth@seth-ec-laptop <seth@seth-ec-laptop>
......
This diff is collapsed.
Metadata-Version: 1.1
Name: virtualenvwrapper
Version: 4.7.2
Version: 4.8.2
Summary: Enhancements to virtualenv
Home-page: http://virtualenvwrapper.readthedocs.org/
Home-page: https://virtualenvwrapper.readthedocs.io/
Author: Doug Hellmann
Author-email: doug@doughellmann.com
License: MIT
Description-Content-Type: UNKNOWN
Description: .. -*- mode: rst -*-
#################
......@@ -71,7 +72,7 @@ Description: .. -*- mode: rst -*-
Python Versions
===============
virtualenvwrapper is tested under Python 2.6 - 3.4.
virtualenvwrapper is tested under Python 2.6 - 3.6.
=======
Support
......@@ -137,8 +138,6 @@ Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Intended Audience :: Developers
Classifier: Environment :: Console
Provides: virtualenvwrapper
Provides: virtualenvwrapper.user_scripts
Provides: virtualenvwrapper.project
......@@ -63,7 +63,7 @@ from this page.
Python Versions
===============
virtualenvwrapper is tested under Python 2.6 - 3.4.
virtualenvwrapper is tested under Python 2.6 - 3.6.
=======
Support
......
virtualenvwrapper (4.7.2-1) UNRELEASED; urgency=medium
virtualenvwrapper (4.8.2-1) UNRELEASED; urgency=medium
[ Joel Cross ]
* Add Python 3 support by splitting into multiple packages (Closes: #760080)
......@@ -20,7 +20,7 @@ virtualenvwrapper (4.7.2-1) UNRELEASED; urgency=medium
parsechangelog output
* Update debian/control and debian/copyright
-- Jan Dittberner <jandd@debian.org> Tue, 23 Aug 2016 17:55:47 +0200
-- Jan Dittberner <jandd@debian.org> Sun, 12 Aug 2018 13:05:29 +0200
virtualenvwrapper (4.3.1-2) unstable; urgency=medium
......
......@@ -169,7 +169,7 @@ created elsewhere.
Copying virtual environments is not well supported. Each virtualenv
has path information hard-coded into it, and there may be cases
where the copy code does not know to update a particular
where the copy code does not know it needs to update a particular
file. **Use with caution.**
Syntax::
......
......@@ -58,7 +58,7 @@ How the Shell Runs a Program
When a shell receives a command to be executed, either interactively
or by parsing a script file, and determines that the command is
implemented in a separate program file, is uses ``fork()`` to create a
implemented in a separate program file, it uses ``fork()`` to create a
new process and then inside that process it uses one of the ``exec``
functions to start the specified program. The language that program is
written in doesn't make any difference in the decision about whether
......
......@@ -39,7 +39,7 @@ First, some initialization steps. Most of this only needs to be done
one time. You will want to add the command to ``source
/usr/local/bin/virtualenvwrapper.sh`` to your shell startup file,
changing the path to virtualenvwrapper.sh depending on where it was
installed by pip.
installed by pip or your package manager.
::
......@@ -197,10 +197,6 @@ of Python Magazine: `virtualenvwrapper | And Now For Something
Completely Different
<https://doughellmann.com/blog/2008/05/01/virtualenvwrapper/>`_.
Rich Leland has created a short `screencast
<http://mathematism.com/2009/07/30/presentation-pip-and-virtualenv/>`__
showing off the features of virtualenvwrapper.
Manuel Kaufmann has `translated this documentation into Spanish
<https://virtualenvwrapper-docs-es.readthedocs.org/es/latest/>`__.
......
......@@ -76,7 +76,7 @@ can download virtualenvwrapper-powershell_ from PyPI.
Python Versions
===============
virtualenvwrapper is tested under Python 2.6-3.4.
virtualenvwrapper is tested under Python 2.7-3.6.
.. _install-basic:
......
......@@ -135,12 +135,9 @@ it a proper path then it will do the right thing.
And to finally restore the default behaviour of ``cd`` once you
bailout of a VENV via a ``deactivate`` command, you need to add this
as a ``postdeactivate`` hook (`source
<https://github.com/kdeldycke/dotfiles/commit/80470b>`_)::
as a ``postdeactivate`` hook::
cd () {
builtin cd "$@"
}
unset -f cd
Clean up environments on exit
=======================================
......
......@@ -16,16 +16,13 @@ classifier =
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Intended Audience :: Developers
Environment :: Console
keywords =
virtualenv
home-page = http://virtualenvwrapper.readthedocs.org/
home-page = https://virtualenvwrapper.readthedocs.io/
zip_safe = False
provides_dist =
virtualenvwrapper
virtualenvwrapper.user_scripts
virtualenvwrapper.project
[files]
packages =
......@@ -89,5 +86,4 @@ all_files = 1
[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0
[tox]
envlist = py27,py26,py33,py34,py35,zsh,ksh,style
envlist = py27,py26,py33,py34,py35,py36,zsh,ksh,style
[testenv]
install_command = pip install -U {opts} {packages}
......@@ -49,4 +49,4 @@ basepython=python2.7
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/docs/requirements.txt
commands = python setup.py build_sphinx
\ No newline at end of file
commands = python setup.py build_sphinx
......@@ -45,26 +45,26 @@
#
# Locate the global Python where virtualenvwrapper is installed.
if [ "$VIRTUALENVWRAPPER_PYTHON" = "" ]
if [ "${VIRTUALENVWRAPPER_PYTHON:-}" = "" ]
then
VIRTUALENVWRAPPER_PYTHON="$(command \which python)"
fi
# Set the name of the virtualenv app to use.
if [ "$VIRTUALENVWRAPPER_VIRTUALENV" = "" ]
if [ "${VIRTUALENVWRAPPER_VIRTUALENV:-}" = "" ]
then
VIRTUALENVWRAPPER_VIRTUALENV="virtualenv"
fi
# Set the name of the virtualenv-clone app to use.
if [ "$VIRTUALENVWRAPPER_VIRTUALENV_CLONE" = "" ]
if [ "${VIRTUALENVWRAPPER_VIRTUALENV_CLONE:-}" = "" ]
then
VIRTUALENVWRAPPER_VIRTUALENV_CLONE="virtualenv-clone"
fi
# Define script folder depending on the platorm (Win32/Unix)
VIRTUALENVWRAPPER_ENV_BIN_DIR="bin"
if [ "$OS" = "Windows_NT" ] && ([ "$MSYSTEM" = "MINGW32" ] || [ "$MSYSTEM" = "MINGW64" ])
if [ "${OS:-}" = "Windows_NT" ] && ([ "${MSYSTEM:-}" = "MINGW32" ] || [ "${MSYSTEM:-}" = "MINGW64" ])
then
# Only assign this for msys, cygwin use standard Unix paths
# and its own python installation
......@@ -73,7 +73,7 @@ fi
# Let the user override the name of the file that holds the project
# directory name.
if [ "$VIRTUALENVWRAPPER_PROJECT_FILENAME" = "" ]
if [ "${VIRTUALENVWRAPPER_PROJECT_FILENAME:-}" = "" ]
then
export VIRTUALENVWRAPPER_PROJECT_FILENAME=".project"
fi
......@@ -83,7 +83,7 @@ fi
export VIRTUALENVWRAPPER_WORKON_CD=${VIRTUALENVWRAPPER_WORKON_CD:-1}
# Remember where we are running from.
if [ -z "$VIRTUALENVWRAPPER_SCRIPT" ]
if [ -z "${VIRTUALENVWRAPPER_SCRIPT:-}" ]
then
if [ -n "$BASH" ]
then
......@@ -108,10 +108,10 @@ fi
# we are trying to change the state of the current shell, so we use
# "builtin" for bash and zsh but "command" under ksh.
function virtualenvwrapper_cd {
if [ -n "$BASH" ]
if [ -n "${BASH:-}" ]
then
builtin \cd "$@"
elif [ -n "$ZSH_VERSION" ]
elif [ -n "${ZSH_VERSION:-}" ]
then
builtin \cd -q "$@"
else
......@@ -228,7 +228,7 @@ function virtualenvwrapper_run_hook {
( \
virtualenvwrapper_cd "$WORKON_HOME" &&
"$VIRTUALENVWRAPPER_PYTHON" -m 'virtualenvwrapper.hook_loader' \
$HOOK_VERBOSE_OPTION --script "$hook_script" "$@" \
${HOOK_VERBOSE_OPTION:-} --script "$hook_script" "$@" \
)
result=$?
......@@ -244,8 +244,8 @@ function virtualenvwrapper_run_hook {
source "$hook_script"
elif [ "${1}" = "initialize" ]
then
cat - 1>&2 <<EOF
virtualenvwrapper.sh: There was a problem running the initialization hooks.
cat - 1>&2 <<EOF
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
......@@ -260,7 +260,7 @@ EOF
# Set up tab completion. (Adapted from Arthur Koziel's version at
# http://arthurkoziel.com/2008/10/11/virtualenvwrapper-bash-completion/)
function virtualenvwrapper_setup_tab_completion {
if [ -n "$BASH" ] ; then
if [ -n "${BASH:-}" ] ; then
_virtualenvs () {
local cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=( $(compgen -W "`virtualenvwrapper_show_workon_options`" -- ${cur}) )
......@@ -304,8 +304,9 @@ function virtualenvwrapper_initialize {
# Set the location of the hook scripts
if [ "$VIRTUALENVWRAPPER_HOOK_DIR" = "" ]
then
export VIRTUALENVWRAPPER_HOOK_DIR="$WORKON_HOME"
VIRTUALENVWRAPPER_HOOK_DIR="$WORKON_HOME"
fi
export VIRTUALENVWRAPPER_HOOK_DIR
mkdir -p "$VIRTUALENVWRAPPER_HOOK_DIR"
......@@ -515,7 +516,7 @@ function rmvirtualenv {
virtualenvwrapper_verify_workon_home || return 1
if [ ${#@} = 0 ]
then
echo "Please specify an enviroment." >&2
echo "Please specify an environment." >&2
return 1
fi
......@@ -557,7 +558,7 @@ function rmvirtualenv {
# List the available environments.
function virtualenvwrapper_show_workon_options {
virtualenvwrapper_verify_workon_home || return 1
# NOTE: DO NOT use ls or cd here because colorized versions spew control
# NOTE: DO NOT use ls or cd here because colorized versions spew control
# characters into the output list.
# echo seems a little faster than find, even with -depth 3.
# Note that this is a little tricky, as there may be spaces in the path.
......@@ -572,7 +573,7 @@ function virtualenvwrapper_show_workon_options {
# a slash, as that is an illegal character in a directory name.
# This yields a slash-separated list of possible env names.
# 4. Replace each slash with a newline to show the output one name per line.
# 5. Eliminate any lines with * on them because that means there
# 5. Eliminate any lines with * on them because that means there
# were no envs.
(virtualenvwrapper_cd "$WORKON_HOME" && echo */$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate) 2>/dev/null \
| command \tr "\n" " " \
......@@ -593,7 +594,7 @@ function _lsvirtualenv_usage {
function lsvirtualenv {
typeset long_mode=true
if command -v "getopts" &> /dev/null
if command -v "getopts" >/dev/null 2>&1
then
# Use getopts when possible
OPTIND=1
......@@ -749,12 +750,17 @@ function workon {
# Deactivate any current environment "destructively"
# before switching so we use our override function,
# if it exists.
# if it exists, but make sure it's the deactivate function
# we set up
type deactivate >/dev/null 2>&1
if [ $? -eq 0 ]
then
deactivate
unset -f deactivate >/dev/null 2>&1
type deactivate | grep 'typeset env_postdeactivate_hook' >/dev/null 2>&1
if [ $? -eq 0 ]
then
deactivate
unset -f deactivate >/dev/null 2>&1
fi
fi
virtualenvwrapper_run_hook "pre_activate" "$env_name"
......@@ -809,7 +815,7 @@ function virtualenvwrapper_get_python_version {
# Prints the path to the site-packages directory for the current environment.
function virtualenvwrapper_get_site_packages_dir {
"$VIRTUAL_ENV/$VIRTUALENVWRAPPER_ENV_BIN_DIR/python" -c "import distutils; print(distutils.sysconfig.get_python_lib())"
"$VIRTUAL_ENV/$VIRTUALENVWRAPPER_ENV_BIN_DIR/python" -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())"
}
# Path management for packages outside of the virtual env.
......@@ -947,7 +953,7 @@ function cpvirtualenv {
typeset src_name="$1"
typeset trg_name="$2"
typeset src
typeset trg
typeset trg
# without a source there is nothing to do
if [ "$src_name" = "" ]; then
......@@ -991,10 +997,10 @@ function cpvirtualenv {
echo "Copying $src_name as $trg_name..."
(
[ -n "$ZSH_VERSION" ] && setopt SH_WORD_SPLIT
[ -n "$ZSH_VERSION" ] && setopt SH_WORD_SPLIT
virtualenvwrapper_cd "$WORKON_HOME" &&
"$VIRTUALENVWRAPPER_VIRTUALENV_CLONE" "$src" "$trg"
[ -d "$trg" ] &&
"$VIRTUALENVWRAPPER_VIRTUALENV_CLONE" "$src" "$trg"
[ -d "$trg" ] &&
virtualenvwrapper_run_hook "pre_cpvirtualenv" "$src" "$trg_name" &&
virtualenvwrapper_run_hook "pre_mkvirtualenv" "$trg_name"
)
......@@ -1281,7 +1287,7 @@ function wipeenv {
virtualenvwrapper_verify_active_environment || return 1
typeset req_file="$(virtualenvwrapper_tempfile "requirements.txt")"
pip freeze | egrep -v '(distribute|wsgiref)' > "$req_file"
pip freeze | egrep -v '(distribute|wsgiref|appdirs|packaging|pyparsing|six)' > "$req_file"
if [ -n "$(cat "$req_file")" ]
then
echo "Uninstalling packages:"
......