-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathpyproject.toml
More file actions
215 lines (192 loc) · 5.09 KB
/
Copy pathpyproject.toml
File metadata and controls
215 lines (192 loc) · 5.09 KB
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
[project]
name = "version-control-tools"
version = "0.0.0"
requires-python = ">=3.9"
# Dependency groups for all environments. Server deployment groups are
# compiled into `.txt` files via `./upgrade-python-packages`. Local
# development uses `uv sync --group dev`.
[dependency-groups]
# Shared dependency set for vcsreplicator (included by other groups).
vcsreplicator-deps = [
"cbor2==4.1.2",
"kafka-python==1.4.6",
"kombu",
"python-hglib",
]
ansible = [
"ansible==4.8.0",
]
deploy-deps = [
{ include-group = "ansible" },
# Without a lower bound, uv's resolver backtracks to a 2018-era boto3
# on Python 3.9; pip-compile didn't have this problem.
"boto3>=1.28",
"mach==1.0.0",
"mercurial==7.2.2",
]
deploy = [
{ include-group = "deploy-deps" },
"vcttesting",
]
test-deps = [
{ include-group = "deploy-deps" },
{ include-group = "vcsreplicator-deps" },
"backports.lzma",
"black==22.12.0",
"coverage",
# docker-py 7.x is incompatible with docker-compose 1.29.2
"docker<7",
"docker-compose",
# requests 2.32 breaks http+docker scheme used by docker-py <7.1.0 (https://github.com/docker/docker-py/issues/3256)
"requests<2.32",
"flake8",
"lockfile",
"mock",
"mechanize",
"nose",
"Pygments==2.3.1",
"pytest",
"python-hglib",
"python-ldap",
"redo",
"responses",
"sentry-sdk",
]
# `test` is a thin alias over `test-deps` so `dev` can pull in the same
# deps without `include-group`'ing `test` directly (which `[tool.uv]
# conflicts` forbids, since `test` and `dev` are listed as conflicting).
test = [{ include-group = "test-deps" }]
docs = [
"sphinxcontrib-blockdiag",
"sphinxcontrib-nwdiag",
"sphinxcontrib-seqdiag",
"Sphinx",
"sphinx-rtd-theme",
"backports.lzma",
"docker<7",
"coverage",
"mach==1.0.0",
"mercurial==7.2.2",
"PyYAML",
"pillow<10", # blockdiag 3.0.0 incompatible with Pillow 10+ (textsize removed)
"setuptools<82", # https://github.com/blockdiag/blockdiag/issues/186
"vcttesting",
]
hgweb = [
"boto3",
"cbor2==4.1.2",
"ipaddress",
"mercurial==7.2.2",
"Pygments==2.1.3",
]
hg-web-replication = [
"boto3",
"cbor2==4.1.2",
"kafka-python==1.4.6",
"mercurial==7.2.2",
"pygments",
"python-hglib",
"PyYAML",
"six",
"tabulate",
]
hg-web-tools = [
"boto3",
"cbor2==4.1.2",
"mercurial==7.2.2",
"python-hglib",
"requests",
"tabulate",
]
hg-web-tools-py3 = [
"cbor2==4.1.2",
"datadiff",
"requests",
"voluptuous",
]
hg-ssh-tools = [
{ include-group = "vcsreplicator-deps" },
"boto3",
"boto",
"mercurial==7.2.2",
"python-hglib",
"python-ldap>=3.4.2",
"tabulate",
]
hg-ssh-bundles = [
"boto3",
"google-cloud-storage",
"kafka-python==1.4.6",
"mercurial==7.2.2",
"python-hglib==2.6.1",
]
hg-ssh-pash = [
"kafka-python==1.4.6",
"mercurial==7.2.2",
"python-ldap",
"sentry-sdk==0.7.14",
"six",
]
hg-ssh-testing = [
"moto[server]==1.0.0",
]
# Local editable packages shared across dev environments.
local-common = [
"mozilla-hg-hooks",
"bugsy",
"mozhg",
"pushlog-client",
"mozautomation",
"vcttesting",
]
# Additional local packages only needed for the full test environment.
local-test = [
{ include-group = "local-common" },
"hgmolib",
"mozansible",
"vcsreplicator",
]
# Local dev environment.
dev = [
{ include-group = "test-deps" },
{ include-group = "local-test" },
]
[tool.uv]
# S3 mirror for Mozilla packages (used during resolution).
find-links = ["https://s3-us-west-2.amazonaws.com/moz-packages/pypi/index.html"]
# These groups are never installed together (they target separate
# virtualenvs on different servers), so uv can resolve different
# versions of the same package across them.
conflicts = [
[
{ group = "deploy-deps" },
{ group = "deploy" },
{ group = "test" },
{ group = "dev" },
{ group = "docs" },
{ group = "hgweb" },
{ group = "hg-web-replication" },
{ group = "hg-web-tools" },
{ group = "hg-web-tools-py3" },
{ group = "hg-ssh-tools" },
{ group = "hg-ssh-bundles" },
{ group = "hg-ssh-pash" },
{ group = "hg-ssh-testing" },
],
]
[tool.uv.sources]
# Editable installs of internal packages.
mozilla-hg-hooks = { path = "hghooks", editable = true }
bugsy = { path = "pylib/Bugsy", editable = true }
mozhg = { path = "pylib/mozhg", editable = true }
pushlog-client = { path = "pylib/mozhginfo", editable = true }
mozautomation = { path = "pylib/mozautomation", editable = true }
vcttesting = { path = "testing", editable = true }
hgmolib = { path = "hgserver/hgmolib", editable = true }
mozansible = { path = "pylib/mozansible", editable = true }
vcsreplicator = { path = "pylib/vcsreplicator", editable = true }
[tool.ruff]
target-version = "py39"