From 47846a7a6320b424a50571e4d35595644d9ce133 Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Thu, 30 May 2013 13:36:22 +0800 Subject: [PATCH] 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: I6f8a11988982133249d443403f63b4f8724e156e --- tools/pip-requires => requirements.txt | 0 tools/test-requires => test-requirements.txt | 0 tools/install_venv.py | 4 ++-- tools/patch_tox_venv.py | 4 ++-- tox.ini | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) rename tools/pip-requires => requirements.txt (100%) rename tools/test-requires => test-requirements.txt (100%) diff --git a/tools/pip-requires b/requirements.txt similarity index 100% rename from tools/pip-requires rename to requirements.txt diff --git a/tools/test-requires b/test-requirements.txt similarity index 100% rename from tools/test-requires rename to test-requirements.txt diff --git a/tools/install_venv.py b/tools/install_venv.py index ddb3d82c1e5..eda0ced903b 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -56,8 +56,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 = 'Quantum' install = install_venv.InstallVenv(root, venv, pip_requires, test_requires, diff --git a/tools/patch_tox_venv.py b/tools/patch_tox_venv.py index 5f09939cfab..01ea05afb17 100644 --- a/tools/patch_tox_venv.py +++ b/tools/patch_tox_venv.py @@ -25,8 +25,8 @@ def main(argv): venv = os.environ['VIRTUAL_ENV'] - 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 = 'quantum' install = install_venv.InstallVenv(root, venv, pip_requires, test_requires, diff --git a/tox.ini b/tox.ini index d266c7b253c..3c4320ea927 100644 --- a/tox.ini +++ b/tox.ini @@ -3,8 +3,8 @@ envlist = py26,py27,pep8 [testenv] setenv = VIRTUAL_ENV={envdir} -deps = -r{toxinidir}/tools/pip-requires - -r{toxinidir}/tools/test-requires +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt setuptools_git>=0.4 commands = python tools/patch_tox_venv.py