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
3bb8b51971
2 changed files with 5 additions and 2 deletions
  1. 3 0
      Pipfile
  2. 2 2
      Pipfile.lock

+ 3 - 0
Pipfile

@@ -24,6 +24,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

+ 2 - 2
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "5d5dd253572f594eea28620b00384fb809da02d7aa0346c238711f45c562d579"
+            "sha256": "a10f341a631fd4555c9e0171b298cda42f906b51dabe4da6d596eafe494606f7"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -292,7 +292,7 @@
                 "sha256:6db30c5ded9815d813932c04c2f85a360bcdd35fed496f4d8f35495ef0a261b6",
                 "sha256:c033fd0edb91000a7f09527fe5c75321878f98322a77ddcc81adbd83724afb7b"
             ],
-            "markers": "python_version >= '3.7'",
+            "index": "pypi",
             "version": "==5.11.4"
         },
         "lazy-object-proxy": {