-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
126 lines (109 loc) · 3.35 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
[project]
name = "gentoo-build-publisher"
dynamic = ["version"]
description = "Gentoo Build Publisher"
readme = "README.md"
authors = [{name = "Albert Hopkins", email = "[email protected]"}]
license = {text = "GPL3+"}
dependencies = [
"ariadne>=0.14.0",
"ariadne_django",
"celery[msgpack]",
"django",
"python-dispatch>=0.2.1",
"requests",
"yarl!=1.9.1",
"gbpcli>=2.3.0",
"orjson>=3.9.1",
"cryptography>=42.0.4",
"rich>=13.7.0",
]
requires-python = ">=3.11"
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: System :: Software Distribution",
"Topic :: System :: Systems Administration",
]
[project.urls]
homepage = "https://github.com/enku/gentoo-build-publisher"
repository = "https://github.com/enku/gentoo-build-publisher"
[project.entry-points."gentoo_build_publisher.records"]
django = "gentoo_build_publisher.records.django_orm"
memory = "gentoo_build_publisher.records.memory"
[project.entry-points."gbpcli.subcommands"]
addmachine = "gentoo_build_publisher.cli.addmachine"
addrepo = "gentoo_build_publisher.cli.addrepo"
apikey = "gentoo_build_publisher.cli.apikey"
check = "gentoo_build_publisher.cli.check"
delete = "gentoo_build_publisher.cli.delete"
worker = "gentoo_build_publisher.cli.worker"
[project.entry-points."gentoo_build_publisher.graphql_schema"]
gbp = "gentoo_build_publisher.graphql"
[project.entry-points."gentoo_build_publisher.worker_interface"]
celery = "gentoo_build_publisher.worker.celery:CeleryWorker"
rq = "gentoo_build_publisher.worker.rq:RQWorker"
sync = "gentoo_build_publisher.worker.sync:SyncWorker"
thread = "gentoo_build_publisher.worker.thread:ThreadWorker"
[project.optional-dependencies]
redis = [
"rq>=1.15.1",
]
test = [
"nox>=2024.4.15",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.coverage.run]
branch = true
source = ["gentoo_build_publisher"]
omit = ["src/gentoo_build_publisher/migrations/*"]
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.pylint.master]
load-plugins = "pylint_django,pylint.extensions.bad_builtin"
django-settings-module = "settings"
init-hook = "import sys; sys.path.insert(0, 'tests')"
bad-functions = "print"
ignore = ["/migrations/"]
[tool.flake8]
max-line-length = 88
[tool.mypy]
plugins =["mypy_django_plugin.main"]
exclude = ["/migrations/"]
files = ["src/gentoo_build_publisher"]
mypy_path = ["tests", "stubs"]
strict = true
[[tool.mypy.overrides]]
module = "gentoo_build_publisher.admin"
ignore_errors = true
[[tool.mypy.overrides]]
module = "ariadne_django.*"
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "settings"
[tool.pdm]
version = { source = "scm" }
[tool.pdm.dev-dependencies]
dev = [
"black>=22.6.0",
"coverage[toml]>=6.4.2",
"factory-boy>=3.2.1",
"mypy==1.7.1",
# pylint-django fails with 2.15.0. See bug #370
# https://github.com/PyCQA/pylint-django/issues/370
"pylint>=2.14.5,!=2.15.0",
"pylint-django>=2.5.3",
"django-stubs>=1.12.0",
"types-requests>=2.28.7",
"tblib>=1.7.0",
"celery-types>=0.19.0",
"typos>=1.16.23",
"fakeredis>=2.20.0",
"unittest-fixtures @ git+https://github.com/enku/unittest-fixtures.git",
]
[tool.unittest-fixtures]
fixtures-module = "tests.fixtures"