MCPcopy
hub / github.com/mne-tools/mne-python / remove_spaces

Function remove_spaces

tools/hooks/update_environment_file.py:29–34  ·  view source on GitHub ↗

Remove spaces in version specs (conda is stricter than pip about this). https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/pkg-specs.html#package-match-specifications

(version_spec)

Source from the content-addressed store, hash-verified

27
28
29def remove_spaces(version_spec):
30 """Remove spaces in version specs (conda is stricter than pip about this).
31
32 https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/pkg-specs.html#package-match-specifications
33 """
34 return "".join(version_spec.split())
35
36
37def split_dep(dep):

Callers 2

split_depFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected