Switch to using stestr

According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.

Also clean up requirements.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ic9317d0d2e71ffcc5012184510b554453a7e322f
Signed-off-by: Charles Short <zulcss@gmail.com>
This commit is contained in:
Charles Short
2018-06-01 08:56:46 -04:00
parent 749362a4cd
commit ff3520baa0
5 changed files with 8 additions and 5 deletions

1
.gitignore vendored
View File

@@ -17,3 +17,4 @@ monclient/versioninfo
.pydevproject .pydevproject
.project .project
.idea .idea
.stestr/

3
.stestr.conf Normal file
View File

@@ -0,0 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./monascaclient/tests}
top_dir=./

View File

@@ -10,7 +10,7 @@ oslo.utils>=3.33.0 # Apache-2.0
Babel!=2.4.0,>=2.3.4 # BSD Babel!=2.4.0,>=2.3.4 # BSD
iso8601>=0.1.11 # MIT iso8601>=0.1.11 # MIT
pbr!=2.1.0,>=2.0.0 # Apache-2.0 pbr!=2.1.0,>=2.0.0 # Apache-2.0
PrettyTable<0.8,>=0.7.1 # BSD PrettyTable<0.8,>=0.7.2 # BSD
PyYAML>=3.12 # MIT PyYAML>=3.12 # MIT
six>=1.10.0 # MIT six>=1.10.0 # MIT

View File

@@ -7,13 +7,13 @@ bandit>=1.1.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0
os-testr>=1.0.0 # Apache-2.0 stestr>=1.0.0
testrepository>=0.0.18 # Apache-2.0/BSD testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT testtools>=2.2.0 # MIT
# documentation # documentation
doc8>=0.6.0 # Apache-2.0 doc8>=0.6.0 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD
reno>=2.5.0 # Apache-2.0 reno>=2.5.0 # Apache-2.0
openstackdocstheme>=1.18.1 # Apache-2.0 openstackdocstheme>=1.18.1 # Apache-2.0

View File

@@ -20,8 +20,7 @@ whitelist_externals = bash
rm rm
commands = commands =
find {toxinidir} -type f -name "*.pyc" -delete find {toxinidir} -type f -name "*.pyc" -delete
rm -Rf {toxinidir}/.testrepository/times.dbm stestr run {posargs}
ostestr {posargs}
[testenv:cover] [testenv:cover]
basepython = python2.7 basepython = python2.7