Browse Source

dev env: add upper version constraint for isort to keep compatibility with python3.7 (has not reached end-of-life yet)

https://web.archive.org/web/20230203051620/https://github.com/PyCQA/isort/commit/47cedf3583f338e8ce9c906fc95c9fee6c57404d

https://github.com/fphammerle/python-manchester-code/commit/f174f7efcb41e22b7316211443752144e54205a0
Fabian Peter Hammerle 1 year ago
parent
commit
b258a2a893
2 changed files with 8 additions and 5 deletions
  1. 3 0
      Pipfile
  2. 5 5
      Pipfile.lock

+ 3 - 0
Pipfile

@@ -14,6 +14,9 @@ pylint-import-requirements = "*"
 pytest = "*"
 pytest-cov = "*"
 
+# python3.7 compatibility
+# https://github.com/PyCQA/isort/commit/47cedf3583f338e8ce9c906fc95c9fee6c57404d
+isort = "<5.12"
 # python3.10 compatibility
 # >   File "[...]/lib/python3.10/site-packages/mypy/main.py", line 11, in <module>
 # >     from typing_extensions import Final, NoReturn

+ 5 - 5
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "e1ff1d30aaa43b93c1283f98b64d65633e4d68ac63c5069f90529170e7455a37"
+            "sha256": "650ad09c6854592d745e3393b677497a4a6c5ecc32901fd4cc908f0edae89908"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -163,11 +163,11 @@
         },
         "isort": {
             "hashes": [
-                "sha256:6db30c5ded9815d813932c04c2f85a360bcdd35fed496f4d8f35495ef0a261b6",
-                "sha256:c033fd0edb91000a7f09527fe5c75321878f98322a77ddcc81adbd83724afb7b"
+                "sha256:6be1f76a507cb2ecf16c7cf14a37e41609ca082330be4e3436a18ef74add55db",
+                "sha256:ba1d72fb2595a01c7895a5128f9585a5cc4b6d395f1c8d514989b9a7eb2a8746"
             ],
-            "markers": "python_version >= '3.7'",
-            "version": "==5.11.4"
+            "index": "pypi",
+            "version": "==5.11.5"
         },
         "lazy-object-proxy": {
             "hashes": [