Skip to content

Commit

Permalink
update tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
rwedge committed Jan 7, 2025
1 parent 93381a1 commit 5d0d033
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,13 @@ def install_minimum(c):

project_data = pyproject_data.get('project', {})
dependencies = project_data.get('dependencies', [])
optional_dependencies = project_data.get('optional-dependencies', {})
pomegranate_dependencies = optional_dependencies.get('pomegranate', [])

python_version = '.'.join(map(str, sys.version_info[:2]))
minimum_versions = _get_minimum_versions(dependencies, python_version)
minimum_pomegranate_versions = _get_minimum_versions(pomegranate_dependencies, python_version)

if minimum_versions:
install_deps = ' '.join(minimum_versions)
c.run(f'python -m pip install {install_deps}')

if minimum_pomegranate_versions:
pomegranate_deps = ' '.join(minimum_pomegranate_versions)
c.run(f'python -m pip install --force-reinstall --no-cache-dir {install_deps} {pomegranate_deps}')


@task
def minimum(c):
Expand Down

0 comments on commit 5d0d033

Please sign in to comment.