Skip to content

Commit 3edc871

Browse files
authored
Build also with python 3.13 (#50)
Use OSMC-License.txt
1 parent 208a59e commit 3edc871

3 files changed

Lines changed: 29 additions & 16 deletions

File tree

.github/workflows/Test.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
python-version: ['3.12']
16+
python-version: ['3.12', '3.13']
1717
os: ['ubuntu-latest', 'windows-latest']
1818
omc-version: ['stable']
1919

@@ -54,38 +54,51 @@ jobs:
5454
click-to-expand: true
5555
report-title: 'Test Report'
5656

57-
- name: Build distribution
58-
run: python -m build --wheel --sdist --outdir dist
57+
- name: Build wheel
58+
run: python -m build --wheel --outdir wheels
5959

60-
- name: Upload artifacts
60+
- name: Upload wheel artifact
6161
uses: actions/upload-artifact@v4.6.2
6262
with:
63-
name: dist-${{ matrix.os }}
64-
path: dist/*
63+
name: wheel-${{ matrix.os }}-${{ matrix.python-version }}
64+
path: wheels/*
6565

6666
Publish:
6767
name: Publish to PyPI
6868
runs-on: ubuntu-latest
6969
needs: Test-Build
7070
if: startsWith(github.ref, 'refs/tags/')
7171
steps:
72-
- name: Download Ubuntu artifacts
72+
- name: Download Ubuntu wheel artifact 3.12
7373
uses: actions/download-artifact@v5
7474
with:
75-
name: dist-ubuntu-latest
76-
path: dist/ubuntu
77-
- name: Download Windows artifacts
75+
name: wheel-ubuntu-latest-3.12
76+
path: wheels/ubuntu
77+
78+
- name: Download Ubuntu wheel artifact 3.13
79+
uses: actions/download-artifact@v5
80+
with:
81+
name: wheel-ubuntu-latest-3.13
82+
path: wheels/ubuntu
83+
84+
- name: Download Windows wheel artifact 3.12
85+
uses: actions/download-artifact@v5
86+
with:
87+
name: wheel-windows-latest-3.12
88+
path: wheels/windows
89+
90+
- name: Download Windows wheel artifact 3.13
7891
uses: actions/download-artifact@v5
7992
with:
80-
name: dist-windows-latest
81-
path: dist/windows
93+
name: wheel-windows-latest-3.13
94+
path: wheels/windows
8295

83-
- name: Install Twine
96+
- name: Install twine
8497
run: python -m pip install --upgrade twine
8598

86-
- name: Publish all distributions to PyPI
99+
- name: Publish all wheels to PyPI
87100
env:
88101
TWINE_USERNAME: __token__
89102
TWINE_PASSWORD: ${{ secrets.PYPI_OMSENS_API_TOKEN }}
90103
run: |
91-
python -m twine upload dist/ubuntu/* dist/windows/* --skip-existing
104+
python -m twine upload wheels/ubuntu/* wheels/windows/* --skip-existing
File renamed without changes.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ authors = [
4646
maintainers = [
4747
{ name = "Adeel Asghar", email = "adeel.asghar@liu.se" }
4848
]
49-
license = { file = "license.txt" }
49+
license = { file = "OSMC-License.txt" }
5050
requires-python = ">=3.12"
5151
dependencies = [
5252
"six",

0 commit comments

Comments
 (0)