diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9c0dacc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +name: Release + +on: + push: + branches: [main] + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: google-github-actions/release-please-action@v4.1.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..e18ee07 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.0" +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..0f28fec --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog + +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](https://semver.org/). + +This changelog is managed by [release-please](https://github.com/googleapis/release-please). + +### Development history + +The following work was completed before the first versioned release: + +- Project scaffolding with uv, hatchling, ruff, pyright strict, mypy strict +- CI workflow (lint, typecheck, test matrix across Python 3.10-3.13) +- OpenAPI spec pinned to commit e614f35 (2026-11-21) +- 24 Pydantic v2 models generated from the Trigger.dev OpenAPI spec (Tier 1) +- 16 typed exception classes covering all HTTP status codes +- Sync Client with 22 endpoint methods across tasks, runs, and schedules +- 101 unit tests with full type coverage +- README with installation, quick start, and feature examples diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..00bb101 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,26 @@ +{ + "packages": { + ".": { + "release-type": "python", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, + "include-v-in-tag": true, + "changelog-sections": [ + {"type": "feat", "section": "Features"}, + {"type": "fix", "section": "Bug Fixes"}, + {"type": "perf", "section": "Performance"}, + {"type": "docs", "section": "Documentation"}, + {"type": "chore", "section": "Chores", "hidden": false}, + {"type": "test", "hidden": true}, + {"type": "ci", "hidden": true}, + {"type": "build", "hidden": true}, + {"type": "refactor", "hidden": true}, + {"type": "style", "hidden": true} + ], + "extra-files": [ + "src/triggerdev/_version.py" + ] + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} diff --git a/src/triggerdev/__init__.py b/src/triggerdev/__init__.py index 284235b..aebb178 100644 --- a/src/triggerdev/__init__.py +++ b/src/triggerdev/__init__.py @@ -19,6 +19,7 @@ TriggerDevError, UnprocessableEntityError, ) +from triggerdev._version import __version__ __all__ = [ "APIConnectionError", @@ -38,6 +39,5 @@ "ServiceUnavailableError", "TriggerDevError", "UnprocessableEntityError", + "__version__", ] - -__version__ = "0.0.0" diff --git a/src/triggerdev/_version.py b/src/triggerdev/_version.py new file mode 100644 index 0000000..7739d03 --- /dev/null +++ b/src/triggerdev/_version.py @@ -0,0 +1 @@ +__version__ = "0.0.0" # x-release-please-version diff --git a/tests/test_version.py b/tests/test_version.py index 91d9b4f..03c8451 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -1,3 +1,5 @@ +import re + from triggerdev import __version__ @@ -5,5 +7,5 @@ def test_version_is_string() -> None: assert isinstance(__version__, str) -def test_version_is_set() -> None: - assert __version__ == "0.0.0" +def test_version_is_semver() -> None: + assert re.match(r"^\d+\.\d+\.\d+$", __version__)