Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to PyPI

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
Comment thread
cretz marked this conversation as resolved.
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v6

- run: uv build

- uses: pypa/gh-action-pypi-publish@release/v1
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ from baseten.client import AsyncManagementClient
async with AsyncManagementClient(api_key="my-api-key") as client:
for model in (await client.api.get_models()).models:
print(model.name)
```
```

## Upgrading from 0.8.2 and earlier

Version 0.9.0 is a rewrite and shares no API with the earlier `baseten` releases.
Code written against 0.8.2 or earlier will not work. Pin `baseten<0.9` to keep it.
Empty file removed baseten/__init__.py
Empty file.
File renamed without changes.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,11 @@ exclude = ["scripts/e2e_test_bootstrap/"]
requires = ["hatchling"]
build-backend = "hatchling.build"

# baseten is a PEP 420 namespace package shared across baseten-* distributions
# (e.g. baseten-loops provides baseten.loops). There is intentionally no
# baseten/__init__.py; this names the namespace dir for hatchling to package.
[tool.hatch.build.targets.wheel]
packages = ["baseten"]

[tool.pytest.ini_options]
testpaths = ["tests"]
Loading