mirror of
https://github.com/anomalyco/opencode-sdk-python.git
synced 2026-05-06 08:22:07 +00:00
Merge pull request #1 from sst/release-please--branches--main--changes--next
release: 0.1.0-alpha.1
This commit is contained in:
commit
ddb79fc19d
10 changed files with 24 additions and 51 deletions
38
.github/workflows/create-releases.yml
vendored
38
.github/workflows/create-releases.yml
vendored
|
|
@ -1,38 +0,0 @@
|
|||
name: Create releases
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 5 * * *' # every day at 5am UTC
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: release
|
||||
if: github.ref == 'refs/heads/main' && github.repository == 'sst/opencode-sdk-python'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: stainless-api/trigger-release-please@v1
|
||||
id: release
|
||||
with:
|
||||
repo: ${{ github.event.repository.full_name }}
|
||||
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
|
||||
|
||||
- name: Install Rye
|
||||
if: ${{ steps.release.outputs.releases_created }}
|
||||
run: |
|
||||
curl -sSf https://rye.astral.sh/get | bash
|
||||
echo "$HOME/.rye/shims" >> $GITHUB_PATH
|
||||
env:
|
||||
RYE_VERSION: '0.44.0'
|
||||
RYE_INSTALL_OPTION: '--yes'
|
||||
|
||||
- name: Publish to PyPI
|
||||
if: ${{ steps.release.outputs.releases_created }}
|
||||
run: |
|
||||
bash ./bin/publish-pypi
|
||||
env:
|
||||
PYPI_TOKEN: ${{ secrets.OPENCODE_PYPI_TOKEN || secrets.PYPI_TOKEN }}
|
||||
8
.github/workflows/publish-pypi.yml
vendored
8
.github/workflows/publish-pypi.yml
vendored
|
|
@ -1,9 +1,13 @@
|
|||
# workflow for re-running publishing to PyPI in case it fails for some reason
|
||||
# you can run this workflow by navigating to https://www.github.com/sst/opencode-sdk-python/actions/workflows/publish-pypi.yml
|
||||
# This workflow is triggered when a GitHub release is created.
|
||||
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
|
||||
# You can run this workflow by navigating to https://www.github.com/sst/opencode-sdk-python/actions/workflows/publish-pypi.yml
|
||||
name: Publish PyPI
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: publish
|
||||
|
|
|
|||
1
.github/workflows/release-doctor.yml
vendored
1
.github/workflows/release-doctor.yml
vendored
|
|
@ -18,5 +18,4 @@ jobs:
|
|||
run: |
|
||||
bash ./bin/check-release-environment
|
||||
env:
|
||||
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
|
||||
PYPI_TOKEN: ${{ secrets.OPENCODE_PYPI_TOKEN || secrets.PYPI_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
".": "0.0.1-alpha.0"
|
||||
".": "0.1.0-alpha.1"
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
configured_endpoints: 16
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-3c79948402e96d2aae6e46095db2cf80759750d1b042d6f91281a72c415b14de.yml
|
||||
openapi_spec_hash: f9c2fc5988f0a30397929995c2be2c85
|
||||
config_hash: a588d4012d27a0d7894c151f8a032e15
|
||||
config_hash: fddca9bc092956a3e82f3f3bdba448d1
|
||||
|
|
|
|||
12
CHANGELOG.md
Normal file
12
CHANGELOG.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Changelog
|
||||
|
||||
## 0.1.0-alpha.1 (2025-06-27)
|
||||
|
||||
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/sst/opencode-sdk-python/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
|
||||
|
||||
### Features
|
||||
|
||||
* **api:** update via SDK Studio ([6e58c71](https://github.com/sst/opencode-sdk-python/commit/6e58c71f2372aa3d44c0d30e0309011ef22a9e04))
|
||||
* **api:** update via SDK Studio ([06a27a0](https://github.com/sst/opencode-sdk-python/commit/06a27a02713a8d7bb141e1db844c0b7466818a1d))
|
||||
* **api:** update via SDK Studio ([e77f059](https://github.com/sst/opencode-sdk-python/commit/e77f05977e808723ca9df84c481a42f601ca4fd1))
|
||||
* **api:** update via SDK Studio ([ff05a4a](https://github.com/sst/opencode-sdk-python/commit/ff05a4adf063d98b3434af29069ea513243071e0))
|
||||
|
|
@ -20,7 +20,7 @@ or products provided by Opencode, please follow the respective company's securit
|
|||
|
||||
### Opencode Terms and Policies
|
||||
|
||||
Please contact hello@sst.dev for any questions or concerns regarding the security of our services.
|
||||
Please contact support@sst.dev for any questions or concerns regarding the security of our services.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,6 @@
|
|||
|
||||
errors=()
|
||||
|
||||
if [ -z "${STAINLESS_API_KEY}" ]; then
|
||||
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
|
||||
fi
|
||||
|
||||
if [ -z "${PYPI_TOKEN}" ]; then
|
||||
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
[project]
|
||||
name = "opencode"
|
||||
version = "0.0.1-alpha.0"
|
||||
version = "0.1.0-alpha.1"
|
||||
description = "The official Python library for the opencode API"
|
||||
dynamic = ["readme"]
|
||||
license = "Apache-2.0"
|
||||
authors = [
|
||||
{ name = "Opencode", email = "hello@sst.dev" },
|
||||
{ name = "Opencode", email = "support@sst.dev" },
|
||||
]
|
||||
dependencies = [
|
||||
"httpx>=0.23.0, <1",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
__title__ = "opencode"
|
||||
__version__ = "0.0.1-alpha.0" # x-release-please-version
|
||||
__version__ = "0.1.0-alpha.1" # x-release-please-version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue