File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 37
37
YAML_PATH = pathlib .Path ("ci/deps" )
38
38
ENV_PATH = pathlib .Path ("environment.yml" )
39
39
EXCLUDE_DEPS = {"tzdata" , "blosc" }
40
- EXCLUSION_LIST = {
41
- "python=3.8[build=*_pypy]" : None ,
42
- "pyarrow" : None ,
43
- }
40
+ EXCLUSION_LIST = frozenset (["python=3.8[build=*_pypy]" , "pyarrow" ])
44
41
# pandas package is not available
45
42
# in pre-commit environment
46
43
sys .path .append ("pandas/compat" )
@@ -166,9 +163,7 @@ def pin_min_versions_to_yaml_file(
166
163
continue
167
164
old_dep = yaml_package
168
165
if yaml_versions is not None :
169
- for yaml_version in yaml_versions :
170
- old_dep += yaml_version + ", "
171
- old_dep = old_dep [:- 2 ]
166
+ old_dep = old_dep + ", " .join (yaml_versions )
172
167
if RENAME .get (yaml_package , yaml_package ) in toml_map :
173
168
min_dep = toml_map [RENAME .get (yaml_package , yaml_package )]
174
169
elif yaml_package in toml_map :
You can’t perform that action at this time.
0 commit comments