Skip to content

release: 1.27.0 #660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 16, 2025
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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@ jobs:
- name: Run lints
run: ./scripts/lint

upload:
if: github.repository == 'stainless-sdks/finch-python'
timeout-minutes: 10
name: upload
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Get GitHub OIDC Token
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh

test:
timeout-minutes: 10
name: test
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.26.1"
".": "1.27.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 46
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-f09e5f2c555d7ee764478b7bc73e92cd21f403d6ec189be14574c8367bc131ce.yml
openapi_spec_hash: bd0a8e001f14132c105992d40149909a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-5b00a0bc705b1d5bfcb5ea79c7af544766d51ec12ccc4721825664ab397789d8.yml
openapi_spec_hash: 34891659cff31395ba7683a8153b1db5
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 1.27.0 (2025-05-16)

Full Changelog: [v1.26.1...v1.27.0](https://github.com/Finch-API/finch-api-python/compare/v1.26.1...v1.27.0)

### Features

* **api:** api update ([abc60a2](https://github.com/Finch-API/finch-api-python/commit/abc60a28fc9fe40464299491ae8209259f8bca78))
* **api:** api update ([fd20b60](https://github.com/Finch-API/finch-api-python/commit/fd20b60e775673b78edeb40771d8af7f7a55bb08))
* **api:** api update ([0af1c84](https://github.com/Finch-API/finch-api-python/commit/0af1c8443ffd922047b0f4f892f712668c9f54c9))


### Chores

* **ci:** fix installation instructions ([ac6a9d8](https://github.com/Finch-API/finch-api-python/commit/ac6a9d8edf95f3343dd38f09693fc7ff22cebd91))
* **ci:** upload sdks to package manager ([c867997](https://github.com/Finch-API/finch-api-python/commit/c86799760455e97fca934c83e2eef0986d7f8e89))

## 1.26.1 (2025-05-09)

Full Changelog: [v1.26.0...v1.26.1](https://github.com/Finch-API/finch-api-python/compare/v1.26.0...v1.26.1)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "finch-api"
version = "1.26.1"
version = "1.27.0"
description = "The official Python library for the Finch API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
25 changes: 25 additions & 0 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -exuo pipefail

RESPONSE=$(curl -X POST "$URL" \
-H "Authorization: Bearer $AUTH" \
-H "Content-Type: application/json")

SIGNED_URL=$(echo "$RESPONSE" | jq -r '.url')

if [[ "$SIGNED_URL" == "null" ]]; then
echo -e "\033[31mFailed to get signed URL.\033[0m"
exit 1
fi

UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$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/finch-python/$SHA'\033[0m"
else
echo -e "\033[31mFailed to upload artifact.\033[0m"
exit 1
fi
2 changes: 1 addition & 1 deletion src/finch/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "finch"
__version__ = "1.26.1" # x-release-please-version
__version__ = "1.27.0" # x-release-please-version
2 changes: 1 addition & 1 deletion src/finch/types/hris/pay_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class PayStatement(BaseModel):

net_pay: Optional[Money] = None

payment_method: Optional[Literal["check", "direct_deposit"]] = None
payment_method: Optional[Literal["check", "direct_deposit", "other"]] = None
"""The payment method."""

taxes: Optional[List[Optional[Tax]]] = None
Expand Down
2 changes: 1 addition & 1 deletion src/finch/types/sandbox/payment_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class PayStatement(TypedDict, total=False):

net_pay: Optional[MoneyParam]

payment_method: Optional[Literal["check", "direct_deposit"]]
payment_method: Optional[Literal["check", "direct_deposit", "other"]]
"""The payment method."""

taxes: Optional[Iterable[Optional[PayStatementTax]]]
Expand Down