Skip to content

Commit

Permalink
Handle more versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-cty committed Nov 14, 2024
1 parent 85cf524 commit e844876
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/pyproject_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ def get_versions():
else:
raise Exception('Package version not found in pyproject.toml')
# Extract dependencies
version = re.search(r'openfisca-core\[web-api\]\s*((?:==|>=)\s*[\d\.]+(?:\s*,\s*<\s*\d+)?)"', content, re.MULTILINE)
version = re.search(r'openfisca-core\[web-api\]\s*((?:==|>=)\s*[\d\.]+(?:\s*,\s*<\s*\d+)?)', content, re.MULTILINE)
if version:
openfisca_core_api = version.group(1)
version = re.search(r'numpy\s*(>=\s*[\d\.]*,\s*<\d*)"', content, re.MULTILINE)
# 'numpy >=1.24.3, <2',
version = re.search(r'numpy\s*(>=\s*[\d\.]*,\s*<\d*)', content, re.MULTILINE)
if version:
numpy = version.group(1)
if not openfisca_core_api or not numpy:
Expand Down

0 comments on commit e844876

Please sign in to comment.