(c)
| 79 | |
| 80 | @task |
| 81 | def 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 |
no test coverage detected