From 9b195e0446d2c59fb0fa59792c503cf74df6058d Mon Sep 17 00:00:00 2001 From: Taras Radchenko Date: Sun, 2 Jun 2024 16:43:42 +0200 Subject: [PATCH] Migrate to flint build backend I've accidentally noticed that my .vscode/settings.json got included into source distribution, even though it's ignored by git as configured in my global config. This came as a surprise, but appears to be a design decision (see pypa/hatch#304). Switch to flit which by default only includes the package contents, readme and license. --- pyproject.toml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6915659..336bb35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [ ] description = "Predicate-based equivalence testing" readme = "README.rst" -license = "MIT" +license = {file = "LICENSE"} requires-python = ">=3.8" classifiers = [ "Programming Language :: Python :: 3", @@ -25,14 +25,8 @@ dev = [ ] [build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[tool.hatch.build] -exclude = [ - "/.github", - "/test", -] +requires = ["flit_core >=3.4,<4"] +build-backend = "flit_core.buildapi" [tool.pytest.ini_options] addopts = "--doctest-modules"