diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-03-29 14:06:06 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-03-31 22:44:32 +0800 |
commit | 9e4d243f1360158555fe92cc35fae6521bfdfce5 (patch) | |
tree | 1aa9c76d81292036a8ea4fc3e886d373da5bfa09 | |
parent | 7be99b40106a0c585f953f6506480a2524a7711a (diff) |
Reorganize requirements
- move test-requirements to ./requirements/test
- freeze requirements in ./requirements/frozen{,-test}.txt
- add necessary packages for requirements checking
Change-Id: I451e75bd0d9654ab37940336145cf3b4d0e365fe
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
-rw-r--r-- | requirements-frozen.txt | 10 | ||||
-rw-r--r-- | requirements-test.txt (renamed from test-requirements.txt) | 4 | ||||
-rw-r--r-- | requirements.txt | 8 | ||||
-rw-r--r-- | tox.ini | 5 |
4 files changed, 20 insertions, 7 deletions
diff --git a/requirements-frozen.txt b/requirements-frozen.txt new file mode 100644 index 00000000..0355eb3c --- /dev/null +++ b/requirements-frozen.txt @@ -0,0 +1,10 @@ +ansible==2.1.2.0 +click==6.7 +connexion==1.1.5 +Jinja2==2.9.5 +numpy==1.12.1 +paramiko==2.1.2 +pbr==2.0.0 +prettytable==0.7.2 +six==1.10.0 +PyYAML==3.12 diff --git a/test-requirements.txt b/requirements-test.txt index 24405245..1d627319 100644 --- a/test-requirements.txt +++ b/requirements-test.txt @@ -3,10 +3,10 @@ # process, which may cause wedges in the gate later. mock -pip_check_reqs pykwalify pytest pytest-cov pytest-faker pytest-mock -tox +pip_check_reqs +pipreqs diff --git a/requirements.txt b/requirements.txt index d00b3cf1..b0926b56 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,10 @@ +ansible click -pyyaml -paramiko connexion +Jinja2 numpy +paramiko pbr -ConfigParser prettytable +six +PyYAML @@ -12,7 +12,7 @@ usedevelop = True install_command = pip install -U {opts} {packages} deps = -rrequirements.txt - -rtest-requirements.txt + -rrequirements-test.txt commands= py.test \ --basetemp={envtmpdir} \ @@ -38,10 +38,11 @@ builtins = _ exclude = build,dist,doc,legacy,.eggs,.git,.tox,.venv [testenv:reqs] -deps=-rtest-requirements.txt +deps=-rrequirements/test.txt commands= pip-missing-reqs qtip pip-extra-reqs qtip + pipreqs qtip --savepath requirements-frozen.txt [pytest] testpaths = tests |