Skip to content

Commit 5c073c6

Browse files
deprecate: python 3.9 and update to 2.10.0rc2
1 parent 6b3afd0 commit 5c073c6

14 files changed

+73
-1194
lines changed

.github/workflows/tidy3d-python-client-tests.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ jobs:
286286
cancel-in-progress: true
287287
strategy:
288288
matrix:
289-
python-version: ['3.9', '3.13']
289+
python-version: ['3.10', '3.13']
290290
defaults:
291291
run:
292292
shell: bash
@@ -395,7 +395,7 @@ jobs:
395395
cancel-in-progress: true
396396
strategy:
397397
matrix:
398-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
398+
python-version: ['3.10', '3.11', '3.12', '3.13']
399399
platform: [windows-latest, ubuntu-latest, macos-latest]
400400
defaults:
401401
run:
@@ -423,14 +423,25 @@ jobs:
423423
python-version: ${{ matrix.python-version }}
424424

425425
- name: install-project
426+
shell: bash
427+
if: ${{ matrix.platform }} != "windows-latest"
426428
run: |
427429
poetry --version
430+
python --version
431+
python -m venv .venv
432+
if [[ "${{ runner.os }}" == "Windows" ]]; then
433+
source .venv/Scripts/activate
434+
python --version
435+
else
436+
source .venv/bin/activate
437+
which python
438+
fi
428439
poetry env use python
429440
poetry env info
430441
poetry run pip install --upgrade pip wheel setuptools
431442
poetry run pip install gdstk --only-binary gdstk
432443
poetry install -E dev
433-
444+
434445
- name: run-doctests
435446
run: |
436447
poetry run pytest -rF --tb=short tidy3d

.github/workflows/tidy3d-python-client-update-lockfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Set up Python
3535
uses: actions/setup-python@v5
3636
with:
37-
python-version: '3.9'
37+
python-version: '3.10'
3838

3939
- name: Install Poetry
4040
uses: snok/install-poetry@v1

docs/development/docker.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@ You are now inside the container's shell. From here, you can set up the Python e
5656
5757
With the environment ready, you can run tests, format code, or start a Jupyter Lab session.
5858

59+
Running Github Actions Locally
60+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61+
62+
To run github actions locally install the
63+
[act](https://github.com/nektos/gh-act) extension:
64+
```bash
65+
gh extension install nektos/gh-act
66+
```
67+
68+
You can then run remote-tests locally:
69+
70+
.. code-block:: bash
71+
72+
gh act --pull=false -W .github/workflows/tidy3d-python-client-tests.yml -P "ubuntu-latest=tidy3d_python_client_dev:latest" --input remote_tests=true "workflow_dispatch"
73+
74+
5975
Running Jupyter Lab
6076
^^^^^^^^^^^^^^^^^^^
6177

docs/development/introduction/code_quality_principles.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Automated Testing
8585

8686
We use GitHub Actions to perform these tests automatically and across different operating systems.
8787

88-
On commits, each of the ``pytest`` tests are run using Python 3.9 - 3.12 installed on Ubuntu, MacOS, and Windows operating systems.
88+
On commits, each of the ``pytest`` tests are run using Python (minimum supported version up to maximum supported version) installed on Ubuntu, MacOS, and Windows operating systems.
8989

9090
See the "actions" tab for details on previous tests and ``.github/workflows/run_tests.yml`` for the configuration and to see the specific tests run.
9191

poetry.lock

Lines changed: 23 additions & 1170 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tidy3d"
3-
version = "2.10.0rc1"
3+
version = "2.10.0rc2"
44
description = "A fast FDTD solver"
55
authors = ["Tyler Hughes <[email protected]>"]
66
license = "LGPLv2+"
@@ -9,7 +9,6 @@ homepage = "https://github.com/flexcompute/tidy3d"
99
repository = "https://github.com/flexcompute/tidy3d"
1010
classifiers = [
1111
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
12-
"Programming Language :: Python :: 3.9",
1312
"Programming Language :: Python :: 3.10",
1413
"Programming Language :: Python :: 3.11",
1514
"Programming Language :: Python :: 3.12",
@@ -23,7 +22,7 @@ include = [{ path = "tidy3d/style.mplstyle", format = ["sdist", "wheel"] }]
2322
"Bug Tracker" = "https://github.com/flexcompute/tidy3d/issues"
2423

2524
[tool.poetry.dependencies]
26-
python = ">=3.9,<3.14"
25+
python = ">=3.10,<3.14"
2726
pyroots = ">=0.5.0"
2827
xarray = ">=2023.08"
2928
importlib-metadata = ">=6.0.0"
@@ -117,7 +116,7 @@ sphinxemoji = { version = "*", optional = true }
117116
devsim = { version = "*", optional = true }
118117
cma = { version = "*", optional = true }
119118
openpyxl = { version = "*", optional = true }
120-
# tidy3d-extras = { version = "2.10.0rc1", optional = true }
119+
# tidy3d-extras = { version = "2.10.0rc2", optional = true }
121120

122121
[tool.poetry.extras]
123122
dev = [

schemas/EMESimulation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12013,7 +12013,7 @@
1201312013
"type": "string"
1201412014
},
1201512015
"version": {
12016-
"default": "2.10.0rc1",
12016+
"default": "2.10.0rc2",
1201712017
"type": "string"
1201812018
}
1201912019
},

schemas/HeatChargeSimulation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9904,7 +9904,7 @@
99049904
"type": "string"
99059905
},
99069906
"version": {
9907-
"default": "2.10.0rc1",
9907+
"default": "2.10.0rc2",
99089908
"type": "string"
99099909
}
99109910
},

schemas/HeatSimulation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9904,7 +9904,7 @@
99049904
"type": "string"
99059905
},
99069906
"version": {
9907-
"default": "2.10.0rc1",
9907+
"default": "2.10.0rc2",
99089908
"type": "string"
99099909
}
99109910
},

schemas/ModeSimulation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11767,7 +11767,7 @@
1176711767
"type": "string"
1176811768
},
1176911769
"version": {
11770-
"default": "2.10.0rc1",
11770+
"default": "2.10.0rc2",
1177111771
"type": "string"
1177211772
}
1177311773
},

0 commit comments

Comments
 (0)