Skip to content

Commit 9b32fc5

Browse files
committed
Lift minimal Python version to 3.9
We were carrying support for down to 3.6 long enough now. By now even modern enterprise distros which still have older Python under maintenance also have a path to install a second, fresher version. At the same time, old Python blocked some renovation, e.g. that of the setup system [1]. Choose 3.9 as new lower boundary. It does not restrict us with cleaning, and it is the oldest still maintained upstream version. [1] https://groups.google.com/g/kas-devel/c/h6J9XB0h-W4/m/IwAqU0kwDwAJ Signed-off-by: Jan Kiszka <[email protected]>
1 parent 9150646 commit 9b32fc5

File tree

2 files changed

+8
-27
lines changed

2 files changed

+8
-27
lines changed

.github/workflows/next.yml

+3-18
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,12 @@ jobs:
3232
- name: Check code
3333
run: scripts/checkcode.sh .
3434

35-
perform_tests_legacy:
36-
name: Legacy Python
37-
runs-on: ubuntu-20.04
38-
strategy:
39-
matrix:
40-
python-version: ["3.6", "3.7"]
41-
steps:
42-
- name: Check out repo
43-
uses: actions/checkout@v4
44-
- name: Run tests
45-
uses: ./.github/actions/perform-tests
46-
with:
47-
python-version: ${{ matrix.python-version }}
48-
49-
perform_tests_modern:
35+
perform_tests:
5036
name: Modern Python
5137
runs-on: ubuntu-24.04
5238
strategy:
5339
matrix:
54-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
40+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
5541
steps:
5642
- name: Check out repo
5743
uses: actions/checkout@v4
@@ -64,8 +50,7 @@ jobs:
6450
name: Build, test and deploy container images
6551
needs:
6652
- codestyle
67-
- perform_tests_legacy
68-
- perform_tests_modern
53+
- perform_tests
6954
runs-on: ubuntu-24.04
7055
permissions:
7156
id-token: write

setup.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kas - setup tool for bitbake based projects
22
#
3-
# Copyright (c) Siemens AG, 2017-2019
3+
# Copyright (c) Siemens AG, 2017-2025
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -29,7 +29,7 @@
2929
from kas import __version__
3030

3131
__license__ = 'MIT'
32-
__copyright__ = 'Copyright (c) Siemens AG, 2017-2019'
32+
__copyright__ = 'Copyright (c) Siemens AG, 2017-2025'
3333

3434
HERE = path.abspath(path.dirname(__file__))
3535
with open(path.join(HERE, 'README.rst')) as f:
@@ -66,9 +66,6 @@
6666
'License :: OSI Approved :: MIT License',
6767

6868
'Programming Language :: Python :: 3',
69-
'Programming Language :: Python :: 3.6',
70-
'Programming Language :: Python :: 3.7',
71-
'Programming Language :: Python :: 3.8',
7269
'Programming Language :: Python :: 3.9',
7370
'Programming Language :: Python :: 3.10',
7471
'Programming Language :: Python :: 3.11',
@@ -92,10 +89,9 @@
9289
'distro>=1.0.0,<2',
9390
'jsonschema>=2.5.0,<5',
9491
'kconfiglib>=14.1.0,<15',
95-
'GitPython>=3.1.0,<4',
96-
"cached-property>=1.0,<2; python_version<'3.8'"
92+
'GitPython>=3.1.0,<4'
9793
],
9894

99-
# At least python 3.6 is needed by now:
100-
python_requires='>=3.6',
95+
# At least python 3.9 is needed by now:
96+
python_requires='>=3.9',
10197
)

0 commit comments

Comments
 (0)