Browse Source

dev env: manually add astroid's dependency `typing_extension` to fix pipelines for python<3.10

Fabian Peter Hammerle 2 years ago
parent
commit
ea60e04b3c
2 changed files with 15 additions and 1 deletions
  1. 5 0
      Pipfile
  2. 10 1
      Pipfile.lock

+ 5 - 0
Pipfile

@@ -13,6 +13,11 @@ pylint = "*"
 
 # python<3.8 compatibility
 importlib-metadata = "*"
+# workaround for python<3.10
+# >    File "[...]/python3.9/site-packages/astroid/decorators.py", line 36, in <module>
+# >     from typing_extensions import ParamSpec
+# > ModuleNotFoundError: No module named 'typing_extensions'
+typing_extensions = {markers = "python_version < '3.10'"}
 
 [requires]
 python_version = "3"

+ 10 - 1
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "bbddb253fb65690ced3d2c353e689db35f0d09bd4c47fb19441a218af34e57c6"
+            "sha256": "3ade6a8982a5c9ba3034a34bf863c1fdc1bc977a79b01521df9181a214e6f3eb"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -243,6 +243,15 @@
             ],
             "version": "==1.2.2"
         },
+        "typing-extensions": {
+            "hashes": [
+                "sha256:2cdf80e4e04866a9b3689a51869016d36db0814d84b8d8a568d22781d45d27ed",
+                "sha256:829704698b22e13ec9eaf959122315eabb370b0884400e9818334d8b677023d9"
+            ],
+            "index": "pypi",
+            "markers": "python_version < '3.10'",
+            "version": "==4.0.0"
+        },
         "wrapt": {
             "hashes": [
                 "sha256:086218a72ec7d986a3eddb7707c8c4526d677c7b35e355875a0fe2918b059179",