Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hatchling #128

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading