summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2018-10-12 11:34:53 -0400
committerBen Caimano <ben.caimano@10gen.com>2018-10-15 15:51:42 -0400
commitafc927262eaa1ca4957a2fed5cfc7cb8c9e161f9 (patch)
tree1386602281345c8f0b8a976d49f0d0730f29e9e1 /etc
parent399135312416e5fd5e541246855bdb87fcedd6aa (diff)
downloadmongo-afc927262eaa1ca4957a2fed5cfc7cb8c9e161f9.tar.gz
SERVER-37588 Python linters version incompatability
Diffstat (limited to 'etc')
-rw-r--r--etc/evergreen.yml11
-rw-r--r--etc/pip/components/lint.req9
-rw-r--r--etc/pip/components/mypy.req4
-rw-r--r--etc/pip/constraints.txt18
4 files changed, 21 insertions, 21 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 256d978219b..d8d246a0625 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -4336,17 +4336,18 @@ tasks:
set -o verbose
${activate_virtualenv}
- python3 -m pip install -r etc/pip/lint-requirements.txt
- python2 -m pip install -r etc/pip/lint-requirements.txt
+ python3 -m pip install -I -r etc/pip/lint-requirements.txt
+ python2 -m pip install -I -r etc/pip/lint-requirements.txt
export MYPY="$(
- PATH+=':/opt/mongodbtoolchain/v2/bin'
if command -V cygpath 2>/dev/null; then
PATH+=":$(cypath "${workdir}")/venv_3/Scripts"
else
PATH+=":${workdir}/venv_3/bin"
fi
+ PATH+=':/opt/mongodbtoolchain/v2/bin'
which mypy
)"
+ echo "Found mypy executable at '$MYPY'"
${compile_env|} python2 ./buildscripts/scons.py ${compile_flags|} --stack-size=1024 lint
- name: verify_pip
@@ -4370,8 +4371,8 @@ tasks:
${activate_virtualenv}
# This installs the explicit project versions which would be installed in the toolchain
# from this patch
- python2 -m pip install -r etc/pip/constraints.txt
- python3 -m pip install -r etc/pip/constraints.txt
+ python2 -m pip install -I -r etc/pip/constraints.txt
+ python3 -m pip install -I -r etc/pip/constraints.txt
python2 -m pip freeze >requirements.txt.python2.old
python3 -m pip freeze >requirements.txt.python3.old
diff --git a/etc/pip/components/lint.req b/etc/pip/components/lint.req
index 74f244638b7..2b9ea36bc9d 100644
--- a/etc/pip/components/lint.req
+++ b/etc/pip/components/lint.req
@@ -1,6 +1,5 @@
# Linters
-pylint
-yapf
-# typing in Python 2 for mypy
-typing; python_version < "3"
-pydocstyle
+# Note: These versions are checked by python modules in buildscripts/linter/
+pylint == 1.9.3
+yapf == 0.21.0
+pydocstyle == 2.1.1
diff --git a/etc/pip/components/mypy.req b/etc/pip/components/mypy.req
index 16bd01c175c..fcf8ad90f2a 100644
--- a/etc/pip/components/mypy.req
+++ b/etc/pip/components/mypy.req
@@ -1 +1,3 @@
-mypy == 0.620; python_version > "3.4"
+# Note: This version is checked by python modules in buildscripts/linter/
+mypy == 0.580; python_version > "3.4"
+typing
diff --git a/etc/pip/constraints.txt b/etc/pip/constraints.txt
index 8176b262b8a..10dabb89676 100644
--- a/etc/pip/constraints.txt
+++ b/etc/pip/constraints.txt
@@ -6,9 +6,10 @@
# Common requirements
asn1crypto==0.24.0
-boto3==1.9.21
-botocore==1.12.21
-certifi==2018.8.24
+astroid==1.6.5
+boto3==1.9.23
+botocore==1.12.23
+certifi==2018.10.15
cffi==1.11.5
chardet==3.0.4
cryptography==2.3
@@ -28,6 +29,7 @@ psutil==5.4.7
pycparser==2.19
pydocstyle==2.1.1
PyJWT==1.6.4
+pylint==1.9.3
pymongo==3.5.1
python-dateutil==2.7.3
PyYAML==3.13
@@ -39,12 +41,12 @@ requests-toolbelt==0.8.0
s3transfer==0.1.13
six==1.11.0
snowballstemmer==1.2.1
+typing==3.6.6
urllib3==1.23
wrapt==1.10.11
-yapf==0.24.0
+yapf==0.21.0
# Python2 requirements
-astroid==1.6.5; python_version < "3"
backports.functools-lru-cache==1.5; python_version < "3"
Cheetah3==3.1.0; python_version < "3"
configparser==3.5.0; python_version < "3"
@@ -54,14 +56,10 @@ futures==3.2.0; python_version < "3"
ipaddress==1.0.22; python_version < "3"
mock==2.0.0; python_version < "3"
PyKMIP==0.4.0; python_version < "3"
-pylint==1.9.3; python_version < "3"
singledispatch==3.4.0.3; python_version < "3"
-typing==3.6.6; python_version < "3"
# Python3 requirements
-astroid==2.0.4; python_version > "3"
-mypy==0.620; python_version > "3"
-pylint==2.1.1; python_version > "3"
+mypy==0.580; python_version > "3"
typed-ast==1.1.0; python_version > "3"
# Platform-specific components