74 lines
1.7 KiB
TOML
74 lines
1.7 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "distribits-registration-api"
|
|
dynamic = ["version"]
|
|
description = ''
|
|
readme = "README.md"
|
|
requires-python = ">=3.8"
|
|
license = "MIT"
|
|
keywords = []
|
|
authors = [
|
|
{ name = "Michael Hanke", email = "michael.hanke@gmail.com" },
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
]
|
|
dependencies = [
|
|
"fastapi[standard]",
|
|
"slowapi",
|
|
]
|
|
|
|
[project.urls]
|
|
Documentation = "https://hub.datalad.org/distribits/registration-api#readme"
|
|
Issues = "https://hub.datalad.org/distribits/registration-api/issues"
|
|
Source = "https://hub.datalad.org/distribits/registration-api"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src"]
|
|
|
|
[tool.hatch.version]
|
|
path = "src/__about__.py"
|
|
|
|
[tool.hatch.envs.types]
|
|
extra-dependencies = [
|
|
"mypy>=1.0.0",
|
|
]
|
|
[tool.hatch.envs.types.scripts]
|
|
check = "mypy --install-types --non-interactive {args:src tests}"
|
|
|
|
[tool.coverage.run]
|
|
source_pkgs = ["src", "tests"]
|
|
branch = true
|
|
parallel = true
|
|
omit = [
|
|
"src/__about__.py",
|
|
]
|
|
|
|
[tool.coverage.paths]
|
|
src = ["src", "*/src/"]
|
|
tests = ["tests", "*/src/tests"]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"no cov",
|
|
"if __name__ == .__main__.:",
|
|
"if TYPE_CHECKING:",
|
|
]
|
|
|
|
[tool.hatch.envs.fastapi]
|
|
description = "fastapi dev environment"
|
|
|
|
[tool.hatch.envs.fastapi.scripts]
|
|
dev = 'fastapi dev src/main.py {args}'
|
|
run = 'fastapi run src/main.py {args}'
|