Skip to content

Commit 5073d98

Browse files
authored
Merge pull request #17 from RafaelWO/change/upgrade-python
Upgrade Python to 3.14 and drop 3.8, 3.9
2 parents 69e8f64 + c2add61 commit 5073d98

File tree

6 files changed

+251
-186
lines changed

6 files changed

+251
-186
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
16+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1717

1818
steps:
1919
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-toml
@@ -9,7 +9,7 @@ repos:
99
- id: trailing-whitespace
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
1111
# Ruff version.
12-
rev: v0.7.3
12+
rev: v0.14.4
1313
hooks:
1414
# Run the linter.
1515
- id: ruff

pirel/cli.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import logging
2-
import sys
3-
from typing import Optional
2+
from typing import Annotated, Optional
43

54
import typer
65

@@ -10,12 +9,6 @@
109
from .logging import setup_logging
1110
from .python_cli import get_active_python_info
1211

13-
if sys.version_info < (3, 9):
14-
from typing_extensions import Annotated
15-
else:
16-
from typing import Annotated
17-
18-
1912
app = typer.Typer(name="pirel")
2013
logger = logging.getLogger("pirel")
2114

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ authors = [
1212
readme = "README.md"
1313
license = {file = "LICENSE"}
1414

15-
requires-python = ">=3.8"
15+
requires-python = ">=3.10"
1616
dependencies = [
1717
"humanize>=4.10.0",
1818
"platformdirs>=4.3.6",
1919
"rich>=13.9.2",
2020
"typer>=0.12.5",
21-
"typing-extensions>=4.12.2",
2221
]
2322

2423
keywords = ["cli", "python", "releases"]
@@ -29,12 +28,11 @@ classifiers = [
2928
"Topic :: Software Development",
3029
"License :: OSI Approved :: MIT License",
3130
"Programming Language :: Python :: 3",
32-
"Programming Language :: Python :: 3.8",
33-
"Programming Language :: Python :: 3.9",
3431
"Programming Language :: Python :: 3.10",
3532
"Programming Language :: Python :: 3.11",
3633
"Programming Language :: Python :: 3.12",
3734
"Programming Language :: Python :: 3.13",
35+
"Programming Language :: Python :: 3.14",
3836
]
3937

4038
[project.urls]

tests/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"3.11": ":heavy_check_mark: You are using Python 3.11 which has security support for more than 2 years (EOL 2027-10-01)",
5656
"3.12": ":rocket: You are using Python 3.12 which is actively maintained (bugfixes) and has security support for more than 3 years (EOL 2028-10-01)",
5757
"3.13": ":rocket: You are using Python 3.13 which is actively maintained (bugfixes) and has security support for more than 4 years (EOL 2029-10-01)",
58+
"3.14": ":sparkles: You are using Python 3.14 which is not released yet and still accepts new features (EOL 2030-10-01)",
5859
}
5960
DATE_FREEZE = datetime.date(2024, 11, 3)
6061
RELEASE_CYCLE_DATA_PATH = (

0 commit comments

Comments
 (0)