Skip to content

Make baseten a namespace package and add PyPI publish workflow#7

Merged
cretz merged 2 commits into
mainfrom
cretz/release-prep
Jun 5, 2026
Merged

Make baseten a namespace package and add PyPI publish workflow#7
cretz merged 2 commits into
mainfrom
cretz/release-prep

Conversation

@cretz

@cretz cretz commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

🚀 What

Need baseten to be a namespace package so other baseten-whatever projects can be baseten.whatever. Also need release workflow.

💻 How

  • Got rid of files directly under baseten/
  • Add release GH workflow

🔬 Testing

Manually confirmed can be used as namespace package

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR converts baseten into a PEP 420 namespace package (to allow sibling distributions like baseten-foo to provide baseten.foo) and adds a GitHub Actions workflow to publish releases to PyPI.

Changes:

  • Remove baseten/__init__.py and configure Hatch to package the baseten namespace directory.
  • Add a release-triggered PyPI publish workflow using uv build + pypa/gh-action-pypi-publish.
  • Document the 0.9.0 breaking rewrite in the README.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Adds upgrade guidance for users coming from pre-0.9 releases.
pyproject.toml Configures Hatch wheel packaging for the baseten namespace directory.
baseten/client/py.typed Marks the client package as typed (PEP 561).
baseten/init.py Removed to make baseten a namespace package (PEP 420).
.github/workflows/publish.yml Adds a release-based publish pipeline to PyPI via OIDC.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/publish.yml
@cretz cretz merged commit 2b6c29d into main Jun 5, 2026
4 of 8 checks passed
@cretz cretz deleted the cretz/release-prep branch June 5, 2026 11:59
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.

3 participants