Skip to content

Commit 6ac0bd9

Browse files
committed
chore: revert the dependency upgrade and drop the age-gate exemptions
Merges the revert of "chore: upgrade deps" from the parent branch and removes tool.uv.exclude-newer-package, which only existed because aws-cdk-lib 2.263.0 was a day old and the 7-day gate refused to resolve it. Every pinned version now predates the gate on its own: aws-cdk-lib 2.254.0 80 days aws-cdk-cli 2.1130.0 23 days projen 0.99.62 75 days pytest 9.0.3 116 days aws-cdk-cli is the one exception to the revert. The upgrade had moved it from 2.1117.0, but `cdk deploy --express` does not exist in that release, so reverting it fully would have left the branch-deploy tasks passing a flag the CLI rejects. 2.1130.0 is what the TypeScript kit pins, supports --express, and clears the age gate. PINNED_PACKAGES stays, since Dependabot still needs to ignore these four. Its comment now records the constraint: keep them on releases older than MINIMUM_RELEASE_AGE_DAYS, or `uv lock` fails outright rather than merely declining the upgrade.
2 parents 00f4527 + 0e45bd2 commit 6ac0bd9

4 files changed

Lines changed: 43 additions & 57 deletions

File tree

‎.projen/deps.json‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.projenrc.py‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@
2929

3030
# Pin the CDK CLI so local runs, CI and the lockfile agree on one version. The PyPI package
3131
# ships the same CLI as the npm one, so no workflow needs Node.js installed separately.
32-
cdk_cli_version = "2.1134.0" # Find the latest CDK CLI version here: https://pypi.org/project/aws-cdk-cli/
32+
cdk_cli_version = "2.1130.0" # Find the latest CDK CLI version here: https://pypi.org/project/aws-cdk-cli/
3333

34-
# Packages whose versions this file pins. Dependabot ignores them because the next synth would
35-
# revert its bump, and the minimum-release-age gate exempts them because the pin is deliberate.
34+
# Packages whose versions this file pins, so Dependabot ignores them: the next synth would
35+
# revert its bump. Keep these pinned to releases older than MINIMUM_RELEASE_AGE_DAYS, or
36+
# `uv lock` fails outright rather than merely declining the upgrade.
3637
PINNED_PACKAGES = ["aws-cdk-lib", "aws-cdk-cli", "projen", "pytest"]
3738

3839
# Ignore releases younger than this when resolving. Matches the TypeScript kit's pnpm setting.
@@ -51,7 +52,7 @@
5152
author_email="danny@towardsthecloud.com",
5253
author_name="Danny Steenman",
5354
cdk_version_pinning=True,
54-
cdk_version="2.263.0", # Find the latest CDK version here: https://pypi.org/project/aws-cdk-lib
55+
cdk_version="2.254.0", # Find the latest CDK version here: https://pypi.org/project/aws-cdk-lib
5556
cdk_cli_version=cdk_cli_version,
5657
module_name=python_module_name,
5758
name=project_name,
@@ -61,13 +62,13 @@
6162
app_entrypoint=f"{python_module_name}/app.py",
6263
deps=["cloudstructs"], # Runtime dependencies of this module
6364
dev_deps=[
64-
"projen@0.101.23",
65+
"projen@0.99.62",
6566
"ruff",
6667
"ty",
6768
f"aws-cdk-cli@{cdk_cli_version}",
6869
], # Find the latest projen version here: https://pypi.org/project/projen/
6970
pytest_options={
70-
"version": "9.1.1"
71+
"version": "9.0.3"
7172
}, # Find the latest pytest version here: https://pypi.org/project/pytest/
7273
context={
7374
"cli-telemetry": False, # Disable AWS CDK CLI telemetry, see: https://github.com/aws/aws-cdk/issues/34892
@@ -152,13 +153,6 @@
152153
# so it needs no maintenance. Resolution only happens on `uv lock`; `uv sync --frozen`
153154
# installs exactly what the lockfile pins and is unaffected.
154155
pyproject.add_override("tool.uv.exclude-newer", f"{MINIMUM_RELEASE_AGE_DAYS} days")
155-
# The versions pinned above are a deliberate choice, so the age gate must not veto them:
156-
# pin a CDK release on its publication day and resolution would otherwise fail outright.
157-
# "0 days" means no age restriction for that package.
158-
pyproject.add_override(
159-
"tool.uv.exclude-newer-package",
160-
{name: "0 days" for name in PINNED_PACKAGES},
161-
)
162156

163157
# Add VSCode extensions recommendation
164158
JsonFile(

‎pyproject.toml‎

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎uv.lock‎

Lines changed: 28 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)