Skip to content

Commit

Permalink
Fix package name
Browse files Browse the repository at this point in the history
  • Loading branch information
benjello committed Nov 14, 2024
1 parent cc46c75 commit 2a24bcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/pyproject_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_versions():
openfisca_tunisia_pension = None
with open('./pyproject.toml', 'r') as file:
content = file.read()
# Extract the version of openfisca_tunisia-pension
# Extract the version of openfisca_tunisia_pension
version_match = re.search(r'^version\s*=\s*"([\d.]*)"', content, re.MULTILINE)
if version_match:
openfisca_tunisia_pension = version_match.group(1)
Expand Down Expand Up @@ -50,7 +50,7 @@ def replace_in_file(filepath: str, info: dict):
# Replace with info from pyproject.toml
if PACKAGE_VERSION not in meta:
raise Exception(f'{PACKAGE_VERSION=} not found in {filepath}')
meta = meta.replace(PACKAGE_VERSION, info['openfisca_tunisia-pension'])
meta = meta.replace(PACKAGE_VERSION, info['openfisca_tunisia_pension'])
if CORE_VERSION not in meta:
raise Exception(f'{CORE_VERSION=} not found in {filepath}')
meta = meta.replace(CORE_VERSION, info['openfisca_core_api'])
Expand Down
2 changes: 1 addition & 1 deletion .github/test-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PORT=5000
ENDPOINT=spec

openfisca serve --country-package openfisca_tunisia-pension --port $PORT --workers 1 &
openfisca serve --country-package openfisca_tunisia_pension --port $PORT --workers 1 &
server_pid=$!

curl --retry-connrefused --retry 10 --retry-delay 5 --fail http://127.0.0.1:$PORT/$ENDPOINT | python -m json.tool > /dev/null
Expand Down

0 comments on commit 2a24bcf

Please sign in to comment.