-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
73 lines (55 loc) · 1.82 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
[project]
name = "ws.nginxdbauth"
description = "Authenticate an nginx request against an SQL database"
dependencies = [
"flask",
"sqlalchemy>=2.0.0"
]
optional-dependencies = {test=[
"pytest",
"pytest-cov",
"passlib",
]}
authors = [{name="Wolfgang Schnerring", email="[email protected]"}]
license = {text=" BSD-3-Clause"}
urls = {Repository="https://github.com/wosc/nginx-db-auth"}
requires-python = ">=3.7"
dynamic = ["version", "readme"]
[project.scripts]
nginx-db-auth-cgi = "ws.nginxdbauth.web:cgi"
nginx-db-auth-serve ="ws.nginxdbauth.web:serve"
[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/nginxdbauth/__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