MCPcopy Index your code
hub / github.com/sdv-dev/SDV / install_minimum

Function install_minimum

tasks.py:81–94  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

79
80@task
81def install_minimum(c):
82 with open('pyproject.toml', 'rb') as pyproject_file:
83 pyproject_data = tomli.load(pyproject_file)
84
85 dependencies = pyproject_data.get('project', {}).get('dependencies', [])
86 python_version = '.'.join(map(str, sys.version_info[:2]))
87 minimum_versions = _get_minimum_versions(dependencies, python_version)
88
89 if minimum_versions:
90 install_deps = ' '.join(minimum_versions)
91 c.run(f'python -m pip install {install_deps}')
92 if platform.system() == 'Windows' and sys.version_info < (3,14):
93 for dep, cap in EXTERNAL_DEPENDENCY_CAPS_FOR_WINDOWS.items():
94 c.run(f'python -m pip install "{dep}<{cap}"')
95
96
97@task

Callers 1

minimumFunction · 0.85

Calls 3

_get_minimum_versionsFunction · 0.85
getMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected