File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 3737YAML_PATH = pathlib .Path ("ci/deps" )
3838ENV_PATH = pathlib .Path ("environment.yml" )
3939EXCLUDE_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" ])
4441# pandas package is not available
4542# in pre-commit environment
4643sys .path .append ("pandas/compat" )
@@ -166,9 +163,7 @@ def pin_min_versions_to_yaml_file(
166163 continue
167164 old_dep = yaml_package
168165 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 )
172167 if RENAME .get (yaml_package , yaml_package ) in toml_map :
173168 min_dep = toml_map [RENAME .get (yaml_package , yaml_package )]
174169 elif yaml_package in toml_map :
You can’t perform that action at this time.
0 commit comments