Skip to content

Commit 23fdfc5

Browse files
authored
feat: onboard Python 3.12 (#94)
* feat: onboard Python 3.12 * ci: build before release
1 parent 13475b7 commit 23fdfc5

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
strategy:
4242
max-parallel: 4
4343
matrix:
44-
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ]
44+
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11", "3.12" ]
4545
steps:
4646
- uses: actions/checkout@v4
4747
- uses: actions/setup-python@v4
@@ -54,7 +54,7 @@ jobs:
5454
- uses: actions/upload-artifact@v3
5555
if: success() || failure()
5656
with:
57-
name: test-results-unit-python
57+
name: test-results-unit-python-${{ matrix.python-version }}
5858
path: test-results/*
5959

6060
compliance-copyrights:
@@ -92,11 +92,10 @@ jobs:
9292
gpg_private_key: ${{ secrets.SA_GPG_PRIVATE_KEY }}
9393
passphrase: ${{ secrets.SA_GPG_PASSPHRASE }}
9494
extra_plugins: |
95-
@google/semantic-release-replace-plugin
95+
semantic-release-replace-plugin
9696
env:
9797
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }}
9898
- if: ${{ steps.semantic.outputs.new_release_published == 'true' }}
99-
uses: splunk/[email protected]
100-
with:
101-
pypi_username: ${{ secrets.PYPI_USERNAME }}
102-
pypi_token: ${{ secrets.PYPI_TOKEN }}
99+
run: |
100+
poetry build
101+
poetry publish -n -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_TOKEN }}

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[
99
"@semantic-release/commit-analyzer",
1010
[
11-
"@google/semantic-release-replace-plugin",
11+
"semantic-release-replace-plugin",
1212
{
1313
"replacements": [
1414
{

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ name = "addonfactory_splunk_conf_parser_lib"
1919
version = "0.3.4"
2020
description = "Splunk .conf files parser"
2121
authors = ["Splunk <[email protected]>"]
22+
classifiers = [
23+
"Programming Language :: Python",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3 :: Only",
26+
"Programming Language :: Python :: 3.7",
27+
"Programming Language :: Python :: 3.8",
28+
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
31+
"Programming Language :: Python :: 3.12",
32+
"Development Status :: 5 - Production/Stable",
33+
"Intended Audience :: Developers",
34+
"Topic :: Software Development :: Libraries :: Python Modules",
35+
"License :: OSI Approved :: Apache Software License"
36+
]
2237

2338
readme = "README.md"
2439

0 commit comments

Comments
 (0)