Skip to content

Commit 8c3c813

Browse files
Mikhail AstafevCopilot
andcommitted
Drop Python 3.11 from CI matrix
QCoDeS already requires Python >=3.12. This PR updates the CI configuration to match: - 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 safe pyupgrade fixes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 33f9ff8 commit 8c3c813

126 files changed

Lines changed: 135 additions & 180 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",

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ classifiers = [
1313
"Development Status :: 3 - Alpha",
1414
"Intended Audience :: Science/Research",
1515
"Programming Language :: Python :: 3 :: Only",
16-
"Programming Language :: Python :: 3.11",
1716
"Programming Language :: Python :: 3.12",
1817
"Programming Language :: Python :: 3.13",
1918
"Programming Language :: Python :: 3.14",
2019
"Topic :: Scientific/Engineering",
2120
]
2221
license = "MIT"
2322
readme = "README.rst"
24-
requires-python = ">=3.11"
23+
requires-python = ">=3.12"
2524
dependencies = [
2625
"broadbean>=0.11.0",
2726
"h5netcdf>=0.14.1",
@@ -31,9 +30,9 @@ dependencies = [
3130
"jsonschema>=4.9.0",
3231
"matplotlib>=3.6.0",
3332
"networkx>=3.1",
34-
"numpy>=1.22.4",
33+
"numpy>=1.26.0",
3534
"packaging>=20.0",
36-
"pandas>=1.5.0",
35+
"pandas>=2.2.3",
3736
"pyarrow>=11.0.0", # will become a requirement of pandas. Installing explicitly silences a warning
3837
"pyvisa>=1.11.0, <1.17.0",
3938
"ruamel.yaml>=0.16.0,!=0.16.6",
@@ -218,7 +217,6 @@ markers = "serial"
218217
# and error on all other warnings
219218
filterwarnings = [
220219
'error',
221-
'ignore:open_binary is deprecated:DeprecationWarning', # pyvisa-sim deprecated in 3.11 un-deprecated in 3.12. Drop filter once we drop support for 3.11
222220
'ignore:unclosed database in:ResourceWarning', # internal should be fixed
223221
'ignore:unclosed\ <socket\.socket:ResourceWarning', # not clear from where this is coming
224222
'ignore:Model_336 is deprecated:qcodes.utils.deprecate.QCoDeSDeprecationWarning', # remove once deprecated Lakeshore Model_336 and its tests has been removed

src/qcodes/dataset/dond/do_0d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .do_nd import DondKWargs, dond
99

1010
if TYPE_CHECKING:
11-
from typing_extensions import Unpack
11+
from typing import Unpack
1212

1313
from .do_nd_utils import (
1414
AxesTupleListWithDataSet,

src/qcodes/dataset/dond/do_1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .sweeps import LinSweep
1010

1111
if TYPE_CHECKING:
12-
from typing_extensions import Unpack
12+
from typing import Unpack
1313

1414
from qcodes.dataset.dond.do_nd_utils import (
1515
AxesTupleListWithDataSet,

src/qcodes/instrument/channel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
from .instrument_base import InstrumentBase
2323

2424
if TYPE_CHECKING:
25-
from typing import Self
26-
27-
from typing_extensions import Unpack
25+
from typing import Self, Unpack
2826

2927
from .instrument_base import InstrumentBaseKWArgs
3028

0 commit comments

Comments
 (0)