From 7ea59571414549a4e81568fa1ac28ab18565d484 Mon Sep 17 00:00:00 2001 From: barneydobson Date: Wed, 27 Nov 2024 13:38:45 +0000 Subject: [PATCH] Revert "hatchling" --- pyproject.toml | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b67393f..6773128 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,15 @@ [build-system] -requires = [ - "hatch-vcs", - "hatchling", -] -build-backend = "hatchling.build" +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.packages.find] +exclude = ["htmlcov"] # Exclude the coverage report file from setuptools package finder [project] name = "wsimod" description = "WSIMOD is for simulating water quality and quantity" readme = "README.md" -dynamic = [ "version"] +version = "0.4.0" license = {file = "LICENSE"} authors = [ { name = "Barnaby Dobson", email = "b.dobson@imperial.ac.uk" }, @@ -61,21 +61,6 @@ doc = [ "wsimod[demos]" ] -[tool.hatch.build] -# Exclude specific files and folders (e.g., `htmlcov` for coverage report) -exclude = ["htmlcov"] - -[tool.hatch.metadata] -license = "BSD-3-clause" # Or your primary license name -license-files = [ "LICENSE"] - -[tool.hatch.version] -source = "vcs" - -[tool.hatch.build.hooks.vcs] -version-file = "_version.py" - - [tool.pytest.ini_options] addopts = "-v -p no:warnings --cov=wsimod --cov-report=html"