From d4f6e55bd120f5ad03b9cb04bf8ebaadc15be5d0 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 8 Jul 2018 16:35:29 -0400 Subject: [PATCH] Add zuul jobs for gating Turns out that without jobs defined patches don't really do much of anything when submitted. Add some jobs. Also, since this is a new utility that is not in use yet, and the first use of it is on a bionic node anyway, just support python3.6. Change-Id: I46ab534768a35329a6b9325c43ebc048ebfb368c --- .zuul.yaml | 21 +++++++++++++++++++++ pbrx/cmd/main.py | 3 ++- tox.ini | 1 - 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .zuul.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..414f800 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,21 @@ +- project: + check: + jobs: + - tox-pep8 + - tox-py27 + - tox-py35 + - tox-py36: + nodeset: ubuntu-bionic + - build-sphinx-docs: + vars: + sphinx_python: python3 + gate: + jobs: + - tox-pep8 + - tox-py27 + - tox-py35 + - tox-py36: + nodeset: ubuntu-bionic + - build-sphinx-docs: + vars: + sphinx_python: python3 diff --git a/pbrx/cmd/main.py b/pbrx/cmd/main.py index 22a43ce..9afdde5 100644 --- a/pbrx/cmd/main.py +++ b/pbrx/cmd/main.py @@ -24,9 +24,10 @@ try: except ImportError: yaml = None +import pbr.version + from pbrx import containers from pbrx import siblings -import pbr.version log = logging.getLogger("pbrx") diff --git a/tox.ini b/tox.ini index e39a531..0277949 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,6 @@ usedevelop = True install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} setenv = VIRTUAL_ENV={envdir} - PYTHONWARNINGS=default::DeprecationWarning OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60