Skip to content

Commit f8ab228

Browse files
committed
πŸ”₯ feat!: drop python3.9 support
1 parent a711d68 commit f8ab228

File tree

8 files changed

+50
-52
lines changed

8 files changed

+50
-52
lines changed

β€Ž.github/workflows/lint-and-fmt.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
# Only run linter and formatter on minimum supported Python version
16-
python-version: ['3.9']
16+
python-version: ['3.10']
1717
architecture: ['x64']
1818
name: lint and fmt - Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
1919
steps:

β€Ž.github/workflows/unit-test.ymlβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
15+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
1616
architecture: ['x64']
1717
name: unittest - Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
1818
steps:
@@ -27,6 +27,7 @@ jobs:
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929
architecture: ${{ matrix.architecture }}
30+
allow-prereleases: true
3031

3132
- name: Install just
3233
uses: extractions/setup-just@v3

β€Žpyproject.tomlβ€Ž

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "expr-simplifier"
33
version = "0.1.1"
44
description = ""
55
readme = "README.md"
6-
requires-python = ">=3.9"
6+
requires-python = ">=3.10"
77
dependencies = ["typing-extensions>=4.12.2"]
88
authors = [{ name = "Nyakku Shigure", email = "[email protected]" }]
99
keywords = []
@@ -13,11 +13,11 @@ classifiers = [
1313
"License :: OSI Approved :: MIT License",
1414
"Programming Language :: Python",
1515
"Programming Language :: Python :: 3",
16-
"Programming Language :: Python :: 3.9",
1716
"Programming Language :: Python :: 3.10",
1817
"Programming Language :: Python :: 3.11",
1918
"Programming Language :: Python :: 3.12",
2019
"Programming Language :: Python :: 3.13",
20+
"Programming Language :: Python :: 3.14",
2121
"Programming Language :: Python :: Implementation :: CPython",
2222
]
2323

@@ -32,20 +32,20 @@ expr_simplifier = "expr_simplifier.__main__:main"
3232

3333
[dependency-groups]
3434
dev = [
35-
"pyright>=1.1.403",
36-
"ruff>=0.12.5",
37-
"pytest>=8.4.1",
38-
"pytest-rerunfailures>=15.1",
35+
"pyright>=1.1.405",
36+
"ruff>=0.13.2",
37+
"pytest>=8.4.2",
38+
"pytest-rerunfailures>=16.0.1",
3939
]
4040

4141
[tool.pyright]
4242
include = ["src/expr_simplifier", "tests"]
43-
pythonVersion = "3.9"
43+
pythonVersion = "3.10"
4444
typeCheckingMode = "strict"
4545

4646
[tool.ruff]
4747
line-length = 120
48-
target-version = "py39"
48+
target-version = "py310"
4949

5050
[tool.ruff.lint]
5151
select = [

β€Žsrc/expr_simplifier/transforms/constant_folding.pyβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from __future__ import annotations
22

33
import ast
4-
5-
from typing_extensions import TypeAlias
4+
from typing import TypeAlias
65

76
from expr_simplifier.transforms.inline_named_expr import apply_constant_propagation
87

β€Žsrc/expr_simplifier/transforms/cse.pyβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from __future__ import annotations
22

33
import ast
4-
5-
from typing_extensions import TypeAlias
4+
from typing import TypeAlias
65

76
from expr_simplifier.symbol_table import SymbolTable
87
from expr_simplifier.transforms.inline_named_expr import apply_inline_all_named_expr

β€Žsrc/expr_simplifier/transforms/inline_named_expr.pyβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import ast
44
import copy
55
from collections.abc import Callable
6-
7-
from typing_extensions import TypeAlias
6+
from typing import TypeAlias
87

98
NamedExpressions: TypeAlias = dict[str, ast.expr]
109
ShouldReplaceFn: TypeAlias = Callable[[str, NamedExpressions], bool]

β€Žsrc/expr_simplifier/typing.pyβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import ast
44
from collections.abc import Callable
5-
6-
from typing_extensions import TypeAlias
5+
from typing import TypeAlias
76

87
Pass: TypeAlias = Callable[[ast.AST], ast.AST]

β€Žuv.lockβ€Ž

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

0 commit comments

Comments
Β (0)