Skip to content

Commit ea0487e

Browse files
feat(): Migrate Flow360BaseModel (#1808)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7ead479 commit ea0487e

24 files changed

+2702
-2889
lines changed

.github/workflows/codestyle.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Install poetry
18-
run: pipx install poetry
18+
run: pipx install poetry==2.3.1
1919
- uses: actions/setup-python@v4
2020
with:
21-
python-version: '3.9'
21+
python-version: '3.10'
2222
cache: 'poetry'
2323
- name: Setup CodeArtifact auth for Poetry
2424
uses: ./.github/actions/setup-codeartifact-poetry-auth
@@ -35,10 +35,10 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v3
3737
- name: Install poetry
38-
run: pipx install poetry
38+
run: pipx install poetry==2.3.1
3939
- uses: actions/setup-python@v4
4040
with:
41-
python-version: '3.9'
41+
python-version: '3.10'
4242
cache: 'poetry'
4343
- name: Setup CodeArtifact auth for Poetry
4444
uses: ./.github/actions/setup-codeartifact-poetry-auth
@@ -57,10 +57,10 @@ jobs:
5757
steps:
5858
- uses: actions/checkout@v3
5959
- name: Install poetry
60-
run: pipx install poetry
60+
run: pipx install poetry==2.3.1
6161
- uses: actions/setup-python@v4
6262
with:
63-
python-version: '3.9'
63+
python-version: '3.10'
6464
cache: 'poetry'
6565
- name: Setup CodeArtifact auth for Poetry
6666
uses: ./.github/actions/setup-codeartifact-poetry-auth

.github/workflows/deploy-doc.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v4
1414
with:
15-
python-version: '3.9'
15+
python-version: '3.10'
1616

1717
- name: Install Sphinx
1818
run: |
@@ -32,4 +32,3 @@ jobs:
3232
with:
3333
github_token: ${{ secrets.GITHUB_TOKEN }}
3434
publish_dir: docs/_build/html/
35-

.github/workflows/pypi-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ jobs:
321321
echo "::notice ::Tag commit SHA: ${{ needs.validate-release-source.outputs.tag_commit_sha }}"
322322
323323
- name: Install poetry
324-
run: pipx install poetry
324+
run: pipx install poetry==2.3.1
325325
- uses: actions/setup-python@v4
326326
with:
327-
python-version: '3.9'
327+
python-version: '3.10'
328328
cache: 'poetry'
329329
- name: Setup CodeArtifact auth for Poetry
330330
uses: ./.github/actions/setup-codeartifact-poetry-auth

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
shell: bash
2727
strategy:
2828
matrix:
29-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
29+
python-version: ['3.10', '3.11', '3.12', '3.13']
3030
platform: [ubuntu-latest, macos-latest, windows-latest]
3131

3232
steps:
@@ -48,7 +48,7 @@ jobs:
4848
- name: Install Poetry
4949
uses: snok/install-poetry@v1
5050
with:
51-
version: 1.8.4 # Accommodating Python 3.9 to 3.13
51+
version: 2.3.1 # Aligned with poetry.lock generator version
5252
virtualenvs-in-project: true
5353
virtualenvs-create: true
5454

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ persistent=yes
8282

8383
# Minimum Python version to use for version dependent checks. Will default to
8484
# the version used to run pylint.
85-
py-version=3.9
85+
py-version=3.10
8686

8787
# Discover python modules and packages in the file system subtree.
8888
recursive=no

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
- split code to `VolumeMesh` (cloud resource) and `VolumeMeshDraft` (before submission)
2626
- added constructor from filename: `Flow360Params("path/to/file.json")`
2727
- status is enum with `is_final()` method
28+
- dropped support for Python 3.9; minimum supported Python version is now 3.10
2829

2930
### Bug Fixes
3031
- added unittests, code coverage 67%

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# How to use Flow360 python client
1111

1212
## install
13+
Requires Python 3.10 or newer.
14+
1315
### Using pip (recommended)
1416
``pip install flow360``
1517

0 commit comments

Comments
 (0)