-
Notifications
You must be signed in to change notification settings - Fork 54
/
pyproject.toml
128 lines (109 loc) · 2.84 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
123
124
125
126
127
128
[tool.poetry]
name = "tahrir"
version = "2.1.0"
description = "A webapp for issuing your own Open Badges"
license = "AGPLv3+ with additional permission"
authors = [
"Fedora Infrastructure <[email protected]>",
]
readme = 'README.md' # Markdown files are supported
keywords = ["fedora"]
repository = "https://github.com/fedora-infra/tahrir"
homepage = "https://github.com/fedora-infra/tahrir"
documentation = "https://tahrir.readthedocs.io"
packages = [
{ include = "tahrir" },
]
include = [
{ path = "tox.ini", format = "sdist" },
{ path = "tests", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "*.example", format = "sdist" },
{ path = "babel.cfg", format = "sdist" },
]
classifiers = [
"Environment :: Web Environment",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
[tool.poetry.dependencies]
python = "^3.9.0"
pydantic-settings = "^2.0.2"
flask = "^3.0.0"
flask-wtf = ">=0.14"
flask-oidc = "^2.2.0"
flask-babel = "^4.0.0"
flask-talisman = ">=0.8.0"
flask-healthz = ">=0.0.3"
Babel = "^2.10.0"
tahrir-api = "^1.4.0"
sqlalchemy = "^2.0.29"
qrcode = "^7.4.2"
dogpile-cache = "^1.3.2"
docutils = ">=0.20.1"
python-dateutil = "^2.9.0.post0"
feedgen = "^1.0.0"
requests = "^2.31.0"
rdflib = "^7.0.0"
pytz = ">=2024.1"
pillow = "^10.2.0 || ^11.0.0"
magickwand = "^0.2"
gunicorn = {version = ">=21.2", optional = true}
psycopg2 = {version = "^2.9.9", optional = true}
fedora-messaging = "^3.5.0"
backoff = "^2.2.1"
tahrir-messages = "^2.0.0"
pyyaml = "^6.0.1"
sphinx = {version = "*", optional = true}
myst-parser = {version = "*", optional = true}
flask-admin = "^1.6.1"
[tool.poetry.extras]
deploy = [
"gunicorn",
"psycopg2",
]
docs = ["sphinx", "myst-parser"]
[tool.poetry.group.dev.dependencies]
pytest = ">=8.1.1"
pytest-cov = ">=5.0.0"
coverage = {extras = ["toml"], version = ">=7.0.0"}
ruff = ">=0.3.5"
black = ">=24.3.0"
sphinx = ">=7.2.6"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP"]
[tool.ruff.lint.isort]
lines-after-imports = 2
order-by-type = false
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "E501"]
"tahrir/__init__.py" = ["F401"]
[tool.coverage.run]
branch = true
source = ["tahrir"]
[tool.coverage.paths]
source = ["tahrir"]
[tool.coverage.report]
# fail_under = 100 # one day, maybe!
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
# Don't complain if tests don't hit defensive assertion code
"raise AssertionError",
"raise NotImplementedError",
"\\.\\.\\.",
]
omit = [
"tahrir/__init__.py",
"tests/*",
]