Skip to content

Commit 022c002

Browse files
committed
set 3.9 lowest supported python version
Signed-off-by: Simoh23999 <[email protected]>
1 parent d6a87c5 commit 022c002

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.github/workflows/python.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
toxenv-factors: '-current'
8787
- # test with the lowest dependencies
8888
os: ubuntu-latest
89-
python-version: '3.8'
89+
python-version: '3.9'
9090
toxenv-factors: '-lowest'
9191
steps:
9292
- name: Checkout
@@ -117,15 +117,14 @@ jobs:
117117
matrix:
118118
os:
119119
- ubuntu-latest
120-
- macos-13 # macos-latest might be incompatible to py38 - see https://github.com/CycloneDX/cyclonedx-python-lib/pull/599#issuecomment-2077462142
120+
- macos-13
121121
- windows-latest
122122
python-version:
123123
- "3.13" # highest supported
124124
- "3.12"
125125
- "3.11"
126126
- "3.10"
127-
- "3.9"
128-
- "3.8" # lowest supported
127+
- "3.9" # lowest supported
129128
toxenv-factors:
130129
- '-allExtras'
131130
- '-noExtras'
@@ -219,7 +218,7 @@ jobs:
219218
# see https://github.com/actions/setup-python
220219
uses: actions/setup-python@v5
221220
with:
222-
python-version: '>=3.8 <=3.13' # supported version range
221+
python-version: '>=3.9 <=3.13' # supported version range
223222
- name: Validate Python Environment
224223
shell: python
225224
run: |

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ classifiers = [
4747
'Topic :: Software Development',
4848
'Topic :: System :: Software Distribution',
4949
'License :: OSI Approved :: Apache Software License',
50-
'Programming Language :: Python :: 3.8',
5150
'Programming Language :: Python :: 3.9',
5251
'Programming Language :: Python :: 3.10',
5352
'Programming Language :: Python :: 3.11',
@@ -68,7 +67,7 @@ keywords = [
6867
"Funding" = "https://owasp.org/donate/?reponame=www-project-cyclonedx&title=OWASP+CycloneDX"
6968

7069
[tool.poetry.dependencies]
71-
python = "^3.8"
70+
python = "^3.9"
7271
packageurl-python = ">=0.11, <2"
7372
py-serializable = "^2.0.0"
7473
sortedcontainers = "^2.4.0"
@@ -84,9 +83,9 @@ xml-validation = ["lxml"]
8483
[tool.poetry.group.dev.dependencies]
8584
ddt = "1.7.2"
8685
coverage = "7.6.1"
87-
flake8 = { version="7.1.2", python=">=3.8.1" }
88-
flake8-annotations = { version="3.1.1", python=">=3.8.1" }
89-
flake8-bugbear = { version="24.12.12", python=">=3.8.1" }
86+
flake8 = { version="7.1.2", python=">=3.9.1" }
87+
flake8-annotations = { version="3.1.1", python=">=3.9.1" }
88+
flake8-bugbear = { version="24.12.12", python=">=3.9.1" }
9089
flake8-copyright-validator = "0.0.1"
9190
flake8-isort = "6.1.1"
9291
flake8-quotes = "3.4.0"

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ minversion = 4.0
88
envlist =
99
flake8
1010
mypy-{current,lowest}
11-
py{313,312,311,310,39,38}-{allExtras,noExtras}
11+
py{313,312,311,310,39}-{allExtras,noExtras}
1212
bandit
1313
skip_missing_interpreters = True
1414
usedevelop = False
@@ -33,7 +33,7 @@ setenv =
3333
commands =
3434
# mypy config is in own file: `.mypy.ini`
3535
!lowest: poetry run mypy
36-
lowest: poetry run mypy --python-version=3.8
36+
lowest: poetry run mypy --python-version=3.9
3737

3838
[testenv:flake8]
3939
commands =

0 commit comments

Comments
 (0)