Hello community, here is the log from the commit of package python-gabbi for openSUSE:Factory checked in at 2019-03-15 10:52:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-gabbi (Old) and /work/SRC/openSUSE:Factory/.python-gabbi.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gabbi" Fri Mar 15 10:52:10 2019 rev:6 rq:685057 version:1.45.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-gabbi/python-gabbi.changes 2019-01-10 15:23:32.566317938 +0100 +++ /work/SRC/openSUSE:Factory/.python-gabbi.new.28833/python-gabbi.changes 2019-03-15 10:52:11.636972797 +0100 @@ -1,0 +2,6 @@ +Thu Mar 14 15:54:59 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Update to 1.45.0: + * * Adjust loading of YAML to be ready for new release of PyYAML. + +------------------------------------------------------------------- Old: ---- gabbi-1.44.0.tar.gz New: ---- gabbi-1.45.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gabbi.spec ++++++ --- /var/tmp/diff_new_pack.0WTzht/_old 2019-03-15 10:52:12.176972657 +0100 +++ /var/tmp/diff_new_pack.0WTzht/_new 2019-03-15 10:52:12.180972657 +0100 @@ -12,13 +12,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-gabbi -Version: 1.44.0 +Version: 1.45.0 Release: 0 Summary: Declarative HTTP testing library License: Apache-2.0 @@ -26,14 +26,14 @@ Url: https://github.com/cdent/gabbi Source: https://files.pythonhosted.org/packages/source/g/gabbi/gabbi-%{version}.tar.gz BuildRequires: %{python_module colorama} -BuildRequires: %{python_module jsonpath-rw-ext} +BuildRequires: %{python_module jsonpath-rw-ext >= 1.0.0} BuildRequires: %{python_module mock} BuildRequires: %{python_module pbr} BuildRequires: %{python_module pytest} BuildRequires: %{python_module stestr} -BuildRequires: %{python_module urllib3} -BuildRequires: %{python_module wsgi_intercept} -BuildRequires: python +BuildRequires: %{python_module urllib3 >= 1.11.0} +BuildRequires: %{python_module wsgi_intercept >= 1.2.2} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyYAML Requires: python-colorama @@ -62,6 +62,7 @@ %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/gabbi-run %post ++++++ gabbi-1.44.0.tar.gz -> gabbi-1.45.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/.travis.yml new/gabbi-1.45.0/.travis.yml --- old/gabbi-1.44.0/.travis.yml 2018-07-16 21:02:06.000000000 +0200 +++ new/gabbi-1.45.0/.travis.yml 2018-12-07 11:33:14.000000000 +0100 @@ -1,4 +1,5 @@ sudo: false +dist: xenial language: python services: # For Gnocchi @@ -26,27 +27,32 @@ - env: TOXENV=pep8 - env: TOXENV=py27-pytest - env: TOXENV=gnocchi - - env: TOXENV=placement - - python: 3.4 - env: TOXENV=py34 + - python: 3.7 + env: TOXENV=placement - python: pypy env: TOXENV=pypy + dist: trusty - python: pypy3 env: TOXENV=pypy3 + dist: trusty - python: 3.5 env: TOXENV=py35 - - python: 3.5 - env: TOXENV=py35-pytest - - python: 3.6 - env: TOXENV=py36-failskip - - python: 3.6 - env: TOXENV=py36-limit - - python: 3.6 - env: TOXENV=py36-prefix - python: 3.6 env: TOXENV=py36 + - python: 3.7 + env: TOXENV=py37 + - python: 3.5 + env: TOXENV=py35-pytest - python: 3.6 env: TOXENV=py36-pytest + - python: 3.7 + env: TOXENV=py37-pytest + - python: 3.7 + env: TOXENV=py37-failskip + - python: 3.7 + env: TOXENV=py37-limit + - python: 3.7 + env: TOXENV=py37-prefix notifications: irc: "chat.freenode.net#gabbi" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/ChangeLog new/gabbi-1.45.0/ChangeLog --- old/gabbi-1.44.0/ChangeLog 2018-07-16 21:51:34.000000000 +0200 +++ new/gabbi-1.45.0/ChangeLog 2019-03-05 23:19:34.000000000 +0100 @@ -1,27 +1,61 @@ CHANGES ======= +1.45.0 +------ + +* release 1.45.0 +* Make use of unsafe yaml forward compatible (#267) +* extracted placement (#265) +* Update testing to use python 3.7 +* Add test confirming $RESPONSE in data +* Tidy up sphinx references in docs +* Add installation instructions +* Tweak intro to be more concise and welcoming +* Fix the placement tox job +* Turn of uxsuccess validation in test harness + 1.44.0 ------ * release 1.44.0 * jsonhandler: allow reading yaml data from disk (#254) + +1.43.0 +------ + * Release 1.43.0 * read data from disk improvement (#251) * Block PyYAML above 4.0 for the time being * Formatting changes based on pylint and pep8 reviews * Switch to using stestr instead of testrepository + +1.42.1 +------ + * Relase 1.42.1 * Check for empty string as host in suitemaker * Apply skipIf decorator to test method instead of TestCase * update release notes + +1.42.0 +------ + * Release 1.42.0 * Allow listing of tests with no host configured * Use python3 when building releases + +1.41.0 +------ + * Release 1.41.0 * Improve the tests for handling numbers, fix a found bug * Avoid checking for <@ when data is not a string * Make it possible to use non-string $RESPONSE in data + +1.40.1 +------ + * Release 1.40.1 * Clean up warnings shown during testing * Tweak docstrings for disambiguation @@ -63,6 +97,10 @@ * Fix pytest handling of fixture-level skips * Minor pylint driven formtting cleanups * update release notes for 1.37.0 + +1.37.0 +------ + * Release 1.37.0 * Brief documentation for safe\_yaml=False * Allow to load python object from yaml @@ -943,8 +981,8 @@ * Initial commit of sphinx infrastructure * Automate test and build a bit more -v0.1.0 ------- +0.1.0 +----- * Extract classes to their own files * Add some docs to GabbiFixture diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/Makefile new/gabbi-1.45.0/Makefile --- old/gabbi-1.44.0/Makefile 2018-07-16 21:02:06.000000000 +0200 +++ new/gabbi-1.45.0/Makefile 2019-03-05 22:56:11.000000000 +0100 @@ -39,4 +39,5 @@ release: clean test cleanagain tagv pypi pypi: - python3 setup.py sdist bdist_wheel upload --sign + python3 setup.py sdist bdist_wheel + twine upload -s dist/* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/PKG-INFO new/gabbi-1.45.0/PKG-INFO --- old/gabbi-1.44.0/PKG-INFO 2018-07-16 21:51:34.000000000 +0200 +++ new/gabbi-1.45.0/PKG-INFO 2019-03-05 23:19:35.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: gabbi -Version: 1.44.0 +Version: 1.45.0 Summary: Declarative HTTP testing library Home-page: https://github.com/cdent/gabbi Author: Chris Dent @@ -28,7 +28,7 @@ See the docs_ for more details on the many features and formats for setting request headers and bodies and evaluating responses. - Gabbi is tested with Python 2.7, 3.4, 3.5, 3.6 and pypy. + Gabbi is tested with Python 2.7, 3.5, 3.6, 3.7 and pypy. Tests can be run using `unittest`_ style test runners, `pytest`_ or from the command line with a `gabbi-run`_ script. @@ -122,8 +122,8 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Topic :: Internet :: WWW/HTTP :: WSGI Classifier: Topic :: Software Development :: Testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/README.rst new/gabbi-1.45.0/README.rst --- old/gabbi-1.44.0/README.rst 2017-12-21 17:24:02.000000000 +0100 +++ new/gabbi-1.45.0/README.rst 2018-12-06 19:50:45.000000000 +0100 @@ -20,7 +20,7 @@ See the docs_ for more details on the many features and formats for setting request headers and bodies and evaluating responses. -Gabbi is tested with Python 2.7, 3.4, 3.5, 3.6 and pypy. +Gabbi is tested with Python 2.7, 3.5, 3.6, 3.7 and pypy. Tests can be run using `unittest`_ style test runners, `pytest`_ or from the command line with a `gabbi-run`_ script. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/docs/source/index.rst new/gabbi-1.45.0/docs/source/index.rst --- old/gabbi-1.44.0/docs/source/index.rst 2017-07-30 22:40:25.000000000 +0200 +++ new/gabbi-1.45.0/docs/source/index.rst 2018-10-04 16:38:30.000000000 +0200 @@ -25,25 +25,26 @@ .. highlight:: yaml Gabbi is a tool for running HTTP tests where requests and responses -are expressed as declarations in a collection of YAML files. The -simplest test looks like this:: +are expressed as declarations in YAML files:: tests: - - name: A test - GET: /api/resources/id + - name: retrieve items + GET: /items See the rest of these docs for more details on the many features and formats for setting request headers and bodies and evaluating responses. +Tests can be run from the command line with :doc:`gabbi-run <runner>` or +programmatically using either py.test or +:ref:`unittest <test_loaders>`-style test runners. See +:ref:`installation instructions <installation>` below. + The name is derived from "gabby": excessively talkative. In a test environment having visibility of what a test is actually doing is a good thing. This is especially true when the goal of a test is to test the HTTP, not the testing infrastructure. Gabbi tries to put the HTTP interaction in the foreground of testing. -Tests can be run using :ref:`unittest <test_loaders>` style test -runners or py.test or from the command line with a :doc:`gabbi-run <runner>` script. - If you want to get straight to creating tests look at :doc:`example`, the test files in the `source distribution`_ and :doc:`format`. A `gabbi-demo`_ repository provides a tutorial @@ -100,3 +101,38 @@ create YAML files and point them at a running server. .. _JSONPath: http://goessner.net/articles/JsonPath/ + +.. _installation: + +Installation +------------ + +As a Python package, gabbi is typically installed via pip:: + + pip install gabbi + +(both Python 2 and Python 3 are supported) + +You might want to create a virtual environment; an isolated context for +Python packages, keeping gabbi cleany separated from the rest of your +system. + +Python 3 comes with a built-in tool to create virtual environments:: + + python3 -m venv venv + . venv/bin/activate + + pip install gabbi + +Alternatively, with Python 2 we can use `virtualenv`_:: + + pip install virtualenv + virtualenv venv + . venv/bin/activate + + pip install gabbi + +This way we can later use ``deactivate`` and safely remove the ``venv`` +directory, thus erasing any trace of gabbi from the system. + +.. _virtualenv: https://virtualenv.pypa.io diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/docs/source/jsonpath.rst new/gabbi-1.45.0/docs/source/jsonpath.rst --- old/gabbi-1.44.0/docs/source/jsonpath.rst 2018-07-16 21:02:06.000000000 +0200 +++ new/gabbi-1.45.0/docs/source/jsonpath.rst 2018-10-04 16:38:30.000000000 +0200 @@ -1,3 +1,5 @@ +.. _jsonpath: + JSONPath ======== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/docs/source/release.rst new/gabbi-1.45.0/docs/source/release.rst --- old/gabbi-1.44.0/docs/source/release.rst 2018-07-16 21:30:38.000000000 +0200 +++ new/gabbi-1.45.0/docs/source/release.rst 2019-03-05 22:54:02.000000000 +0100 @@ -5,6 +5,11 @@ highlighting major features and changes. For more detail see the `commit logs`_ on GitHub. +1.45.0 +------ + +* Adjust loading of YAML to be ready for new release of PyYAML. + 1.44.0 ------ @@ -16,7 +21,7 @@ 1.43.0 ------ -* Use :ref:`JSONPath` to select a portion of data-on-disk in +* Use :ref:`jsonpath` to select a portion of data-on-disk in ``response_json_path`` checks. * Restrict PyYAML to ``<4.0``. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/gabbi/__init__.py new/gabbi-1.45.0/gabbi/__init__.py --- old/gabbi-1.44.0/gabbi/__init__.py 2018-07-16 21:28:50.000000000 +0200 +++ new/gabbi-1.45.0/gabbi/__init__.py 2019-03-05 22:53:05.000000000 +0100 @@ -12,4 +12,4 @@ # under the License. """See gabbi.driver and gabbbi.case.""" -__version__ = '1.44.0' +__version__ = '1.45.0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/gabbi/tests/gabbits_intercept/data.yaml new/gabbi-1.45.0/gabbi/tests/gabbits_intercept/data.yaml --- old/gabbi-1.44.0/gabbi/tests/gabbits_intercept/data.yaml 2017-07-30 22:40:25.000000000 +0200 +++ new/gabbi-1.45.0/gabbi/tests/gabbits_intercept/data.yaml 2018-11-02 10:47:48.000000000 +0100 @@ -72,3 +72,21 @@ response_json_paths: $.pets: <@pets.json $.pets[0]: <@cat.json + + - name: post data for next + POST: / + request_headers: + content-type: application/json + data: + pets: + type: cat + + - name: post data from prior response + POST: / + request_headers: + content-type: application/json + data: + pets: + type: $RESPONSE['$.pets.type'] + response_json_paths: + $.pets.type: cat diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/gabbi/tests/gabbits_intercept/self.yaml new/gabbi-1.45.0/gabbi/tests/gabbits_intercept/self.yaml --- old/gabbi-1.44.0/gabbi/tests/gabbits_intercept/self.yaml 2017-07-30 22:40:25.000000000 +0200 +++ new/gabbi-1.45.0/gabbi/tests/gabbits_intercept/self.yaml 2018-09-03 20:03:52.000000000 +0200 @@ -12,11 +12,6 @@ url: / verbose: True -- name: get simple page xfail uxsuccess - xfail: true - url: / - verbose: True - - name: inheritance of defaults response_headers: x-gabbi-url: $SCHEME://$NETLOC/cow?alpha=1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/gabbi/tests/test_history.py new/gabbi-1.45.0/gabbi/tests/test_history.py --- old/gabbi-1.44.0/gabbi/tests/test_history.py 2017-10-12 13:58:12.000000000 +0200 +++ new/gabbi-1.45.0/gabbi/tests/test_history.py 2018-12-06 19:50:45.000000000 +0100 @@ -13,6 +13,7 @@ """Test History Replacer. """ +import sys import unittest from gabbi import case @@ -120,7 +121,10 @@ cookie = self.test('test_request').replace_template( self.test.test_data, escape_regex=True) - self.assertEqual(r'/test\=cookie\?/', cookie) + if sys.version_info[:2] >= (3, 7): + self.assertEqual('/test=cookie\?/', cookie) + else: + self.assertEqual('/test\=cookie\?/', cookie) def test_cookie_replace_history(self): self.test.test_data = '$HISTORY["mytest"].$COOKIE' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/gabbi/utils.py new/gabbi-1.45.0/gabbi/utils.py --- old/gabbi-1.44.0/gabbi/utils.py 2018-07-16 21:02:06.000000000 +0200 +++ new/gabbi-1.45.0/gabbi/utils.py 2019-03-05 22:51:44.000000000 +0100 @@ -104,14 +104,14 @@ If no file or handle is provided, read from STDIN. """ - load = yaml.safe_load if safe else yaml.load + loader = yaml.SafeLoader if safe else yaml.Loader if yaml_file: with io.open(yaml_file, encoding='utf-8') as source: - return load(source.read()) + return yaml.load(source.read(), Loader=loader) # This will intentionally raise AttributeError if handle is None. - return load(handle.read()) + return yaml.load(handle.read(), Loader=loader) def not_binary(content_type): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/gabbi.egg-info/PKG-INFO new/gabbi-1.45.0/gabbi.egg-info/PKG-INFO --- old/gabbi-1.44.0/gabbi.egg-info/PKG-INFO 2018-07-16 21:51:34.000000000 +0200 +++ new/gabbi-1.45.0/gabbi.egg-info/PKG-INFO 2019-03-05 23:19:34.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: gabbi -Version: 1.44.0 +Version: 1.45.0 Summary: Declarative HTTP testing library Home-page: https://github.com/cdent/gabbi Author: Chris Dent @@ -28,7 +28,7 @@ See the docs_ for more details on the many features and formats for setting request headers and bodies and evaluating responses. - Gabbi is tested with Python 2.7, 3.4, 3.5, 3.6 and pypy. + Gabbi is tested with Python 2.7, 3.5, 3.6, 3.7 and pypy. Tests can be run using `unittest`_ style test runners, `pytest`_ or from the command line with a `gabbi-run`_ script. @@ -122,8 +122,8 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Topic :: Internet :: WWW/HTTP :: WSGI Classifier: Topic :: Software Development :: Testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/gabbi.egg-info/pbr.json new/gabbi-1.45.0/gabbi.egg-info/pbr.json --- old/gabbi-1.44.0/gabbi.egg-info/pbr.json 2018-07-16 21:51:34.000000000 +0200 +++ new/gabbi-1.45.0/gabbi.egg-info/pbr.json 2019-03-05 23:19:34.000000000 +0100 @@ -1 +1 @@ -{"git_version": "b773ea8", "is_release": true} \ No newline at end of file +{"git_version": "e46c096", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/gabbi.egg-info/requires.txt new/gabbi-1.45.0/gabbi.egg-info/requires.txt --- old/gabbi-1.44.0/gabbi.egg-info/requires.txt 2018-07-16 21:51:34.000000000 +0200 +++ new/gabbi-1.45.0/gabbi.egg-info/requires.txt 2019-03-05 23:19:34.000000000 +0100 @@ -1,7 +1,7 @@ pbr pytest six -PyYAML<4.0 +PyYAML urllib3>=1.11.0 jsonpath-rw-ext>=1.0.0 wsgi-intercept>=1.2.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/requirements.txt new/gabbi-1.45.0/requirements.txt --- old/gabbi-1.44.0/requirements.txt 2018-07-16 21:02:06.000000000 +0200 +++ new/gabbi-1.45.0/requirements.txt 2019-03-05 22:51:44.000000000 +0100 @@ -1,7 +1,7 @@ pbr pytest six -PyYAML<4.0 +PyYAML urllib3>=1.11.0 jsonpath-rw-ext>=1.0.0 wsgi-intercept>=1.2.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/setup.cfg new/gabbi-1.45.0/setup.cfg --- old/gabbi-1.44.0/setup.cfg 2018-07-16 21:51:34.000000000 +0200 +++ new/gabbi-1.45.0/setup.cfg 2019-03-05 23:19:35.000000000 +0100 @@ -16,9 +16,9 @@ Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 - Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 Topic :: Internet :: WWW/HTTP :: WSGI Topic :: Software Development :: Testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/test-failskip.sh new/gabbi-1.45.0/test-failskip.sh --- old/gabbi-1.44.0/test-failskip.sh 2018-07-16 21:02:06.000000000 +0200 +++ new/gabbi-1.45.0/test-failskip.sh 2018-09-03 20:03:52.000000000 +0200 @@ -9,15 +9,14 @@ FAILS=12 -GREP_FAIL_MATCH="expected failures=$FAILS," +GREP_FAIL_MATCH="expected failures=$FAILS" GREP_SKIP_MATCH="skipped=$SKIP," -GREP_UXSUC_MATCH='unexpected successes=1' # This skip is always 2 because the pytest tests don't # run the live tests. PYTEST_MATCH="$SKIP skipped, $FAILS xfailed" stestr run && \ - for match in "${GREP_FAIL_MATCH}" "${GREP_UXSUC_MATCH}" "${GREP_SKIP_MATCH}"; do + for match in "${GREP_FAIL_MATCH}" "${GREP_SKIP_MATCH}"; do stestr last --subunit | subunit2pyunit 2>&1 | \ grep "${match}" done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gabbi-1.44.0/tox.ini new/gabbi-1.45.0/tox.ini --- old/gabbi-1.44.0/tox.ini 2018-07-16 21:43:36.000000000 +0200 +++ new/gabbi-1.45.0/tox.ini 2018-12-07 11:33:14.000000000 +0100 @@ -1,8 +1,7 @@ [tox] minversion = 1.6 skipsdist = True -#envlist = py27,py34,py35,py36,pypy,pep8,limit,failskip,docs,py36-prefix,py36-limit,py36-failskip,py27-pytest,py35-pytest,py36-pytest -envlist = py27,py36,pypy,pep8,limit,failskip,docs,py36-prefix,py36-limit,py36-failskip,py27-pytest,py36-pytest +envlist = py27,py35,py36,py37,pypy,pep8,limit,failskip,docs,py37-prefix,py37-limit,py37-failskip,py27-pytest,py35-pytest,py36-pytest,py37-pytest [testenv] deps = -r{toxinidir}/requirements.txt @@ -74,14 +73,15 @@ tox -e py27-postgresql-file gabbi [testenv:placement] -basepython = python2.7 +basepython = python3.7 deps = tox commands = -mkdir {envdir}/src -rm -r {envdir}/src/* - bash -c "curl https://tarballs.openstack.org/nova/nova-master.tar.gz | tar -C {envdir}/src -zxv --strip-components 1 -f - " - tox -c {envdir}/src -e functional --notest # ensure a virtualenv is built - {envdir}/src/.tox/functional/bin/pip install -U {toxinidir} # install gabbi - tox -c {envdir}/src -e functional test_placement_api + bash -c "curl https://tarballs.openstack.org/placement/placement-master.tar.gz | tar -C {envdir}/src -zx --strip-components 1 -f - " + tox -c {envdir}/src -e functional-py37 --notest # ensure a virtualenv is built + # nova shares tox envs so it's just luck that we know the tox dir is different from name + {envdir}/src/.tox/py37/bin/pip install -U {toxinidir} # install gabbi + tox -c {envdir}/src -e functional-py37 test_api whitelist_externals = mkdir curl
