Skip to content

Commit 9aa5793

Browse files
authored
feat: drop Python 3.9 (#548)
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent 9faba05 commit 9aa5793

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
os: [ubuntu-latest]
38-
python-version: ['3.9', '3.11', '3.13', '3.14']
38+
python-version: ['3.10', '3.12', '3.14']
3939
include:
40-
- {os: macos-15-intel, python-version: '3.9'}
41-
- {os: macos-latest, python-version: '3.13'}
40+
- {os: macos-15-intel, python-version: '3.10'}
4241
- {os: macos-latest, python-version: '3.14'}
43-
- {os: windows-latest, python-version: '3.9'}
42+
- {os: windows-latest, python-version: '3.11'}
4443
- {os: windows-latest, python-version: '3.13'}
45-
- {os: windows-latest, python-version: '3.14'}
4644

4745
steps:
4846
- uses: actions/checkout@v6

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ pip install decaylanguage
3434

3535
You can use a virtual environment through pipenv or with `--user` if you know
3636
what those are. [Python
37-
3.9+](http://docs.python-guide.org/en/latest/starting/installation) supported
38-
(see version 0.14 for Python 3.6 support, 0.18 for Python 3.7 and 3.8 support).
37+
3.10+](http://docs.python-guide.org/en/latest/starting/installation) supported
38+
(see version 0.14 for Python 3.6 support, 0.18 for Python 3.7 and 3.8 support,
39+
0.20 for Python 3.8 support).
3940

4041
<details><summary>Dependencies: (click to expand)</summary><p>
4142

notebooks/AmpGen2GooFit D2K3p.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
},
270270
{
271271
"cell_type": "code",
272-
"execution_count": 7,
272+
"execution_count": null,
273273
"metadata": {},
274274
"outputs": [
275275
{
@@ -287,7 +287,7 @@
287287
}
288288
],
289289
"source": [
290-
"for spintype, c in zip(SpinType, colors):\n",
290+
"for spintype, c in zip(SpinType, colors, strict=False):\n",
291291
" ps = [\n",
292292
" c | format(str(p), \"11\")\n",
293293
" for p in GooFitChain.all_particles\n",

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "hatchling.build"
99
name = "decaylanguage"
1010
description = "A language to describe, manipulate and convert particle decays"
1111
readme = "README.md"
12-
requires-python = ">=3.9"
12+
requires-python = ">=3.10"
1313
authors = [
1414
{ name = "Eduardo Rodrigues", email = "eduardo.rodrigues@cern.ch" },
1515
{ name = "Henry Schreiner", email = "henryfs@princeton.edu" },
@@ -33,7 +33,6 @@ classifiers = [
3333
"Programming Language :: Python",
3434
"Programming Language :: Python :: 3",
3535
"Programming Language :: Python :: 3 :: Only",
36-
"Programming Language :: Python :: 3.9",
3736
"Programming Language :: Python :: 3.10",
3837
"Programming Language :: Python :: 3.11",
3938
"Programming Language :: Python :: 3.12",

src/decaylanguage/dec/dec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
import os
4343
import re
4444
import warnings
45-
from collections.abc import Iterable
45+
from collections.abc import Callable, Iterable
4646
from io import StringIO
4747
from itertools import chain, zip_longest
4848
from pathlib import Path
49-
from typing import Any, Callable
49+
from typing import Any
5050

5151
from hepunits import GeV
5252
from lark import Lark, Token, Transformer, Tree, Visitor
@@ -995,7 +995,7 @@ def _align_items(
995995

996996
aligned.append(row)
997997

998-
return [sep.join(row) for row in zip(*aligned)]
998+
return [sep.join(row) for row in zip(*aligned, strict=True)]
999999

10001000
def build_decay_chains(
10011001
self,

0 commit comments

Comments
 (0)