Browse Source

env: remove black's dependencies for python<3.6 to restore python3.4 compatibility

Fabian Peter Hammerle 3 years ago
parent
commit
b6e8a04cd8
2 changed files with 17 additions and 3 deletions
  1. 8 2
      Pipfile
  2. 9 1
      Pipfile.lock

+ 8 - 2
Pipfile

@@ -25,8 +25,6 @@ pytest-cov = "<2.9.0"
 # version constraints for python3.4 support:
 # https://github.com/PyCQA/astroid/commit/4a4b7faf9de8437f2b96bc7285802fd1230b7a9a
 astroid = "<2.3.0"
-# https://github.com/pallets/click/commit/35929957d81ab18a7bc0d75e850449f3f1068107#diff-2eeaed663bd0d25b7e608891384b7298R27
-click = {version = "*", markers="python_version >= '3.6'"}
 coverage = "<5"
 # https://gitlab.com/python-devs/importlib_metadata/commit/cf58e1a6515adc4ad6f84cce5e89cd5ef830b317
 importlib-metadata = "<1.2.0"
@@ -35,6 +33,14 @@ more-itertools = "<8"
 # https://github.com/jaraco/zipp/commit/05a3c52b4d41690e0471a2e283cffb500dc0329a
 zipp = "<2"
 
+# remove black's dependencies for python<3.6
+# https://github.com/pallets/click/commit/35929957d81ab18a7bc0d75e850449f3f1068107#diff-2eeaed663bd0d25b7e608891384b7298R27
+appdirs = {version = "*", markers="python_version >= '3.6'"}
+click = {version = "*", markers="python_version >= '3.6'"}
+pathspec = {version = "*", markers="python_version >= '3.6'"}
+regex = {version = "*", markers="python_version >= '3.6'"}
+toml = {version = "*", markers="python_version >= '3.6'"}
+
 # workaround https://github.com/pytest-dev/pytest/issues/3953
 pathlib2 = {version = "*", markers="python_version < '3.6'"}
 

+ 9 - 1
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "2bd0d1a66861b1efd09eb625b96c81351015ed8326654f39e1b69ab70e6e4e72"
+            "sha256": "9809fd607941e7d5dc9c7fe0ab42e116c4af07c2c486e0c59251b9f3e6703e1f"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -27,6 +27,8 @@
                 "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41",
                 "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"
             ],
+            "index": "pypi",
+            "markers": "python_version >= '3.6'",
             "version": "==1.4.4"
         },
         "astroid": {
@@ -181,6 +183,8 @@
                 "sha256:7d91249d21749788d07a2d0f94147accd8f845507400749ea19c1ec9054a12b0",
                 "sha256:da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061"
             ],
+            "index": "pypi",
+            "markers": "python_version >= '3.6'",
             "version": "==0.8.0"
         },
         "pluggy": {
@@ -260,6 +264,8 @@
                 "sha256:e9b64e609d37438f7d6e68c2546d2cb8062f3adb27e6336bc129b51be20773ac",
                 "sha256:fbff901c54c22425a5b809b914a3bfaf4b9570eee0e5ce8186ac71eb2025191c"
             ],
+            "index": "pypi",
+            "markers": "python_version >= '3.6'",
             "version": "==2020.6.8"
         },
         "six": {
@@ -274,6 +280,8 @@
                 "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f",
                 "sha256:bda89d5935c2eac546d648028b9901107a595863cb36bae0c73ac804a9b4ce88"
             ],
+            "index": "pypi",
+            "markers": "python_version >= '3.6'",
             "version": "==0.10.1"
         },
         "typed-ast": {