Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/835084 )

Change subject: [bugfix] Fix flake8 requirement
......................................................................

[bugfix] Fix flake8 requirement

Change-Id: Ie401f94cedfae8b3fe159c494fe8ae88234878ea
---
M dev-requirements.txt
M setup.py
2 files changed, 4 insertions(+), 2 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Verified; Looks good to me, approved



diff --git a/dev-requirements.txt b/dev-requirements.txt
index a90a4b5..922ee40 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -16,7 +16,8 @@
 pytest-httpbin

 pydocstyle>=4.0.0
-flake8>=5.0.2; python_version >= "3.6"
+flake8==3.9.2; python_version < "3.6.1"
+flake8>=5.0.2; python_version >= "3.6.1"
 flake8-docstrings>=0.2.6
 flake8-isort;python_version>="3.6"
 verve-flake8-mock>=0.4
diff --git a/setup.py b/setup.py
index 0f646a1..d276576 100755
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,8 @@
     'html': ['BeautifulSoup4'],
     'http': ['fake_useragent'],
     'flake8': [  # Due to incompatibilities between packages the order matters.
-        'flake8>=5.0.2',
+        'flake8==3.9.2; python_version < "3.6.1"',
+        'flake8>=5.0.2; python_version >= "3.6.1"',
         'darglint',
         'pydocstyle>=4.0.0',
         'flake8-bugbear!=21.4.1,!=21.11.28',

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/835084
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: Ie401f94cedfae8b3fe159c494fe8ae88234878ea
Gerrit-Change-Number: 835084
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to