diff options
author | Carlos D. Garza <carlos.garza@rackspace.com> | 2013-05-24 17:51:31 -0500 |
---|---|---|
committer | Carlos D. Garza <carlos.garza@rackspace.com> | 2013-05-24 17:55:05 -0500 |
commit | 2bc22ef6f7e21701188eb97376d15c8f57a56881 (patch) | |
tree | 0e90773ea7454a3799c2391f3911280bbd083f51 | |
parent | af4e96986f6ee45e9e4ccac0b143902362a1a676 (diff) | |
download | keystone-2bc22ef6f7e21701188eb97376d15c8f57a56881.tar.gz keystone-2bc22ef6f7e21701188eb97376d15c8f57a56881.tar.xz keystone-2bc22ef6f7e21701188eb97376d15c8f57a56881.zip |
Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files, and tools in the
general world are growing intelligence about them.
Fixes: bug #1179008
Change-Id: I1a19f0c73ab48987e2ff0dade1a57a68b65f0a22
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | doc/source/installing.rst | 2 | ||||
-rw-r--r-- | doc/source/setup.rst | 8 | ||||
-rw-r--r-- | requirements.txt (renamed from tools/pip-requires) | 0 | ||||
-rwxr-xr-x | run_tests.sh | 2 | ||||
-rw-r--r-- | test-requirements.txt (renamed from tools/test-requires) | 0 | ||||
-rw-r--r-- | tools/install_venv.py | 4 | ||||
-rw-r--r-- | tox.ini | 4 |
8 files changed, 10 insertions, 11 deletions
@@ -18,7 +18,6 @@ doc/build doc/source/modules.rst doc/source/keystone.* ChangeLog -requirements.txt AUTHORS build/ dist/ diff --git a/doc/source/installing.rst b/doc/source/installing.rst index eeb4158b..dff824f1 100644 --- a/doc/source/installing.rst +++ b/doc/source/installing.rst @@ -49,7 +49,7 @@ Clone the keystone repository:: Install the dependencies to run keystone:: - sudo pip install -r tools/pip-requires + sudo pip install -r requirements.txt And at this point, you should have all the pieces you need to run keystone installed on your system. The following commands should be available on the diff --git a/doc/source/setup.rst b/doc/source/setup.rst index 35727222..cc6762c8 100644 --- a/doc/source/setup.rst +++ b/doc/source/setup.rst @@ -66,8 +66,8 @@ Installing dependencies Keystone maintains two lists of dependencies:: - tools/pip-requires - tools/test-requires + requirements.txt + test-requirements.txt The first is the list of dependencies needed for running keystone, the second list includes dependencies used for active development and testing of keystone itself. @@ -124,10 +124,10 @@ If you want to run keystone outside of a virtualenv, you can install the dependencies directly into your system from the requires files:: # Install the dependencies for running keystone - $ pip install -r tools/pip-requires + $ pip install -r requirements.txt # Install the dependencies for developing, testing, and running keystone - $ pip install -r tools/test-requires + $ pip install -r test-requirements.txt # Use python setup.py to link Keystone into python's site-packages $ python setup.py develop diff --git a/tools/pip-requires b/requirements.txt index af5d2831..af5d2831 100644 --- a/tools/pip-requires +++ b/requirements.txt diff --git a/run_tests.sh b/run_tests.sh index baba4f4b..f9193b68 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -129,7 +129,7 @@ function run_pep8 { echo "Running pep8 ..." # Opt-out files from pep8 ignore_scripts="*.pyc,*.pyo,*.sh,*.swp,*.rst" - ignore_files="*pip-requires" + ignore_files="*.txt" ignore_dirs=".venv,.tox,dist,doc,openstack,vendor,*egg" ignore="$ignore_scripts,$ignore_files,$ignore_dirs" srcfiles="." diff --git a/tools/test-requires b/test-requirements.txt index 936eb90c..936eb90c 100644 --- a/tools/test-requires +++ b/test-requirements.txt diff --git a/tools/install_venv.py b/tools/install_venv.py index 05a999be..136988f6 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -54,8 +54,8 @@ def print_help(): def main(argv): root = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) venv = os.path.join(root, '.venv') - pip_requires = os.path.join(root, 'tools', 'pip-requires') - test_requires = os.path.join(root, 'tools', 'test-requires') + pip_requires = os.path.join(root, 'requirements.txt') + test_requires = os.path.join(root, 'test-requirements.txt') py_version = "python%s.%s" % (sys.version_info[0], sys.version_info[1]) project = 'Keystone' install = install_venv.InstallVenv(root, venv, pip_requires, test_requires, @@ -10,8 +10,8 @@ setenv = VIRTUAL_ENV={envdir} NOSE_OPENSTACK_YELLOW=0.025 NOSE_OPENSTACK_SHOW_ELAPSED=1 NOSE_OPENSTACK_STDOUT=1 -deps = -r{toxinidir}/tools/pip-requires - -r{toxinidir}/tools/test-requires +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt commands = nosetests {posargs} [testenv:pep8] |