-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathpyproject.toml
173 lines (158 loc) · 4.47 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[project]
dynamic = ["version"]
name = "irrd"
[tool.poetry]
name = "irrd"
# Note that version is also in irrd/__init__.py
version = "4.5-dev"
description = "Internet Routing Registry daemon (IRRd)"
authors = ["Reliably Coded for NTT Ltd. and others <[email protected]>"]
license = "BSD"
readme = "README.rst"
repository = "https://github.com/irrdnet/irrd"
documentation = "https://irrd.readthedocs.io/"
exclude = ['irrd/*/tests', 'irrd/*/*/tests', 'irrd/integration_tests']
[tool.poetry.dependencies]
python = "^3.9"
# For installation dependencies, this project pins on exact
# versions. This is because it's an application rather than
# a library, so we assume that irrd is the only tool installed
# in the venv. Pinning exact versions increases reproducability
# in our distributed packages.
# https://github.com/python-poetry/poetry/issues/2778 may fix this
python-gnupg = "0.5.3"
passlib = "1.7.4"
bcrypt = "4.2.1"
ipy = "1.1"
ordered-set = "4.1.0"
beautifultable = "0.8.0" # pinned <1.0.0
pyyaml = "6.0.2"
datrie = "0.8.2"
setproctitle = "1.3.4"
python-daemon = "3.1.0"
pid = "3.0.4"
redis = "5.2.0"
hiredis = "3.0.0"
coredis = "4.17.0"
requests = "2.32.3"
pytz = "2024.2"
ariadne = "0.23"
uvicorn = { extras = ["standard"], version = "0.32.1" }
starlette = "0.41.3"
psutil = "6.1.0"
asgiref = "3.8.1"
pydantic = "2.10.2"
typing-extensions = "4.12.2"
py-radix = { url = "https://github.com/SEKOIA-IO/py-radix/archive/refs/tags/v1.0.2.tar.gz" }
psycopg2-binary = "2.9.10"
sqlalchemy = "1.4.54"
alembic = "1.14.0"
ujson = "5.10.0"
wheel = "0.45.1"
jinja2 = "3.1.4"
python-multipart = "0.0.17"
imia = "0.5.3"
starlette-wtf = "0.4.5"
limits = "3.13.0"
webauthn = "2.3.0"
pyotp = "2.9.0"
click = "8.1.7"
zxcvbn = "4.4.28"
wtforms-bootstrap5 = "0.3.0"
email-validator = "2.2.0"
asgi-logger = "0.1.0"
joserfc = "^1.0.0"
time-machine = "^2.16.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.1"
pytest-cov = "^4.0.0"
coverage = "^7.2.0"
twisted = "^22.10.0"
python-graphql-client = "^0.4.3"
pytest-asyncio = "^0.20.3"
mypy = "^1.0.1"
ruff = "^0.0.252"
isort = "^5.12.0"
black = "23.7.0"
poethepoet = "^0.18.1"
factory-boy = "^3.2.1"
smtpdfix = "0.5.1"
httpx = "^0.24.0"
[tool.poetry.group.docs.dependencies]
# Also in readthedocs.yaml
sphinx = "^6.1.3"
sphinxcontrib-spelling = "^8.0.0"
sphinx-immaterial = "^0.11.11"
pyenchant = "^3.2.2"
[tool.poetry.scripts]
irrd = 'irrd.daemon.main:main'
irrdctl = 'irrd.scripts.irrd_control:cli'
irrd_submit_email = 'irrd.scripts.submit_email:main'
irrd_database_upgrade = 'irrd.scripts.database_upgrade:main'
irrd_database_downgrade = 'irrd.scripts.database_downgrade:main'
irrd_load_database = 'irrd.scripts.load_database:main'
irrd_update_database = 'irrd.scripts.update_database:main'
irrd_set_last_modified_auth = 'irrd.scripts.set_last_modified_auth:main'
irrd_expire_journal = 'irrd.scripts.expire_journal:main'
irrd_mirror_force_reload = 'irrd.scripts.mirror_force_reload:main'
irr_rpsl_submit = 'irrd.scripts.irr_rpsl_submit:main'
irrd_load_pgp_keys = 'irrd.scripts.load_pgp_keys:main'
[tool.isort]
profile = "black"
py_version = 38
src_paths = "irrd"
[tool.ruff]
line-length = 110
ignore = ["E501"]
target-version = "py38"
[tool.black]
line-length = 110
target-version = ['py38']
preview = true
[tool.pytest.ini_options]
log_level = "DEBUG"
asyncio_mode = "auto"
[tool.mypy]
ignore_missing_imports = true
install_types = true
non_interactive = true
exclude = ['irrd/vendor/mock_alchemy/']
[[tool.mypy.overrides]]
module = "irrd.vendor.mock_alchemy.*"
follow_imports = "skip"
[tool.poe.tasks]
black = "black irrd"
ruff = "ruff irrd --fix"
isort = "isort irrd"
mypy = "mypy irrd"
lint = ["black", "ruff", "isort", "mypy"]
test = "pytest --cov-report term-missing:skip-covered --cov=irrd --basetemp=.tmpdirs/ "
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == \"__main__\":",
]
# Impractical for unit tests, but covered in integration tests
omit = [
"irrd/daemon/main.py",
"irrd/server/http/app.py",
"irrd/server/graphql/schema_builder.py",
"irrd/server/http/server.py",
"irrd/storage/alembic/*",
"irrd/scripts/query_qa_comparison.py",
"irrd/scripts/database_upgrade.py",
"irrd/scripts/database_downgrade.py",
"irrd/scripts/load_test.py",
"irrd/integration_tests/*",
"irrd/vendor/*",
"irrd/*/tests/*",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"