Skip to content

Commit e74e319

Browse files
authored
feat: drop support for python 3.8 (#458)
Python 3.8 is EOL since 07 Oct 2024. https://devguide.python.org/versions/
1 parent aca4a8a commit e74e319

File tree

7 files changed

+8
-10
lines changed

7 files changed

+8
-10
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
14+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1515

1616
name: Python ${{ matrix.python-version }}
1717
steps:

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test:
2626

2727
parallel:
2828
matrix:
29-
- python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
29+
- python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3030

3131
image: python:${python_version}-alpine
3232
before_script:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repos:
3333
rev: v3.19.0
3434
hooks:
3535
- id: pyupgrade
36-
args: [--py38-plus]
36+
args: [--py39-plus]
3737

3838
- repo: https://github.com/pycqa/isort
3939
rev: 5.13.2

hcloud/metrics/domain.py

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

33
from datetime import datetime
4-
from typing import Dict, List, Literal, Tuple
4+
from typing import Literal
55

66
from dateutil.parser import isoparse
77

88
from ..core import BaseDomain
99

10-
TimeSeries = Dict[str, Dict[Literal["values"], List[Tuple[float, str]]]]
10+
TimeSeries = dict[str, dict[Literal["values"], list[tuple[float, str]]]]
1111

1212

1313
class Metrics(BaseDomain):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ requires = ["setuptools"]
1414
build-backend = "setuptools.build_meta"
1515

1616
[tool.pylint.main]
17-
py-version = "3.8"
17+
py-version = "3.9"
1818
recursive = true
1919
jobs = 0
2020

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@
2828
"License :: OSI Approved :: MIT License",
2929
"Natural Language :: English",
3030
"Programming Language :: Python :: 3",
31-
"Programming Language :: Python :: 3.8",
3231
"Programming Language :: Python :: 3.9",
3332
"Programming Language :: Python :: 3.10",
3433
"Programming Language :: Python :: 3.11",
3534
"Programming Language :: Python :: 3.12",
3635
"Programming Language :: Python :: 3.13",
3736
],
38-
python_requires=">=3.8",
37+
python_requires=">=3.9",
3938
install_requires=[
4039
"python-dateutil>=2.7.5",
4140
"requests>=2.20",

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38, py39, py310, py311, py312, py313
2+
envlist = py39, py310, py311, py312, py313
33

44
[testenv]
55
passenv = FAKE_API_ENDPOINT
@@ -10,7 +10,6 @@ commands =
1010

1111
[gh-actions]
1212
python =
13-
3.8: py38
1413
3.9: py39
1514
3.10: py310
1615
3.11: py311

0 commit comments

Comments
 (0)