]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
global,tox.ini: add mypy-constrains.txt 41859/head
authorSebastian Wagner <sewagner@redhat.com>
Tue, 15 Jun 2021 10:10:36 +0000 (12:10 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Wed, 16 Jun 2021 10:37:46 +0000 (12:37 +0200)
let's avoid getting new versions of those packages by accident.
Unfortunately this means we have to manually update those
packages regurarly.

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
qa/tox.ini
src/cephadm/tox.ini
src/mypy-constrains.txt [new file with mode: 0644]
src/pybind/mgr/tox.ini
src/pybind/tox.ini
src/python-common/requirements.txt
src/python-common/tox.ini

index f8573a40326582666f1df2fc819ddef9aecfbee8..083f5c3bf5638dc0db418bd3937d964628814257 100644 (file)
@@ -11,7 +11,7 @@ commands=flake8 --select=F,E9 --exclude=venv,.tox
 [testenv:mypy]
 basepython = python3
 deps =
-  mypy==0.901
+  mypy
   types-boto
   types-requests
   types-jwt
@@ -19,6 +19,7 @@ deps =
   types-PyYAML
   types-cryptography
   types-python-dateutil
+  -c{toxinidir}/../src/mypy-constrains.txt
 commands = mypy {posargs:.}
 
 [testenv:import-tasks]
index 8c9422ac461820d831e166a96cea7158c89d76bd..c4c45365a90770e4eca780fd26e3a37e7a4c4fc9 100644 (file)
@@ -41,7 +41,9 @@ commands=pytest {posargs}
 
 [testenv:mypy]
 basepython = python3
-deps = mypy==0.901
+deps = 
+    mypy
+    -c{toxinidir}/../mypy-constrains.txt
 commands = mypy --config-file ../mypy.ini {posargs:cephadm}
 
 [testenv:fix]
diff --git a/src/mypy-constrains.txt b/src/mypy-constrains.txt
new file mode 100644 (file)
index 0000000..8851ed5
--- /dev/null
@@ -0,0 +1,19 @@
+# let's avoid getting new versions of those packages by accident. 
+# Unfortunately this means we have to manually update those 
+# packages regularly. 
+
+mypy==0.901
+
+# global
+types-python-dateutil==0.1.3
+types-requests==0.1.11
+types-jwt==0.1.3
+types-PyYAML==5.4.0
+
+# src/pybind
+types-backports==0.1.2
+
+# qa/
+types-boto==0.1.0
+types-cryptography==0.1.1
+types-paramiko==0.1.3
index d85ab66a276eb8de54e539022c037eea6ed49874..3181b6e97cb493fbade0e26ef4c50df76285dfe9 100644 (file)
@@ -58,7 +58,8 @@ basepython = python3
 deps =
     cython
     -rrequirements.txt
-    mypy==0.901
+    -c{toxinidir}/../../mypy-constrains.txt
+    mypy
     types-backports
     types-python-dateutil
     types-requests
index 9f06a78b40bd5c66d9274ae5709579264caf73f6..f5b778f65b253bc803b9e2016ce531c2888a5477 100644 (file)
@@ -7,7 +7,9 @@ skipsdist = true
 [testenv]
 
 [testenv:mypy]
-deps = mypy
+deps = 
+    mypy
+    -c{toxinidir}/../mypy-constrains.txt
 commands =
   python -m mypy --config-file ../mypy.ini \
     -m ceph_daemon \
index c30b80147040c9c2a8e73dce4e0926cde135180d..88b47310d678fb73eaeb93e347459525bc864a49 100644 (file)
@@ -1,8 +1,8 @@
 pytest >=2.1.3,<5; python_version < '3.5'
 mock; python_version < '3.3'
-mypy==0.901; python_version >= '3'
+mypy; python_version >= '3'
 pytest-mypy; python_version >= '3'
 pytest >= 2.1.3; python_version >= '3'
 pyyaml
 typing-extensions; python_version < '3.8'
-types-PyYAML
\ No newline at end of file
+types-PyYAML
index ce54d5a625f6b4e3f2927c0e9c9a71814f017954..32160a6383b89c0f2032a3b6fe2935314e8ad0fc 100644 (file)
@@ -5,6 +5,7 @@ skip_missing_interpreters = true
 [testenv:py3]
 deps=
     -rrequirements.txt
+    -c{toxinidir}/../mypy-constrains.txt
 commands=
     pytest --doctest-modules ceph/deployment/service_spec.py
     pytest {posargs}