Skip to content

Commit 37ea0ff

Browse files
Mikhail AstafevCopilot
andcommitted
Drop Python 3.11 from CI matrix
QCoDeS already requires Python >=3.12. This PR updates the CI configuration and applies pyupgrade fixes: - Updated pytest.yaml: removed 3.11 from matrix, min-version test now uses 3.12 - Updated docs.yaml: removed 3.11, gh-pages deploy uses 3.12 - Updated upload_to_pypi.yaml: build uses 3.12 - Removed obsolete pyvisa-sim deprecation warning filter (was only needed for 3.11) - Bumped minimum dependency versions: numpy>=1.26.0, pandas>=2.2.3 - Applied ruff pyupgrade fixes (UP040 TypeAlias->type, UP046 Generic->type params) - Added noqa: UP046 for 13 complex multi-inheritance generic classes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 33f9ff8 commit 37ea0ff

152 files changed

Lines changed: 620 additions & 246 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ jobs:
2929
fail-fast: false
3030
matrix:
3131
os: [ubuntu-latest, windows-latest]
32-
python-version: ["3.11", "3.12", "3.13", "3.14"]
32+
python-version: ["3.12", "3.13", "3.14"]
3333
exclude:
34-
- os: windows-latest
35-
python-version: 3.11
3634
- os: windows-latest
3735
python-version: 3.13
3836
- os: windows-latest
@@ -122,7 +120,7 @@ jobs:
122120
- name: Download artifact
123121
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
124122
with:
125-
name: docs_3.11_ubuntu-latest
123+
name: docs_3.12_ubuntu-latest
126124
path: build_docs
127125

128126
- name: Deploy to gh pages

.github/workflows/pytest.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,13 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
os: [ubuntu-latest, windows-latest]
33-
python-version: ["3.11", "3.12", "3.13", "3.14"]
33+
python-version: ["3.12", "3.13", "3.14"]
3434
min-version: [false]
3535
include:
3636
- os: ubuntu-latest
37-
python-version: "3.11"
37+
python-version: "3.12"
3838
min-version: true
3939
exclude:
40-
- os: ubuntu-latest
41-
python-version: "3.11"
42-
- os: windows-latest
43-
python-version: "3.11"
4440
- os: windows-latest
4541
python-version: "3.13"
4642
- os: windows-latest

.github/workflows/upload_to_pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Python
2626
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2727
with:
28-
python-version: '3.11'
28+
python-version: '3.12'
2929
- name: Install build deps
3030
run: pip install --upgrade pip setuptools wheel build
3131
- name: Build

docs/examples/writing_drivers/A-ParameterWithSetpoints-Example-with-Dual-Setpoints.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"from typing import TYPE_CHECKING\n",
2222
"\n",
2323
"if TYPE_CHECKING:\n",
24-
" from typing_extensions import Unpack\n",
24+
" from typing import Unpack\n",
2525
"\n",
2626
"import numpy as np\n",
2727
"import numpy.typing as npt\n",

docs/examples/writing_drivers/Creating-Instrument-Drivers.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
"from typing import TYPE_CHECKING, Any\n",
2222
"\n",
2323
"if TYPE_CHECKING:\n",
24-
" from typing_extensions import (\n",
25-
" Unpack, # can be imported from typing if python >= 3.12\n",
26-
" )\n",
24+
" from typing import Unpack\n",
2725
"\n",
2826
"import numpy as np\n",
2927
"\n",

docs/examples/writing_drivers/Creating-Simulated-PyVISA-Instruments.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"from qcodes.instrument.visa import VisaInstrument, VisaInstrumentKWArgs\n",
7575
"\n",
7676
"if TYPE_CHECKING:\n",
77-
" from typing_extensions import Unpack\n",
77+
" from typing import Unpack\n",
7878
"\n",
7979
"\n",
8080
"class Weinschel8320(VisaInstrument):\n",

0 commit comments

Comments
 (0)