diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c7ce212..605c832e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,10 +35,10 @@ jobs: - name: Run lints run: ./scripts/lint - upload: + build: if: github.repository == 'stainless-sdks/orb-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) timeout-minutes: 10 - name: upload + name: build permissions: contents: read id-token: write @@ -46,6 +46,20 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Rye + 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: Install dependencies + run: rye sync --all-features + + - name: Run build + run: rye build + - name: Get GitHub OIDC Token id: github-oidc uses: actions/github-script@v6 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 43e988c0..29102aeb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.2.2" + ".": "4.3.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 090c0e18..4db8fd70 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 116 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-ff68c7ee2669d61716781d01b93f34186fb7a19ff4ad6fc2c0b8f9f4d9c4a588.yml -openapi_spec_hash: 17bdc6b1ca2531dc884c6d156f404f0c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d4db2933d3d6b8c855e3351dcce658777ec9a413eb78f176b2e63b1e99fddf68.yml +openapi_spec_hash: 858adc7f2e0c8c631ef733dfd8f9ea0a config_hash: 3c3524be9607afb24d2139ce26ce5389 diff --git a/CHANGELOG.md b/CHANGELOG.md index de3ff732..427079cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 4.3.0 (2025-07-04) + +Full Changelog: [v4.2.2...v4.3.0](https://github.com/orbcorp/orb-python/compare/v4.2.2...v4.3.0) + +### Features + +* **api:** api update ([0b3de08](https://github.com/orbcorp/orb-python/commit/0b3de08c2025ef8eb906445dcf00a7e807ad5efa)) + + +### Chores + +* **ci:** change upload type ([5faccd9](https://github.com/orbcorp/orb-python/commit/5faccd99a99d35c4f2a2a9de676b97f971f31cb1)) + ## 4.2.2 (2025-06-29) Full Changelog: [v4.2.1...v4.2.2](https://github.com/orbcorp/orb-python/compare/v4.2.1...v4.2.2) diff --git a/pyproject.toml b/pyproject.toml index b3bdb1fe..97113576 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "orb-billing" -version = "4.2.2" +version = "4.3.0" description = "The official Python library for the orb API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh index 1cc7f157..f67398e8 100755 --- a/scripts/utils/upload-artifact.sh +++ b/scripts/utils/upload-artifact.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash set -exuo pipefail -RESPONSE=$(curl -X POST "$URL" \ +FILENAME=$(basename dist/*.whl) + +RESPONSE=$(curl -X POST "$URL?filename=$FILENAME" \ -H "Authorization: Bearer $AUTH" \ -H "Content-Type: application/json") @@ -12,13 +14,13 @@ if [[ "$SIGNED_URL" == "null" ]]; then exit 1 fi -UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \ - -H "Content-Type: application/gzip" \ - --data-binary @- "$SIGNED_URL" 2>&1) +UPLOAD_RESPONSE=$(curl -v -X PUT \ + -H "Content-Type: binary/octet-stream" \ + --data-binary "@dist/$FILENAME" "$SIGNED_URL" 2>&1) if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then echo -e "\033[32mUploaded build to Stainless storage.\033[0m" - echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/orb-python/$SHA'\033[0m" + echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/orb-python/$SHA/$FILENAME'\033[0m" else echo -e "\033[31mFailed to upload artifact.\033[0m" exit 1 diff --git a/src/orb/_version.py b/src/orb/_version.py index cabf5ab9..e58a1ea6 100644 --- a/src/orb/_version.py +++ b/src/orb/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "orb" -__version__ = "4.2.2" # x-release-please-version +__version__ = "4.3.0" # x-release-please-version diff --git a/src/orb/types/shared/new_allocation_price.py b/src/orb/types/shared/new_allocation_price.py index 9f4e1d8e..8ddb175e 100644 --- a/src/orb/types/shared/new_allocation_price.py +++ b/src/orb/types/shared/new_allocation_price.py @@ -13,7 +13,7 @@ class NewAllocationPrice(BaseModel): amount: str """An amount of the currency to allocate to the customer at the specified cadence.""" - cadence: Literal["one_time", "monthly", "quarterly", "semi_annual", "annual", "custom"] + cadence: Literal["one_time", "monthly", "quarterly", "semi_annual", "annual"] """The cadence at which to allocate the amount to the customer.""" currency: str diff --git a/src/orb/types/shared_params/new_allocation_price.py b/src/orb/types/shared_params/new_allocation_price.py index b0dcca50..0d78d15a 100644 --- a/src/orb/types/shared_params/new_allocation_price.py +++ b/src/orb/types/shared_params/new_allocation_price.py @@ -14,7 +14,7 @@ class NewAllocationPrice(TypedDict, total=False): amount: Required[str] """An amount of the currency to allocate to the customer at the specified cadence.""" - cadence: Required[Literal["one_time", "monthly", "quarterly", "semi_annual", "annual", "custom"]] + cadence: Required[Literal["one_time", "monthly", "quarterly", "semi_annual", "annual"]] """The cadence at which to allocate the amount to the customer.""" currency: Required[str]