-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
74 lines (56 loc) · 1.8 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[project]
name = "ws.ddns"
description = "Update DNS settings using the Schlundtech XML-Gateway"
dependencies = [
"flask",
"gocept.logging",
"lxml",
"requests",
]
optional-dependencies = {test=[
"pytest",
"pytest-cov",
]}
authors = [{name="Wolfgang Schnerring", email="[email protected]"}]
license = {text=" BSD-3-Clause"}
urls = {Repository="https://github.com/wosc/schlund-ddns"}
requires-python = ">=3.7"
dynamic = ["version", "readme"]
[project.scripts]
schlund-ddns = "ws.ddns.update:main"
schlund-ddns-cgi = "ws.ddns.web:main"
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/ws"] # required for pep420 namespace package, pypa/hatch#587
strict-naming = false # required for proper output filename
[tool.hatch.build.targets.sdist]
strict-naming = false # required for proper output filename
[tool.hatch.version]
path = "src/ws/ddns/__init__.py"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/x-rst"
fragments = [{path="README.rst"}, {text="\n\n"}, {path="CHANGES.txt"}]
[tool.hatch.envs.default]
# Make work on older OS
python = "3"
dependencies = ["pip>=23"]
[tool.hatch.envs.test]
features = ["test"]
[tool.pytest.ini_options]
addopts = "--tb=native --cov=src --cov-report=html"
[tool.hatch.envs.release]
skip-install = true
dependencies = ["towncrier"]
[tool.towncrier]
directory = "changelog/"
filename = "CHANGES.txt"
title_format = "" # changelog file already has a title
# First underline is used for version/date header.
# Second underline is used for the type names (like 'Bug fixes:').
underlines = ["-", "+"]
[[tool.towncrier.type]]
directory = "change"
name = "Changes" # I'd love to omit the category, but that requires copy&paste of the whole template
showcontent = true