-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
122 lines (108 loc) · 2.89 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pseudovote"
description = "Simple yet auditable polls/elections on Internet"
readme = "README.md"
license = "AGPL-3.0-or-later"
requires-python = ">=3.7"
authors = [
{ name = "Märt Põder", email = "[email protected]" },
]
keywords = ["voting", "polls", "pseudonyms", "auditability", "bulletin board", "starlette"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Framework :: Hatch",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: SQL",
"Programming Language :: JavaScript",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"Topic :: Security :: Cryptography",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Message Boards",
]
dependencies = [
"uvicorn",
"starlette",
"sse-starlette",
"asyncpg",
"aiosmtplib",
"jinja2<=3.0.3",
"asgi-babel",
"python-dateutil",
"python-multipart",
"regex",
"pgpdump",
"python-dotenv",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://pseudovote.net"
Documentation = "https://infoaed.github.io/pseudovote/"
"Bug Tracker" = "https://github.com/infoaed/pseudovote/issues"
Source = "https://github.com/infoaed/pseudovote"
[tool.hatch.version]
path = "pseudovote/__init__.py"
[project.scripts]
pseudovote = "pseudovote.__main__:main"
[project.optional-dependencies]
i18n = [
"babel",
]
docs = [
"mkdocs",
"mkautodoc",
"mkdocs-material",
]
deploy = [
"gunicorn",
"setproctitle",
]
[tool.hatch.envs.default.scripts]
all = [
"hatch run i18n:all",
"hatch run docs:all",
"hatch run deps:all",
]
[tool.hatch.envs.i18n.scripts]
extract = "pybabel extract -F ./locales/babel.conf --project `hatch project metadata name` --version=`hatch version` -o ./locales/messages.pot ."
update = "pybabel update -i ./locales/messages.pot -d ./locales"
compile = "pybabel compile -f -d ./locales"
all = [
"hatch run i18n:extract",
"hatch run i18n:update",
"hatch run i18n:compile",
]
[tool.hatch.envs.docs.scripts]
serve = "mkdocs serve"
build = "mkdocs build"
deploy = "mkdocs gh-deploy --force"
all = [
"hatch run docs:build",
"hatch run docs:deploy",
]
[tool.hatch.envs.deps.scripts]
run = "hatch dep show requirements > requirements.txt"
deploy = "hatch dep show requirements -f deploy > requirements-deploy.txt"
all = [
"hatch run deps:run",
"hatch run deps:deploy",
]
[tool.hatch.build.hooks.custom]
path = "locales/babel.py"
[tool.hatch.build.targets.sdist]
include = [
"/pseudovote",
"/static",
"/templates",
"/keys",
"/wordlists",
"/locales",
"/docs",
]