Skip to content

Commit 606ad78

Browse files
authored
Exclude release-specific Python packages dependencies by default (#1314)
* uv: use dependency groups to limit default dependencies * uv: update lowest-direct requirements and resync
1 parent 59a8c10 commit 606ad78

File tree

3 files changed

+60
-23
lines changed

3 files changed

+60
-23
lines changed

Diff for: etc/releasing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Create and activate a fresh Python 3 virtual environment with required packages
358358
export UV_PROJECT_ENVIRONMENT="$HOME/mongo-cxx-driver-release-venv"
359359

360360
# Install required packages into a new virtual environment.
361-
uv sync --frozen
361+
uv sync --frozen --group apidocs --group make_release
362362

363363
# Activate the virtual environment.
364364
source "$UV_PROJECT_ENVIRONMENT/bin/activate"

Diff for: pyproject.toml

+24-11
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,38 @@ dependencies = []
77

88
[dependency-groups]
99
dev = [
10-
# .evergreen/config_generator/generate.py
11-
"packaging>=14.0",
12-
"pydantic>=2.7",
13-
"shrub-py>=3.6.0",
14-
15-
# etc/make_release.py (requires python<3.12)
16-
"click>=6.0",
17-
"gitpython>=3.1",
18-
"jira>=3.1",
19-
"looseversion>=1.3",
20-
"pygithub>=2.0",
10+
# {include-group="apidocs"},
11+
{include-group="clang_format"},
12+
{include-group="config_generator"},
13+
# {include-group="make_release"},
14+
]
2115

16+
apidocs = [
2217
# etc/patch-apidocs-current-redirects.py
2318
"packaging>=14.0",
2419

2520
# etc/patch-apidocs-index-pages.py
2621
"beautifulsoup4>=4.12",
2722
"packaging>=14.0",
23+
]
2824

25+
clang_format = [
2926
# etc/clang-format-all.sh
3027
"clang-format~=19.1",
3128
]
29+
30+
config_generator = [
31+
# .evergreen/config_generator/generate.py
32+
"packaging>=14.0",
33+
"pydantic>=2.8",
34+
"shrub-py>=3.6",
35+
]
36+
37+
make_release = [
38+
# etc/make_release.py (requires python<3.12)
39+
"click>=6.0",
40+
"gitpython>=3.1",
41+
"jira>=3.1",
42+
"looseversion>=1.3",
43+
"pygithub>=2.1",
44+
]

Diff for: uv.lock

+35-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)