Skip to content

Commit 83270e4

Browse files
committed
feat: support for Python 3.9+
BREAKING CHANGE: support for Python 3.9+
1 parent 7d8479b commit 83270e4

File tree

3 files changed

+61
-76
lines changed

3 files changed

+61
-76
lines changed

.github/workflows/build-test-release.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ on:
33
push:
44
branches:
55
- "main"
6-
tags:
7-
- "v[0-9]+.[0-9]+.[0-9]+"
86
pull_request:
97
branches: [ main ]
108
jobs:
119
fossa-scan:
1210
continue-on-error: true
1311
runs-on: ubuntu-latest
1412
steps:
15-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1614
- run: |
1715
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
1816
fossa analyze --debug
@@ -30,24 +28,24 @@ jobs:
3028
pre-commit:
3129
runs-on: ubuntu-latest
3230
steps:
33-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
3432
- uses: actions/setup-python@v5
3533
with:
3634
python-version: "3.12"
3735
- uses: pre-commit/[email protected]
3836

3937
test-unit:
40-
runs-on: ubuntu-22.04
38+
runs-on: ubuntu-latest
4139
strategy:
4240
matrix:
43-
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11", "3.12" ]
41+
python-version: [ 3.9, "3.10", "3.11", "3.12" ]
4442
steps:
45-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v5
4644
- uses: actions/setup-python@v5
4745
with:
4846
python-version: ${{ matrix.python-version }}
4947
- run: |
50-
curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
48+
curl -sSL https://install.python-poetry.org | python3 - --version 2.1.4
5149
poetry install
5250
poetry run pytest --junitxml=test-results/junit.xml
5351
- uses: actions/upload-artifact@v4
@@ -59,26 +57,26 @@ jobs:
5957
compliance-copyrights:
6058
runs-on: ubuntu-latest
6159
steps:
62-
- uses: actions/checkout@v4
63-
- uses: apache/skywalking-eyes@v0.6.0
60+
- uses: actions/checkout@v5
61+
- uses: apache/skywalking-eyes@v0.7.0
6462

6563
publish:
6664
needs:
6765
- fossa-scan
6866
- compliance-copyrights
6967
- pre-commit
7068
- test-unit
71-
runs-on: ubuntu-22.04
69+
runs-on: ubuntu-latest
7270

7371
steps:
74-
- uses: actions/checkout@v4
72+
- uses: actions/checkout@v5
7573
with:
7674
# Very important: semantic-release won't trigger a tagged
7775
# build if this is not set false
7876
persist-credentials: false
7977
- uses: actions/setup-python@v5
8078
with:
81-
python-version: "3.7"
79+
python-version: "3.9"
8280
- run: |
8381
curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
8482
poetry install

poetry.lock

Lines changed: 48 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ classifiers = [
2323
"Programming Language :: Python",
2424
"Programming Language :: Python :: 3",
2525
"Programming Language :: Python :: 3 :: Only",
26-
"Programming Language :: Python :: 3.7",
27-
"Programming Language :: Python :: 3.8",
2826
"Programming Language :: Python :: 3.9",
2927
"Programming Language :: Python :: 3.10",
3028
"Programming Language :: Python :: 3.11",
@@ -43,9 +41,9 @@ homepage = "https://github.com/splunk/addonfactory-splunk-conf-parser-lib"
4341
keywords = ["splunk"]
4442

4543
[tool.poetry.dependencies]
46-
python = "^3.7"
44+
python = "^3.9"
4745

48-
[tool.poetry.dev-dependencies]
46+
[tool.poetry.group.dev.dependencies]
4947
pytest = ">=7"
5048

5149
[build-system]

0 commit comments

Comments
 (0)