init improvement

This commit is contained in:
YumengBao 2019-05-12 22:46:47 -07:00
parent d70bcbbf9f
commit edb81c5e76
6 changed files with 47 additions and 13 deletions

View File

@ -1,8 +1,9 @@
===============================
cyborg-tempest-plugin
===============================
=====================
Cyborg Tempest Plugin
=====================
This is a cyorg tempest plugin package. Tests can be run as a tempest plugin against any cyborg-enabled OpenStack cloud.
This is a cyorg tempest plugin package. Tests can be run as a tempest plugin
against any cyborg-enabled OpenStack cloud.
Please fill here a long description which must be at least 3 lines wrapped on
80 cols, so that distribution package maintainers can use it in their packages.

View File

@ -1,6 +0,0 @@
===============================================
Tempest Integration of Cyborg Tempest Plugin
===============================================
This directory contains Tempest tests to cover the Cyborg Tempest Plugin project.

View File

@ -2,4 +2,12 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=2.0 # Apache-2.0
pbr!=2.1.0,>=2.0.0 # Apache-2.0
oslo.config>=5.2.0 # Apache-2.0
six>=1.10.0 # MIT
oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
oslo.utils>=3.33.0 # Apache-2.0
testtools>=2.2.0 # MIT
testscenarios>=0.4 # Apache-2.0/BSD
tempest>=17.1.0 # Apache-2.0
requests>=2.14.2 # Apache-2.0

View File

@ -1,6 +1,6 @@
[metadata]
name = cyborg-tempest-plugin
summary = This is a cyorg tempest plugin package. Tests can be run as a tempest plugin against any cyborg-enabled OpenStack cloud.
summary = OpenStack Acceleration Tempest Plugin
description-file =
README.rst
author = OpenStack
@ -18,6 +18,10 @@ classifier =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
keywords =
setup
distutils
[files]
packages =
cyborg_tempest_plugin
@ -25,3 +29,20 @@ packages =
[entry_points]
tempest.test_plugins =
plugin_name = cyborg_tempest_plugin.plugin:CyborgTempestPlugin
[global]
setup-hooks =
pbr.hooks.setup_hook
[build_sphinx]
all_files = 1
build-dir = doc/build
source-dir = doc/source
[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0
[wheel]
universal = 1

View File

@ -9,3 +9,7 @@ python-subunit>=0.0.18 # Apache-2.0/BSD
oslotest>=1.10.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
testtools>=1.4.0 # MIT
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
openstackdocstheme>=1.18.1 # Apache-2.0
# releasenotes
reno>=2.5.0 # Apache-2.0

View File

@ -5,7 +5,7 @@ skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
@ -16,12 +16,15 @@ deps = -r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
[testenv:pep8]
basepython = python3
commands = flake8 {posargs}
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source cyborg-tempest-plugin --parallel-mode
@ -32,15 +35,18 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
basepython = python3
deps = {[testenv:docs]deps}
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}
[flake8]