Skip to content

Commit dfc25f3

Browse files
committed
Update minimum tests to install minimum scikit-learn
1 parent 1c1b8ff commit dfc25f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tasks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ def _get_minimum_versions(dependencies, python_version):
101101
@task
102102
def install_minimum(c):
103103
with open('pyproject.toml', 'rb') as pyproject_file:
104-
pyproject_data = tomli.load(pyproject_file)
104+
pyproject_data = tomli.load(pyproject_file).get('project', {})
105105

106-
dependencies = pyproject_data.get('project', {}).get('dependencies', [])
106+
dependencies = pyproject_data.get('dependencies', [])
107+
dependencies += pyproject_data.get('optional-dependencies', {}).get('tutorials', [])
107108
python_version = '.'.join(map(str, sys.version_info[:2]))
108109
minimum_versions = _get_minimum_versions(dependencies, python_version)
109110

0 commit comments

Comments
 (0)