From 1c5b72f01ae4cac9740b43af6963e08c6277275c Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 26 Mar 2025 08:11:28 +0100 Subject: build: switch from setuptools to hatchling For reproducible builds and also so that you no longer need `--config-settings editable_mode=compat` for pip install to make it work with Pyright. Neither of these concerns really affect osm-proposals since I am not publishing the package on PyPI nor does it expose any library but I have other packages where they do apply and to simplify maintenance I want to use the same build backend for all of my projects. --- pyproject.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 1bad629..2a6d936 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,12 @@ name = "osm-proposals" version = "0.0.0" -[tool.setuptools.packages.find] -where = ["."] +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = ["osm_proposals"] [project.scripts] osm-proposals = "osm_proposals.proposals:run" -- cgit v1.2.3