Skip to content

Commit

Permalink
osrd_schemas: move to 'poetry:2.0'
Browse files Browse the repository at this point in the history
Signed-off-by: Jean SIMARD <[email protected]>
  • Loading branch information
woshilapin committed Feb 7, 2025
1 parent c0d3af7 commit fe9d896
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 114 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install 'poetry<2.0'
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -388,7 +388,7 @@ jobs:
- name: Install dependencies
run: |
cd python/osrd_schemas
poetry install
poetry install --extras=dev
- name: Ruff
run: |
cd python/osrd_schemas
Expand Down Expand Up @@ -420,7 +420,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install poetry
run: pipx install 'poetry<2.0'
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.11"
Expand Down
2 changes: 1 addition & 1 deletion python/osrd_schemas/.python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9
3.12.7
2 changes: 1 addition & 1 deletion python/osrd_schemas/osrd_schemas/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def register_extension(extension):
)

extensions_field.annotation.model_fields[name] = FieldInfo(
annotation=Optional[extension],
annotation=extension,
default=None,
)
return extension
Expand Down
Loading

0 comments on commit fe9d896

Please sign in to comment.