From b8eec9c34f559522ebd5288b2481d4fcb8ddbb88 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Tue, 24 Feb 2026 18:22:21 -0500 Subject: [PATCH] build(python): migrate to pyproject.toml and bump python to 3.14 --- .github/workflows/ci.yml | 4 ++-- scripts/pyproject.toml | 30 ++++++++++++++++++++++++++++++ scripts/requirements.txt | 1 - 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 scripts/pyproject.toml delete mode 100644 scripts/requirements.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71219b7..58339d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -156,7 +156,7 @@ jobs: id: setup-python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.11' + python-version: '3.14' - name: Python Path id: python-path @@ -212,7 +212,7 @@ jobs: PYTHON_PATH: ${{ steps.python-path.outputs.python-path }} working-directory: build run: | - "${PYTHON_PATH}" -m pip install gcovr + "${PYTHON_PATH}" -m pip install "../scripts[test]" "${PYTHON_PATH}" -m gcovr . -r ../src \ --exclude-noncode-lines \ --exclude-throw-branches \ diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml new file mode 100644 index 0000000..f49930f --- /dev/null +++ b/scripts/pyproject.toml @@ -0,0 +1,30 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "libdisplaydevice" +dynamic = ["version"] +description = "Helper scripts for libdisplaydevice" +requires-python = ">=3.14" +license = {text = "AGPL-3.0-only"} +authors = [ + {name = "LizardByte", email = "lizardbyte@users.noreply.github.com"} +] + +dependencies = [] + +[project.optional-dependencies] +lint = [ + "clang-format==21.*", + "flake8==7.3.0", +] + +test = [ + "gcovr==8.6", +] + +[project.urls] +Homepage = "https://github.com/LizardByte/libdisplaydevice#readme" +Repository = "https://github.com/LizardByte/libdisplaydevice" +Issues = "https://github.com/LizardByte/libdisplaydevice/issues" diff --git a/scripts/requirements.txt b/scripts/requirements.txt deleted file mode 100644 index aa39325..0000000 --- a/scripts/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -clang-format==21.*