jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/860479 )
Change subject: [tests] Update flake tests on jenkins CI ...................................................................... [tests] Update flake tests on jenkins CI several flake8 modules fails with new flake8 6.0.0 which needs Python 3.8.1. Jenkins CI does not reflect the right Python version. Therefore only add quotes check for Python < 3.8 which uses flake8 5.0.4. - Use flake8-quotes with Python < 3.8 only - Adjust flake8-quotes to >=3.3.0 - Adjust importlib-mtadata for Python < 3.8 - Test flake8 and hacking for the lowest and highest available Python Bug: T323799 Bug: T323752 Change-Id: Ia97370f5f0ca98261e04a0e6a8315feaf61400ca --- M setup.py M tox.ini 2 files changed, 29 insertions(+), 5 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/setup.py b/setup.py index f6ecef0..aac66f2 100755 --- a/setup.py +++ b/setup.py @@ -62,7 +62,9 @@ 'flake8-docstrings>=1.3.1', 'verve-flake8-mock>=0.4', 'flake8-print>=2.0.1', - 'flake8-quotes>=2.0.1', + # flake8-quotes is incompatible with flake8 6 (T323752), + # jenkins CI ignores "3.8.1" + 'flake8-quotes>=3.3.0; python_version < "3.8"', 'flake8-string-format', 'flake8-tuple>=0.2.8', 'flake8-no-u-prefixed-strings>=0.2', @@ -72,8 +74,8 @@ 'hacking': [ 'hacking', # importlib-metadata module already installed with hacking 4.1.0 - # but importlib-metadata 5.0.0 fails, so adjust it - 'importlib-metadata!=5.0.0', + # but importlib-metadata 5 fails, so adjust it + 'importlib-metadata<5.0.0; python_version < "3.8"', ], } diff --git a/tox.ini b/tox.ini index 69ebd75..4f85c2b 100644 --- a/tox.ini +++ b/tox.ini @@ -5,8 +5,8 @@ skip_missing_interpreters = True envlist = commit-message - flake8-{py39,py38,py36} - hacking-py37 + flake8-{py36,py39} + hacking-{py36,py39} [params] # gui needs tkinter @@ -28,6 +28,7 @@ PYWIKIBOT_TEST_RUNNING=1 usedevelop = True commands = + python --version flake8: flake8 --version flake8-py36: flake8 --doctests {posargs} {[params]exclude} flake8-py38: flake8 --doctests {posargs} -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/860479 To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: Ia97370f5f0ca98261e04a0e6a8315feaf61400ca Gerrit-Change-Number: 860479 Gerrit-PatchSet: 11 Gerrit-Owner: Xqt <i...@gno.de> Gerrit-Reviewer: JJMC89 <jjmc89.wikime...@gmail.com> Gerrit-Reviewer: Xqt <i...@gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-CC: Matěj Suchánek <matejsuchane...@gmail.com> Gerrit-MessageType: merged
_______________________________________________ Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org