Skip to content

Commit

Permalink
Merge pull request #128 from ImperialCollegeLondon/hatch
Browse files Browse the repository at this point in the history
hatchling
  • Loading branch information
barneydobson authored Nov 27, 2024
2 parents 314c81a + 7bde401 commit 8678437
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
exclude = ["htmlcov"] # Exclude the coverage report file from setuptools package finder
requires = [
"hatch-vcs",
"hatchling",
]
build-backend = "hatchling.build"

[project]
name = "wsimod"
description = "WSIMOD is for simulating water quality and quantity"
readme = "README.md"
version = "0.4.0"
dynamic = [ "version"]
license = {file = "LICENSE"}
authors = [
{ name = "Barnaby Dobson", email = "[email protected]" },
Expand Down Expand Up @@ -61,6 +61,21 @@ 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"

Expand Down

0 comments on commit 8678437

Please sign in to comment.