From ff30def8899c36626eacbbd5c2266c1a7b72d2cd Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 5 Dec 2011 11:24:30 -0800 Subject: [PATCH] Rename .keystone-venv to .venv. This simplifies a number of Jenkins jobs which currently, other than directory names, could be the same for all OpenStack projects. By renaming the virtualenv directory, the redundant Jenkins virtualenv build and copy jobs can be eliminated. Change-Id: Ia831674b6e9c9d2be25b54e26c92009778d97a22 --- .gitignore | 1 + .mailmap | 2 ++ AUTHORS | 2 +- doc/source/developing.rst | 4 ++-- run_tests.sh | 2 +- tools/install_venv.py | 4 ++-- tools/with_venv.sh | 2 +- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 298560006c..935c7086ef 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ .pydevproject/ .settings/ .keystone-venv/ +.venv build/ dist/ doc/source/sourcecode diff --git a/.mailmap b/.mailmap index 7531d3dcfd..0e68e3030e 100644 --- a/.mailmap +++ b/.mailmap @@ -1,4 +1,6 @@ + + Khaled Hussein KnightHacker Khaled Hussein Khaled Hussein diff --git a/AUTHORS b/AUTHORS index fdf9519fd2..401bd01b27 100644 --- a/AUTHORS +++ b/AUTHORS @@ -7,7 +7,7 @@ Dan Prince Dolph Mathews gholt jabdul -James E. Blair +James E. Blair Jason Cannavale Jay Pipes Jenkins diff --git a/doc/source/developing.rst b/doc/source/developing.rst index f231763831..d266f2cd87 100644 --- a/doc/source/developing.rst +++ b/doc/source/developing.rst @@ -31,10 +31,10 @@ this environment, use the command:: $ python tools/install_venv.py -This will create a local virtual environment in the directory ``.keystone-venv``. +This will create a local virtual environment in the directory ``.venv``. Once created, you can activate this virtualenv for your current shell using:: - $ source .keystone-venv/bin/activate + $ source .venv/bin/activate The virtual environment can be disabled using the command:: diff --git a/run_tests.sh b/run_tests.sh index 04a4a2555c..d33b8b83ba 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -52,7 +52,7 @@ function process_option { fi } -venv=.keystone-venv +venv=.venv with_venv=tools/with_venv.sh always_venv=0 never_venv=0 diff --git a/tools/install_venv.py b/tools/install_venv.py index a91409108d..097d114b7a 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -28,7 +28,7 @@ import sys ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) -VENV = os.path.join(ROOT, '.keystone-venv') +VENV = os.path.join(ROOT, '.venv') PIP_REQUIRES = os.path.join(ROOT, 'tools', 'pip-requires') @@ -119,7 +119,7 @@ def print_help(): To activate the Keystone virtualenv for the extent of your current shell session you can run: - $ source .keystone-venv/bin/activate + $ source .venv/bin/activate Or, if you prefer, you can run commands in the virtualenv on a case by case basis by running: diff --git a/tools/with_venv.sh b/tools/with_venv.sh index 88532caeee..c8d2940fc7 100755 --- a/tools/with_venv.sh +++ b/tools/with_venv.sh @@ -1,4 +1,4 @@ #!/bin/bash TOOLS=`dirname $0` -VENV=$TOOLS/../.keystone-venv +VENV=$TOOLS/../.venv source $VENV/bin/activate && $@