Skip to content

Commit e2ff1b4

Browse files
committed
build: Update minimum Python version to 3.9
1 parent 3025ea2 commit e2ff1b4

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

pyproject.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ classifiers = [
2424
"Topic :: Software Development :: Libraries :: Python Modules",
2525
"License :: OSI Approved :: MIT License",
2626
"Programming Language :: Python :: 3",
27-
"Programming Language :: Python :: 3.7",
28-
"Programming Language :: Python :: 3.8",
2927
"Programming Language :: Python :: 3.9",
3028
"Programming Language :: Python :: 3.10",
3129
"Programming Language :: Python :: 3.11",
32-
"Framework :: AiiDA"
30+
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
32+
"Framework :: AiiDA",
3333
]
34-
requires-python = ">=3.8"
34+
requires-python = ">=3.9"
3535
dependencies = [
3636
"aiohttp~=3.8",
3737
"asyncssh~=2.11",
@@ -46,7 +46,6 @@ dependencies = [
4646
"python-daemon~=2.3",
4747
"typing-extensions >= 4.2.0; python_version < '3.11'",
4848
"upcloud_api~=2.0",
49-
"importlib_metadata; python_version < '3.8'",
5049
]
5150

5251
[project.optional-dependencies]
@@ -96,7 +95,7 @@ remove-duplicate-keys = true
9695
remove-unused-variables = true
9796

9897
[tool.black]
99-
target-version = ['py38', 'py39', 'py310', 'py311']
98+
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
10099

101100

102101
[tool.commitizen]
@@ -111,7 +110,7 @@ changelog_incremental = true
111110

112111
[tool.isort]
113112
profile = "black"
114-
py_version = 38
113+
py_version = 39
115114

116115
[tool.pylint.MASTER]
117116
load-plugins=[
@@ -120,7 +119,7 @@ load-plugins=[
120119

121120
[tool.pylint.main]
122121
jobs = 0
123-
py-version = "3.8"
122+
py-version = "3.9"
124123
recursive = true
125124
suggestion-mode = true
126125

yascheduler/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
import sys
1+
import importlib.metadata
22

33
from .client import Yascheduler
44
from .variables import CONFIG_FILE, LOG_FILE, PID_FILE
55

6-
if sys.version_info < (3, 8):
7-
import importlib_metadata
8-
else:
9-
import importlib.metadata as importlib_metadata
10-
11-
__version__ = importlib_metadata.version("yascheduler")
6+
__version__ = importlib.metadata.version("yascheduler")
127
__all__ = [
138
"CONFIG_FILE",
149
"LOG_FILE",

0 commit comments

Comments
 (0)