Skip to content

Commit d5cfc30

Browse files
authored
Merge pull request #259 from scipp/drop-py310
Drop support for Python 3.10
2 parents 3371cc6 + 1ae209a commit d5cfc30

File tree

7 files changed

+9
-12
lines changed

7 files changed

+9
-12
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ _commit: c3214e6
33
_src_path: gh:scipp/copier_template
44
description: Common data reduction tools for the ESS facility
55
max_python: '3.13'
6-
min_python: '3.10'
6+
min_python: '3.11'
77
namespace_package: ess
88
nightly_deps: scippnexus,scipp,sciline,cyclebane,scippneutron,tof
99
orgname: scipp
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.11

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.11

docs/developer/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Alternatively, if you want a different workflow, take a look at ``tox.ini`` or `
4040
Run the tests using
4141
4242
```sh
43-
tox -e py310
43+
tox -e py311
4444
```
4545
4646
(or just `tox` if you want to run all environments).

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ classifiers = [
1818
"Operating System :: OS Independent",
1919
"Programming Language :: Python :: 3",
2020
"Programming Language :: Python :: 3 :: Only",
21-
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
2322
"Programming Language :: Python :: 3.12",
2423
"Programming Language :: Python :: 3.13",
2524
"Topic :: Scientific/Engineering",
2625
"Typing :: Typed",
2726
]
28-
requires-python = ">=3.10"
27+
requires-python = ">=3.11"
2928

3029
# IMPORTANT:
3130
# Run 'tox -e deps' after making changes here. This will update requirement files.

tests/nexus/workflow_test.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2024 Scipp contributors (https://github.com/scipp)
3-
from datetime import datetime, timezone
3+
from datetime import UTC, datetime
44

55
import pytest
66
import scipp as sc
@@ -644,10 +644,8 @@ def test_generic_nexus_workflow_load_measurement_metadata() -> None:
644644

645645
assert measurement.title == 'My experiment'
646646
assert measurement.experiment_id == 'p1234'
647-
assert measurement.start_time == datetime(
648-
2022, 2, 28, 21, 15, 0, tzinfo=timezone.utc
649-
)
650-
assert measurement.end_time == datetime(2032, 2, 29, 9, 15, 0, tzinfo=timezone.utc)
647+
assert measurement.start_time == datetime(2022, 2, 28, 21, 15, 0, tzinfo=UTC)
648+
assert measurement.end_time == datetime(2032, 2, 29, 9, 15, 0, tzinfo=UTC)
651649
assert measurement.run_number is None
652650
assert measurement.experiment_doi is None
653651

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py310
2+
envlist = py311
33
isolated_build = true
44

55
[testenv]

0 commit comments

Comments
 (0)