Skip to content

Commit

Permalink
revert min reqs; force reinstall pomegranate
Browse files Browse the repository at this point in the history
  • Loading branch information
rwedge committed Jan 3, 2025
1 parent 8c38f94 commit 3f6990d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ license = { text = 'MIT license' }
requires-python = ">=3.8,<3.13"
readme = 'README.md'
dependencies = [
"numpy>=1.23.3;python_version<'3.10'",
"numpy>=1.21.0;python_version<'3.10'",
"numpy>=1.23.3;python_version>='3.10' and python_version<'3.12'",
"numpy>=1.26.0;python_version>='3.12'",
"pandas>=1.4.0;python_version<'3.11'",
Expand Down
9 changes: 7 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,18 @@ def install_minimum(c):
with open('pyproject.toml', 'rb') as pyproject_file:
pyproject_data = tomli.load(pyproject_file)

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

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

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


@task
Expand Down

0 comments on commit 3f6990d

Please sign in to comment.