Skip to content

refactor(extensions): rename extras to extensions - #975

Merged
ParidelPooya merged 2 commits into
mainfrom
chore/rename-extras-to-extensions
Nov 20, 2026
Merged

ParidelPooya merged 2 commits into
mainfrom
chore/rename-extras-to-extensions

Conversation

@ParidelPooya

Copy link
Copy Markdown
Contributor

Issue #, if available

None.

Description of changes

This PR renames the extras package to extensions.

  • The PyPI distribution aws-durable-execution-sdk-python-extras is now aws-durable-execution-sdk-python-extensions.
  • The import package aws_durable_execution_sdk_python_extras is now aws_durable_execution_sdk_python_extensions.
  • The package folder and the module folder moved with git mv, so the file history follows.
  • The root pyproject.toml (pytest paths, hatch envs, ruff isort), the package pyproject.toml, pypi-publish.yml, type-checks.sh, RELEASING.md, AGENTS.md, the READMEs and docs, the examples and the compute worker now use the new names.
  • The hatch env dev-extras is now dev-extensions.
  • The release tag prefix extras is now extensions in RELEASING.md.
  • The version stays 0.1.0a1. The new distribution has no release yet, so 0.1.0a1 is free on PyPI.
  • No module stays under the old name.

This change breaks users of the alpha package. They must install aws-durable-execution-sdk-python-extensions and change their imports to aws_durable_execution_sdk_python_extensions.

Before merge:

  • Claim the name aws-durable-execution-sdk-python-extensions on PyPI. Set its trusted publisher to this repository, workflow pypi-publish.yml, environment pypi. Without it, the publish job fails with 403, and another account can take the name.
  • Add the tag pattern extensions-v* to the pypi environment's deployment rules and to the protected tags ruleset. Without it, a release tagged extensions-v0.1.0a1 cannot deploy to the pypi environment.

After merge:

  • Publish the new package with a release tagged extensions-v0.1.0a1.
  • Mark the old package aws-durable-execution-sdk-python-extras as deprecated on PyPI. Either publish a final release whose README points to the new name, or yank the old releases.

Design

  • Design note (rule 3): not needed. The change renames a package and adds no feature.
  • Simpler options considered (rule 2): the change adds no logic.
  • Root cause (rule 5): not a bug fix.
  • Net change in source lines and in public API members: 77 files changed, 206 insertions, 197 deletions. Most of the extra lines come from ruff, which wrapped imports that the longer name made too long. The public API members are the same. Only the module path changed.

Assumptions

  • The name aws-durable-execution-sdk-python-extensions has no release on PyPI. Unverified.

Decisions not covered by the issue or the design note

  • The JS package name @aws/durable-execution-sdk-js-extras stays. It names a package in the JS repository.
  • The logger "extras" in the core SDK (build_logger_extras) and in a test helper stay. They name logging extra fields, not this package.
  • pip extras such as boto3-stubs[...] and coverage[toml] stay. They are a different concept.
  • The PR title uses refactor(extensions): without !. The commit lint script accepts only the listed types, and it rejects refactor!. The commit body has a BREAKING CHANGE: footer.

Checklist

  • Every new branch has a test that fails without it (rule 4). The change adds no branch.
  • For a bug fix: the first commit adds a test that fails on the current code (rule 5). Not a bug fix.
  • Every edited test expectation is listed in the description, with the reason (rule 5). Tests that name a fully qualified error type, such as aws_durable_execution_sdk_python_extensions.compute.microvm.errors.MicrovmJobFailedError, now use the new module path. The behavior they check is the same.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Rename the PyPI distribution from
aws-durable-execution-sdk-python-extras to
aws-durable-execution-sdk-python-extensions.

Rename the import package from
aws_durable_execution_sdk_python_extras to
aws_durable_execution_sdk_python_extensions.

Move the package folder and the module folder with git mv.
Update the hatch envs, pytest, ruff, mypy and coverage paths, the
publish workflow matrix, the type check script, the release doc,
AGENTS.md, the READMEs and docs, the examples, and the compute
worker. Rename the dev-extras hatch env to dev-extensions.
Rename the release tag prefix from extras to extensions.
The version stays 0.1.0a1.

No module stays under the old name.

BREAKING CHANGE: users of the alpha package must install
aws-durable-execution-sdk-python-extensions and import
aws_durable_execution_sdk_python_extensions.
nvasiu
nvasiu previously approved these changes Nov 20, 2026
yaythomas
yaythomas previously approved these changes Nov 20, 2026

@SilanHe SilanHe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JS examples run breaks once the JS rename merges.** .github/scripts/js_examples/run.py lists packages/aws-durable-execution-sdk-js-extras in JS_BUILD_WORKSPACES (line 79) and marks it optional (line 93). After aws/aws-durable-execution-sdk-js#1266 merges, JS main has -js-extensions instead.

🤖 AI-assisted comment

@ParidelPooya
ParidelPooya dismissed stale reviews from yaythomas and nvasiu via 111f9a9 November 20, 2026 20:35
@ParidelPooya

ParidelPooya commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

@SilanHe Fixed in bca2aba. run.py now lists both -js-extras and -js-extensions, and both are optional. So a JS ref from before or after aws/aws-durable-execution-sdk-js#1266 builds. The test now covers both names.

The JS examples run builds a list of JS workspaces. The list named only
packages/aws-durable-execution-sdk-js-extras. JS main now has
packages/aws-durable-execution-sdk-js-extensions instead, after
aws/aws-durable-execution-sdk-js#1266. So the run would skip the package
that the JS examples import.

The list now names both packages, and both are optional. A JS ref from
before the rename builds extras, and a ref from after it builds
extensions. This matches how the list handles the worker rename.

The test now covers a checkout with extras, one with extensions, and one
with neither.
@ParidelPooya
ParidelPooya force-pushed the chore/rename-extras-to-extensions branch from 111f9a9 to bca2aba Compare November 20, 2026 20:41
@ParidelPooya
ParidelPooya marked this pull request as ready for review November 20, 2026 21:09
@ParidelPooya
ParidelPooya merged commit 70c1ea5 into main Nov 20, 2026
23 checks passed
@ParidelPooya
ParidelPooya deleted the chore/rename-extras-to-extensions branch November 20, 2026 21:09
@ParidelPooya
ParidelPooya deployed to ai-pr-review-runtime November 20, 2026 21:09 — with GitHub Actions Active
ParidelPooya added a commit that referenced this pull request Nov 20, 2026
Resolve conflicts from the extras to extensions package rename in #975.

This branch was successfully deployed

1 active deployment
ai-pr-review-runtime — bca2aba6 Deployed Nov 20, 2026 by ParidelPooya via notify / Generate notification summary #470
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants