Skip to content

Commit f5172e5

Browse files
build(python): migrate to pyproject.toml and bump python to 3.14 (#207)
1 parent 3a63546 commit f5172e5

3 files changed

Lines changed: 32 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156
id: setup-python
157157
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
158158
with:
159-
python-version: '3.11'
159+
python-version: '3.14'
160160

161161
- name: Python Path
162162
id: python-path
@@ -212,7 +212,7 @@ jobs:
212212
PYTHON_PATH: ${{ steps.python-path.outputs.python-path }}
213213
working-directory: build
214214
run: |
215-
"${PYTHON_PATH}" -m pip install gcovr
215+
"${PYTHON_PATH}" -m pip install "../scripts[test]"
216216
"${PYTHON_PATH}" -m gcovr . -r ../src \
217217
--exclude-noncode-lines \
218218
--exclude-throw-branches \

scripts/pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "libdisplaydevice"
7+
dynamic = ["version"]
8+
description = "Helper scripts for libdisplaydevice"
9+
requires-python = ">=3.14"
10+
license = {text = "AGPL-3.0-only"}
11+
authors = [
12+
{name = "LizardByte", email = "lizardbyte@users.noreply.github.com"}
13+
]
14+
15+
dependencies = []
16+
17+
[project.optional-dependencies]
18+
lint = [
19+
"clang-format==21.*",
20+
"flake8==7.3.0",
21+
]
22+
23+
test = [
24+
"gcovr==8.6",
25+
]
26+
27+
[project.urls]
28+
Homepage = "https://github.com/LizardByte/libdisplaydevice#readme"
29+
Repository = "https://github.com/LizardByte/libdisplaydevice"
30+
Issues = "https://github.com/LizardByte/libdisplaydevice/issues"

scripts/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)