Skip to content

chore: rename distro to archastro-sdk, reset version to 0.1.0 - #3

Merged
calvin-archastro merged 1 commit into
mainfrom
chore/rename-to-archastro-sdk
Apr 17, 2026
Merged

chore: rename distro to archastro-sdk, reset version to 0.1.0#3
calvin-archastro merged 1 commit into
mainfrom
chore/rename-to-archastro-sdk

Conversation

@calvin-archastro

Copy link
Copy Markdown
Contributor

Summary

Fresh-start rename — ship as `archastro-sdk 0.1.0` rather than inheriting `archastro-platform-sdk 0.77.0` from the firstlanding import.

These changes were on `feat/initial-setup` during PR #1 but didn't make it into the merge — rebasing onto main now that PR #2's flake fix is in.

What changed

File Change
`pyproject.toml` `name` → `archastro-sdk`, `version` → `0.1.0`
`scripts/sdk-generator-config.json` same name/version for future regens
`README.md` `pip install archastro-sdk`
`src/archastro/platform/init.py` `_pkg_version("archastro-sdk")` (one-line manual patch; see below)
`uv.lock` regenerated

The Python import path (`archastro`) is unchanged — only the pip-install name and the `importlib.metadata` lookup key change.

Generator coupling

`init.py` is auto-generated by `@archastro/sdk-generator`, which hardcodes `_pkg_version("archastro-platform-sdk")`. The manual patch here will be clobbered on the next `./scripts/regenerate_sdk.sh` until the fix in archastro-openapi#4 ships in `@archastro/sdk-generator@0.1.1+`. That PR makes the emitter interpolate `spec.name` — after it lands and is published, regens produce the correct output unaided.

Risk

Low. Pure rename. No Python API change for consumers. Tests all still pass locally.

Testing

  • `uv run python -c "import archastro.platform; print(archastro.platform.version)"` → `0.1.0`
  • 51 non-contract tests pass (http_client, phx_channel unit, harness-client integration)
  • `ARCHASTRO_RUN_CHANNEL_CONTRACT_TESTS=1 uv run pytest tests/contract` → 641 passing (including all 3 channel contract suites over a real `@archastro/channel-harness` subprocess — no flakes since PR fix(phx_channel): buffer pushes that arrive before on() is registered #2's buffering fix)
  • `ruff check` + `ruff format --check` clean

🤖 Generated with Claude Code

Fresh-start rename — ship as archastro-sdk 0.1.0 rather than inheriting
archastro-platform-sdk 0.77.0 from the firstlanding import. These
changes were on feat/initial-setup but got left behind when PR #1
merged; rebasing onto main now that PR #2's flake fix is in.

- pyproject.toml: name → archastro-sdk, version → 0.1.0
- scripts/sdk-generator-config.json: matches
- README: pip install archastro-sdk
- src/archastro/platform/__init__.py: patched to look up
  \"archastro-sdk\" via importlib.metadata. This file is
  auto-generated; the generator fix that will make this automatic is
  ArchAstro/archastro-openapi#4 — once that ships in
  @archastro/sdk-generator@0.1.1+, future regens produce the right
  output without patching.
- uv.lock: regenerated

The Python import path (`archastro`) is unchanged — only the
pip-install name and the __version__ lookup key change.

Local verification
  uv run python -c \"import archastro.platform; print(archastro.platform.__version__)\"
  → 0.1.0

Test suite: 51 non-contract tests + 641 contract tests (incl. channel
suites over a real @archastro/channel-harness subprocess) all pass;
ruff check + format clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@calvin-archastro
calvin-archastro merged commit 6e85726 into main Apr 17, 2026
2 checks passed
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.

1 participant