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
26 changes: 16 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: CI
on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
branches:
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
Expand All @@ -17,7 +19,7 @@ jobs:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/post-for-me-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6

Expand All @@ -36,7 +38,7 @@ jobs:
run: ./scripts/lint

build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
timeout-minutes: 10
name: build
permissions:
Expand All @@ -61,14 +63,18 @@ jobs:
run: rye build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/post-for-me-python'
if: |-
github.repository == 'stainless-sdks/post-for-me-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/post-for-me-python'
if: |-
github.repository == 'stainless-sdks/post-for-me-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.prism.log
.stdy.log
_dev

__pycache__
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.13.0"
".": "1.14.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: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/day-moon-development%2Fpost-for-me-72599bb249d19e707656e49033ef4ce3cdc94f2eaaa2b7ce0c970181a33d2c40.yml
openapi_spec_hash: b21000843cb9ca5be35b80a35e599a48
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/day-moon-development%2Fpost-for-me-4ab77a12a89621944a10c6383193ad885148886601ae135b2558beb9fd145daa.yml
openapi_spec_hash: 74462f287ddc518cbea2f7f81e8ec350
config_hash: 0ec19602e41aea0526548245a59d4253
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Changelog

## 1.14.0 (2026-04-08)

Full Changelog: [v1.13.0...v1.14.0](https://github.com/DayMoonDevelopment/post-for-me-python/compare/v1.13.0...v1.14.0)

### Features

* **api:** api update ([6493cff](https://github.com/DayMoonDevelopment/post-for-me-python/commit/6493cff6ece9776a1dd7284d93e5c9ae8dbcd1a3))
* **api:** api update ([b91a784](https://github.com/DayMoonDevelopment/post-for-me-python/commit/b91a78432b0ae3b6cf3efa32b526204a5a3092cf))
* **internal:** implement indices array format for query and form serialization ([623f551](https://github.com/DayMoonDevelopment/post-for-me-python/commit/623f551f101d34f423c3fcdb790f48dac371516f))


### Bug Fixes

* **client:** preserve hardcoded query params when merging with user params ([d129c09](https://github.com/DayMoonDevelopment/post-for-me-python/commit/d129c09679437a7e2d9d00b9795dc555b2cbdff4))
* **deps:** bump minimum typing-extensions version ([f80fc21](https://github.com/DayMoonDevelopment/post-for-me-python/commit/f80fc219beaf2a79a312e32ea542926277608506))
* **pydantic:** do not pass `by_alias` unless set ([39ebd98](https://github.com/DayMoonDevelopment/post-for-me-python/commit/39ebd9853f5f44b40baf3452e5f84d3e2d08f980))
* sanitize endpoint path params ([c24a027](https://github.com/DayMoonDevelopment/post-for-me-python/commit/c24a0271af9b71201a93d881836ce0059d5e4782))


### Chores

* **ci:** skip lint on metadata-only changes ([3bd82af](https://github.com/DayMoonDevelopment/post-for-me-python/commit/3bd82afdfd9faf055e778c6ef056e07f1554fb62))
* **ci:** skip uploading artifacts on stainless-internal branches ([2978ba7](https://github.com/DayMoonDevelopment/post-for-me-python/commit/2978ba728315992f4ab21fad7f6315b8ff5cd363))
* **internal:** codegen related update ([43838e2](https://github.com/DayMoonDevelopment/post-for-me-python/commit/43838e2b82ae232299d10b37f87bf429b0f21472))
* **internal:** tweak CI branches ([6251172](https://github.com/DayMoonDevelopment/post-for-me-python/commit/625117263a7863bba2f632de36a3ac23adee4be5))
* **internal:** update gitignore ([022cf8c](https://github.com/DayMoonDevelopment/post-for-me-python/commit/022cf8c10f6accd06d21f50faf9f81adefa5c8c1))

## 1.13.0 (2026-02-25)

Full Changelog: [v1.12.0...v1.13.0](https://github.com/DayMoonDevelopment/post-for-me-python/compare/v1.12.0...v1.13.0)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "post_for_me"
version = "1.13.0"
version = "1.14.0"
description = "The official Python library for the post-for-me API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand All @@ -11,7 +11,7 @@ authors = [
dependencies = [
"httpx>=0.23.0, <1",
"pydantic>=1.9.0, <3",
"typing-extensions>=4.10, <5",
"typing-extensions>=4.14, <5",
"anyio>=3.5.0, <5",
"distro>=1.7.0, <2",
"sniffio",
Expand Down
4 changes: 4 additions & 0 deletions src/post_for_me/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,10 @@ def _build_request(
files = cast(HttpxRequestFiles, ForceMultipartDict())

prepared_url = self._prepare_url(options.url)
# preserve hard-coded query params from the url
if params and prepared_url.query:
params = {**dict(prepared_url.params.items()), **params}
prepared_url = prepared_url.copy_with(raw_path=prepared_url.raw_path.split(b"?", 1)[0])
if "_" in prepared_url.host:
# work around https://github.com/encode/httpx/discussions/2880
kwargs["extensions"] = {"sni_hostname": prepared_url.host.replace("_", "-")}
Expand Down
Loading