Add py37 support
Change-Id: I7d25332619b98c269afd268ef379769088e0178f
This commit is contained in:
parent
9527c16a65
commit
4d0e93d3a5
@ -45,6 +45,8 @@
|
|||||||
- rally-tox-pep8
|
- rally-tox-pep8
|
||||||
- rally-tox-py27
|
- rally-tox-py27
|
||||||
- rally-tox-py35
|
- rally-tox-py35
|
||||||
|
- rally-tox-py36
|
||||||
|
- rally-tox-py37
|
||||||
- rally-tox-cover
|
- rally-tox-cover
|
||||||
- rally-docker-check
|
- rally-docker-check
|
||||||
- rally-task-simple-job
|
- rally-task-simple-job
|
||||||
@ -94,6 +96,8 @@
|
|||||||
- rally-tox-pep8
|
- rally-tox-pep8
|
||||||
- rally-tox-py27
|
- rally-tox-py27
|
||||||
- rally-tox-py35
|
- rally-tox-py35
|
||||||
|
- rally-tox-py36
|
||||||
|
- rally-tox-py37
|
||||||
- rally-tox-cover
|
- rally-tox-cover
|
||||||
- rally-docker-check
|
- rally-docker-check
|
||||||
- rally-task-simple-job
|
- rally-task-simple-job
|
||||||
|
@ -16,8 +16,19 @@ Changelog
|
|||||||
.. Release notes for existing releases are MUTABLE! If there is something that
|
.. Release notes for existing releases are MUTABLE! If there is something that
|
||||||
was missed or can be improved, feel free to change it!
|
was missed or can be improved, feel free to change it!
|
||||||
|
|
||||||
[unreleased] - 2018-07-20
|
unreleased
|
||||||
-------------------------
|
----------
|
||||||
|
|
||||||
|
Added
|
||||||
|
~~~~~
|
||||||
|
|
||||||
|
* Support Python 3.7 environment.
|
||||||
|
|
||||||
|
Changed
|
||||||
|
~~~~~~~
|
||||||
|
|
||||||
|
* Our requirements are updated as like upper-constraints (the list of
|
||||||
|
suggested tested versions to use)
|
||||||
|
|
||||||
Removed
|
Removed
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
@ -19,6 +19,8 @@ classifier =
|
|||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3.4
|
Programming Language :: Python :: 3.4
|
||||||
Programming Language :: Python :: 3.5
|
Programming Language :: Python :: 3.5
|
||||||
|
Programming Language :: Python :: 3.6
|
||||||
|
Programming Language :: Python :: 3.7
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import sys
|
||||||
import tokenize
|
import tokenize
|
||||||
|
|
||||||
import ddt
|
import ddt
|
||||||
@ -21,6 +22,14 @@ from tests.unit import test
|
|||||||
|
|
||||||
@ddt.ddt
|
@ddt.ddt
|
||||||
class HackingTestCase(test.TestCase):
|
class HackingTestCase(test.TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
super(HackingTestCase, self).setUp()
|
||||||
|
# NOTE(andreykurilin): the current implementation of our hacking
|
||||||
|
# rules with a magic method skip_ignored_lines fails due to
|
||||||
|
# https://www.python.org/dev/peps/pep-0479/ rule which is enabled
|
||||||
|
# on Python 3.7 env
|
||||||
|
if sys.version_info.major == 3 and sys.version_info.minor == 7:
|
||||||
|
self.skip("There is no need to check this at all envs.")
|
||||||
|
|
||||||
def test__parse_assert_mock_str(self):
|
def test__parse_assert_mock_str(self):
|
||||||
pos, method, obj = checks._parse_assert_mock_str(
|
pos, method, obj = checks._parse_assert_mock_str(
|
||||||
|
6
tox.ini
6
tox.ini
@ -1,7 +1,7 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
envlist = py35,py34,py27,pep8
|
envlist = py27,py34,py35,py36,py37,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
extras = {env:RALLY_EXTRAS:}
|
extras = {env:RALLY_EXTRAS:}
|
||||||
@ -42,6 +42,9 @@ basepython = python3.5
|
|||||||
[testenv:py36]
|
[testenv:py36]
|
||||||
basepython = python3.6
|
basepython = python3.6
|
||||||
|
|
||||||
|
[testenv:py37]
|
||||||
|
basepython = python3.7
|
||||||
|
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
@ -85,6 +88,7 @@ commands =
|
|||||||
|
|
||||||
[testenv:requirements]
|
[testenv:requirements]
|
||||||
deps = requests[security]
|
deps = requests[security]
|
||||||
|
install_command = pip install -U {opts} {packages}
|
||||||
commands = python {toxinidir}/tests/ci/sync_requirements.py {posargs}
|
commands = python {toxinidir}/tests/ci/sync_requirements.py {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
Loading…
Reference in New Issue
Block a user