Fix lower-constraints job
* bump lower-constraint for cassandra-driver version to 3.3.0 * add cassandra-driver and influxdb to extras * execute lower-constraints job with python 2.7 * move common commands to [testenv] * fix lower-constraint for sphinx * add funcsigs to lower-constraints.txt Depends-On: https://review.openstack.org/555402 Change-Id: Idc2351e597ce933fa5c83a6c872ae241ce4b0220
This commit is contained in:
5
AUTHORS
5
AUTHORS
@@ -11,6 +11,7 @@ Bertrand Lallau <bertrand.lallau@thalesgroup.com>
|
|||||||
Boris Bobrov <bbobrov@suse.com>
|
Boris Bobrov <bbobrov@suse.com>
|
||||||
Brad Klein <bradley.klein@twcable.com>
|
Brad Klein <bradley.klein@twcable.com>
|
||||||
Cao Xuan Hoang <hoangcx@vn.fujitsu.com>
|
Cao Xuan Hoang <hoangcx@vn.fujitsu.com>
|
||||||
|
Chandan Kumar <chkumar@redhat.com>
|
||||||
Christoph Held <christoph.held@est.fujitsu.com>
|
Christoph Held <christoph.held@est.fujitsu.com>
|
||||||
Clenimar Filemon <clenimar.filemon@gmail.com>
|
Clenimar Filemon <clenimar.filemon@gmail.com>
|
||||||
Craig Bryant <craig.bryant@hp.com>
|
Craig Bryant <craig.bryant@hp.com>
|
||||||
@@ -27,6 +28,7 @@ Derrick Johnson <johnson.derrick@gmail.com>
|
|||||||
Dexter Fryar <dexter.fryar@outlook.com>
|
Dexter Fryar <dexter.fryar@outlook.com>
|
||||||
Dirk Mueller <dirk@dmllr.de>
|
Dirk Mueller <dirk@dmllr.de>
|
||||||
Dobroslaw Zybort <dobroslaw.zybort@ts.fujitsu.com>
|
Dobroslaw Zybort <dobroslaw.zybort@ts.fujitsu.com>
|
||||||
|
Doug Hellmann <doug@doughellmann.com>
|
||||||
Emma Foley <emma.l.foley@intel.com>
|
Emma Foley <emma.l.foley@intel.com>
|
||||||
Erickson Santos <erickson@lsd.ufcg.edu.br>
|
Erickson Santos <erickson@lsd.ufcg.edu.br>
|
||||||
Flavio Percoco <flaper87@gmail.com>
|
Flavio Percoco <flaper87@gmail.com>
|
||||||
@@ -59,6 +61,7 @@ Matteus Silva <silvamatteus@lsd.ufcg.edu.br>
|
|||||||
Michael Bielinski <michael.bielinski@hp.com>
|
Michael Bielinski <michael.bielinski@hp.com>
|
||||||
Michael James Hoppal <michael.jam.hoppal@hp.com>
|
Michael James Hoppal <michael.jam.hoppal@hp.com>
|
||||||
Michal Zielonka <michal.zielonka@ts.fujitsu.com>
|
Michal Zielonka <michal.zielonka@ts.fujitsu.com>
|
||||||
|
Monasca CI <aadams@hpe.com>
|
||||||
Monty Taylor <mordred@inaugust.com>
|
Monty Taylor <mordred@inaugust.com>
|
||||||
Nam Nguyen Hoai <namnh@vn.fujitsu.com>
|
Nam Nguyen Hoai <namnh@vn.fujitsu.com>
|
||||||
OpenStack Release Bot <infra-root@openstack.org>
|
OpenStack Release Bot <infra-root@openstack.org>
|
||||||
@@ -90,6 +93,7 @@ ZhiQiang Fan <aji.zqfan@gmail.com>
|
|||||||
Zuul <zuul@review.openstack.org>
|
Zuul <zuul@review.openstack.org>
|
||||||
alpineriveredge <alpineriveredge@gmail.com>
|
alpineriveredge <alpineriveredge@gmail.com>
|
||||||
anilkumarthovi <anilkumar.thovi@cognizant.com>
|
anilkumarthovi <anilkumar.thovi@cognizant.com>
|
||||||
|
bandorf <matthias.bandorf@est.fujitsu.com>
|
||||||
bklei <bradley.klein@twcable.com>
|
bklei <bradley.klein@twcable.com>
|
||||||
cindy oneill <cindy.o-neill@hp.com>
|
cindy oneill <cindy.o-neill@hp.com>
|
||||||
dieterly <deklan.dieterly@hpe.com>
|
dieterly <deklan.dieterly@hpe.com>
|
||||||
@@ -112,3 +116,4 @@ raymondr <raymondr@users.noreply.github.com>
|
|||||||
roland-hochmuth <roland.hochmuth@hpe.com>
|
roland-hochmuth <roland.hochmuth@hpe.com>
|
||||||
satsuki_fukazu <fukazu.satsuki@po.ntts.co.jp>
|
satsuki_fukazu <fukazu.satsuki@po.ntts.co.jp>
|
||||||
venkatamahesh <venkatamaheshkotha@gmail.com>
|
venkatamahesh <venkatamaheshkotha@gmail.com>
|
||||||
|
wangqi <wang.qi@99cloud.net>
|
||||||
|
@@ -5,7 +5,7 @@ asn1crypto==0.23.0
|
|||||||
Babel==2.3.4
|
Babel==2.3.4
|
||||||
bandit==1.4.0
|
bandit==1.4.0
|
||||||
bashate==0.5.1
|
bashate==0.5.1
|
||||||
cassandra-driver==2.1.4
|
cassandra-driver==3.3.0
|
||||||
cffi==1.7.0
|
cffi==1.7.0
|
||||||
chardet==3.0.4
|
chardet==3.0.4
|
||||||
cliff==2.8.0
|
cliff==2.8.0
|
||||||
@@ -23,6 +23,7 @@ falcon==1.0.0
|
|||||||
fasteners==0.7.0
|
fasteners==0.7.0
|
||||||
fixtures==3.0.0
|
fixtures==3.0.0
|
||||||
flake8==2.5.5
|
flake8==2.5.5
|
||||||
|
funcsigs==1.0.0
|
||||||
future==0.16.0
|
future==0.16.0
|
||||||
futures==3.0.0
|
futures==3.0.0
|
||||||
gevent==1.2.2
|
gevent==1.2.2
|
||||||
@@ -97,7 +98,7 @@ rfc3986==0.3.1
|
|||||||
six==1.10.0
|
six==1.10.0
|
||||||
smmap==0.9.0
|
smmap==0.9.0
|
||||||
snowballstemmer==1.2.1
|
snowballstemmer==1.2.1
|
||||||
Sphinx==1.6.5
|
sphinx==1.6.2
|
||||||
sphinxcontrib-websupport==1.0.1
|
sphinxcontrib-websupport==1.0.1
|
||||||
SQLAlchemy==1.0.10
|
SQLAlchemy==1.0.10
|
||||||
sqlalchemy-migrate==0.11.0
|
sqlalchemy-migrate==0.11.0
|
||||||
|
@@ -26,6 +26,12 @@ data_files =
|
|||||||
etc/api-logging.conf
|
etc/api-logging.conf
|
||||||
etc/api-config.ini
|
etc/api-config.ini
|
||||||
|
|
||||||
|
[extras]
|
||||||
|
influxdb =
|
||||||
|
influxdb>=2.9.2 # MIT
|
||||||
|
cassandra =
|
||||||
|
cassandra-driver!=3.6.0,>=3.3.0 # Apache-2.0
|
||||||
|
|
||||||
[entry_points]
|
[entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
monasca-api = monasca_api.api.server:launch
|
monasca-api = monasca_api.api.server:launch
|
||||||
|
@@ -7,7 +7,7 @@ bashate>=0.5.1 # Apache-2.0
|
|||||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
||||||
Babel!=2.4.0,>=2.3.4 # BSD
|
Babel!=2.4.0,>=2.3.4 # BSD
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
cassandra-driver!=3.6.0,>=2.1.4 # Apache-2.0
|
cassandra-driver!=3.6.0,>=3.3.0 # Apache-2.0
|
||||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
httplib2>=0.9.1 # MIT
|
httplib2>=0.9.1 # MIT
|
||||||
influxdb>=2.9.2 # MIT
|
influxdb>=2.9.2 # MIT
|
||||||
|
30
tox.ini
30
tox.ini
@@ -15,42 +15,30 @@ deps =
|
|||||||
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
|
.[influxdb,cassandra]
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
find
|
find
|
||||||
rm
|
rm
|
||||||
commands =
|
commands =
|
||||||
find . -type f -name "*.pyc" -delete
|
find . -type f -name "*.pyc" -delete
|
||||||
|
|
||||||
[testenv:py27]
|
|
||||||
basepython = python2.7
|
|
||||||
commands =
|
|
||||||
{[testenv]commands}
|
|
||||||
ostestr {posargs}
|
|
||||||
|
|
||||||
[testenv:py35]
|
|
||||||
basepython = python3.5
|
|
||||||
commands =
|
|
||||||
{[testenv]commands}
|
|
||||||
ostestr {posargs}
|
ostestr {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
commands =
|
commands =
|
||||||
{[testenv]commands}
|
|
||||||
coverage erase
|
coverage erase
|
||||||
python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monasca_api --omit=monasca_api/hacking/*
|
python setup.py test --coverage --testr-args='{posargs}' \
|
||||||
|
--coverage-package-name=monasca_api --omit=monasca_api/hacking/*
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands =
|
commands =
|
||||||
{[testenv]commands}
|
|
||||||
oslo_debug_helper -t ./monasca_api/tests {posargs}
|
oslo_debug_helper -t ./monasca_api/tests {posargs}
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
skip_install = True
|
skip_install = True
|
||||||
usedevelop = False
|
usedevelop = False
|
||||||
commands =
|
commands =
|
||||||
{[testenv]commands}
|
|
||||||
flake8 monasca_api
|
flake8 monasca_api
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
@@ -84,13 +72,15 @@ description = Called from CI scripts to test and publish the API Ref
|
|||||||
commands =
|
commands =
|
||||||
rm -rf api-ref/build
|
rm -rf api-ref/build
|
||||||
{[testenv:checkjson]commands}
|
{[testenv:checkjson]commands}
|
||||||
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
sphinx-build -W -b html -d api-ref/build/doctrees \
|
||||||
|
api-ref/source api-ref/build/html
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
description = Called from CI script to test and publish the Release Notes
|
description = Called from CI script to test and publish the Release Notes
|
||||||
commands =
|
commands =
|
||||||
rm -rf releasenotes/build
|
rm -rf releasenotes/build
|
||||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html \
|
||||||
|
releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[testenv:devdocs]
|
[testenv:devdocs]
|
||||||
description = Builds developer documentation
|
description = Builds developer documentation
|
||||||
@@ -120,7 +110,8 @@ whitelist_externals =
|
|||||||
bash
|
bash
|
||||||
commands =
|
commands =
|
||||||
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
|
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
|
||||||
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
|
bash -c '! find doc/ -type f -name *.json | \
|
||||||
|
xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
description = Generates sample configuration file for monasca-api
|
description = Generates sample configuration file for monasca-api
|
||||||
@@ -156,8 +147,9 @@ import_exceptions =
|
|||||||
six.moves
|
six.moves
|
||||||
|
|
||||||
[testenv:lower-constraints]
|
[testenv:lower-constraints]
|
||||||
basepython = python3
|
basepython = python2
|
||||||
deps =
|
deps =
|
||||||
-c{toxinidir}/lower-constraints.txt
|
-c{toxinidir}/lower-constraints.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
|
.[influxdb,cassandra]
|
||||||
|
Reference in New Issue
Block a user