From 1401ef3cafe7f651aec949c7f53784036cc3d5e8 Mon Sep 17 00:00:00 2001 From: Peter Rice Date: Sun, 8 Jun 2025 18:05:13 -0400 Subject: [PATCH] switch from setuptools to flit --- contrib/PKGBUILD | 2 +- flake.nix | 1 + pyproject.toml | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD index 93b806c..b00f679 100644 --- a/contrib/PKGBUILD +++ b/contrib/PKGBUILD @@ -9,7 +9,7 @@ license=('GPL') sha512sums=('SKIP') arch=('any') depends=('python' 'python-click' 'python-xdg-base-dirs') -makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'scdoc') +makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-flit-core' 'scdoc') provides=('qbpm') source=("git+https://github.com/pvsr/qbpm") diff --git a/flake.nix b/flake.nix index 9a76f2a..3f8ec98 100644 --- a/flake.nix +++ b/flake.nix @@ -53,6 +53,7 @@ pkgs.nixfmt-rfc-style (pyprojectEnv ( ps: with ps; [ + flit pytest mypy pylsp-mypy diff --git a/pyproject.toml b/pyproject.toml index 4fbede0..a0d203a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,8 +25,8 @@ repository = "https://github.com/pvsr/qbpm" qbpm = "qbpm.main:main" [build-system] -requires = ["setuptools"] -build-backend = "setuptools.build_meta" +requires = ["flit_core >=3.2,<4"] +build-backend = "flit_core.buildapi" [tool.pytest.ini_options] pythonpath = "src" -- 2.51.2