File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
repo2docker/buildpacks/python Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -53,19 +53,17 @@ def python_version(self):
5353 "requires-python"
5454 ]
5555
56- match = re .compile (r"\d+(\.\d+)*" ).match (raw_pyproject_minimum_version )
56+ match = re .compile (r"\d+(\.\d+)*" ).match (
57+ raw_pyproject_minimum_version
58+ )
5759 if match :
5860 pyproject_minimum_version = match .group ()
59- pyproject_minimum_version_info = pyproject_minimum_version . split (
60- "."
61+ pyproject_minimum_version_info = (
62+ pyproject_minimum_version . split ( "." )
6163 )
6264
63- if (
64- py_version_info [0 ]
65- < pyproject_minimum_version_info [0 ]
66- ) or (
67- py_version_info [1 ]
68- < pyproject_minimum_version_info [1 ]
65+ if (py_version_info [0 ] < pyproject_minimum_version_info [0 ]) or (
66+ py_version_info [1 ] < pyproject_minimum_version_info [1 ]
6967 ):
7068 raise RuntimeError (
7169 "runtime.txt version not supported by pyproject.toml."
@@ -166,7 +164,9 @@ def get_assemble_scripts(self):
166164
167165 for _configuration_file in ("pyproject.toml" , "setup.py" ):
168166 if not self .binder_dir and os .path .exists (_configuration_file ):
169- assemble_scripts .append (("${NB_USER}" , f"{ pip } install --no-cache-dir ." ))
167+ assemble_scripts .append (
168+ ("${NB_USER}" , f"{ pip } install --no-cache-dir ." )
169+ )
170170 break
171171
172172 return assemble_scripts
You can’t perform that action at this time.
0 commit comments