[sdk/kde-builder] /: ci: Switch from Pipfile to pyproject.toml and use uv

Andrew Shark <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 7c2736f402e1c247cbd510b2cd1e65a47af29bd6 by Andrew Shark.
Committed on 06/08/2026 at 14:44.
Pushed by ashark into branch 'master'.

ci: Switch from Pipfile to pyproject.toml and use uv

M  +0    -1    .gitignore
M  +7    -7    .gitlab-ci.yml
D  +0    -18   Pipfile
M  +1    -1    REUSE.toml
A  +22   -0    pyproject.toml

https://invent.kde.org/sdk/kde-builder/-/commit/7c2736f402e1c247cbd510b2cd1e65a47af29bd6

diff --git a/.gitignore b/.gitignore
index a7d1360e..8d73c9ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,3 @@
 .venv/
 __pycache__/
 *.py[cod]
-Pipfile.lock
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5ad82e5f..eeaf840e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,18 +9,18 @@ stages:
 unit_and_integration_tests:
   tags:
     - Linux
-  image: python:3.10  # keep same version as defined in Pipfile
+  image: ghcr.io/astral-sh/uv:debian
   before_script:
     - apt update
-    - apt install -y cmake libdbus-1-dev
+    - apt install -y cmake libdbus-1-dev python3-dev
     - cmake --version
-    - python --version
-    - pip install pipenv --quiet
-    - pipenv install --dev
-    - pipenv graph
+    - uv --version
+    - uv venv .venv
+    - uv pip install -r pyproject.toml --group dev
+    - uv pip tree
     - export PYTHONPATH="$PYTHONPATH:$(pwd)"
   script:
-    - pipenv run pytest --cov --cov-report term --cov-report xml:coverage.xml
+    - uv run --no-project pytest --cov --cov-report term --cov-report xml:coverage.xml
   artifacts:
     reports:
       coverage_report:
diff --git a/Pipfile b/Pipfile
deleted file mode 100644
index 134dd380..00000000
--- a/Pipfile
+++ /dev/null
@@ -1,18 +0,0 @@
-[[source]]
-url = "https://pypi.org/simple"
-verify_ssl = true
-name = "pypi"
-
-[packages]
-pyyaml = "*"
-setproctitle = "*"
-
-[dev-packages]
-dbus-python = "*"
-overrides = "*"
-pytest = "*"
-pytest-cov = "*"
-exceptiongroup = "*"  # needed for python 3.10
-
-[requires]
-python_version = "3.10"
diff --git a/REUSE.toml b/REUSE.toml
index cd5278b2..88372954 100644
--- a/REUSE.toml
+++ b/REUSE.toml
@@ -19,7 +19,7 @@ path = [
     "doc/conf.py",
     "tests/integration/fixtures/**",
     "tests/fixtures/**",
-    "Pipfile",
+    "pyproject.toml",
     "ruff.toml",
     ]
 SPDX-FileCopyrightText = "none"
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 00000000..48451b10
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,22 @@
+[project]
+name = "kde-builder"
+dynamic = ["version"]
+description = "A tool to streamline the process of setting up and maintaining development environment for KDE software"
+requires-python = ">=3.10"
+
+dependencies = [
+    "dbus-python",
+    "exceptiongroup; python_version < '3.10'",
+    "overrides; python_version < '3.11'",
+    "pyyaml",
+    "setproctitle",
+]
+
+[dependency-groups]
+dev = [
+    "pytest",
+    "pytest-cov",
+]
+
+[tool.uv]
+package = false
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.