Skip to content

Commit

Permalink
Lift minimal Python version to 3.9
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jan-kiszka committed Feb 11, 2025
1 parent 9150646 commit 9b32fc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,12 @@ jobs:
- name: Check code
run: scripts/checkcode.sh .

perform_tests_legacy:
name: Legacy Python
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.7"]
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Run tests
uses: ./.github/actions/perform-tests
with:
python-version: ${{ matrix.python-version }}

perform_tests_modern:
perform_tests:
name: Modern Python
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Check out repo
uses: actions/checkout@v4
Expand All @@ -64,8 +50,7 @@ jobs:
name: Build, test and deploy container images
needs:
- codestyle
- perform_tests_legacy
- perform_tests_modern
- perform_tests
runs-on: ubuntu-24.04
permissions:
id-token: write
Expand Down
14 changes: 5 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kas - setup tool for bitbake based projects
#
# Copyright (c) Siemens AG, 2017-2019
# Copyright (c) Siemens AG, 2017-2025
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -29,7 +29,7 @@
from kas import __version__

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

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

'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
Expand All @@ -92,10 +89,9 @@
'distro>=1.0.0,<2',
'jsonschema>=2.5.0,<5',
'kconfiglib>=14.1.0,<15',
'GitPython>=3.1.0,<4',
"cached-property>=1.0,<2; python_version<'3.8'"
'GitPython>=3.1.0,<4'
],

# At least python 3.6 is needed by now:
python_requires='>=3.6',
# At least python 3.9 is needed by now:
python_requires='>=3.9',
)

0 comments on commit 9b32fc5

Please sign in to comment.