Skip to content

Commit 5414093

Browse files
authored
Merge pull request #12 from brand-dot-dev/release-please--branches--main--changes--next
release: 1.10.0
2 parents fd74981 + 72e3e38 commit 5414093

23 files changed

Lines changed: 131 additions & 319 deletions

.github/workflows/ci.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,31 @@ jobs:
3535
- name: Run lints
3636
run: ./scripts/lint
3737

38-
upload:
39-
if: github.repository == 'stainless-sdks/brand.dev-python'
38+
build:
39+
if: github.repository == 'stainless-sdks/brand.dev-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
4040
timeout-minutes: 10
41-
name: upload
41+
name: build
4242
permissions:
4343
contents: read
4444
id-token: write
4545
runs-on: depot-ubuntu-24.04
46-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4746
steps:
4847
- uses: actions/checkout@v4
4948

49+
- name: Install Rye
50+
run: |
51+
curl -sSf https://rye.astral.sh/get | bash
52+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
53+
env:
54+
RYE_VERSION: '0.44.0'
55+
RYE_INSTALL_OPTION: '--yes'
56+
57+
- name: Install dependencies
58+
run: rye sync --all-features
59+
60+
- name: Run build
61+
run: rye build
62+
5063
- name: Get GitHub OIDC Token
5164
id: github-oidc
5265
uses: actions/github-script@v6

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.9.0"
2+
".": "1.10.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 10
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-aff48154fa37f0eb293cf660842ceab35c597509aee08f6b76df066828229c58.yml
3-
openapi_spec_hash: a8ade5d7246da14e2ff161e829d11c12
4-
config_hash: 8f3ee44d690a305369555016a77ed016
1+
configured_endpoints: 9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-70f44e886c51bd700af031ad9b5c8f0042ef15fde038ba83ed08f61cd9d05266.yml
3+
openapi_spec_hash: 9b834ba9e373689a8e2fbd8312b1f2de
4+
config_hash: 4b10254ea5b8e26ce632222b94a918aa

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## 1.10.0 (2025-07-21)
4+
5+
Full Changelog: [v1.9.0...v1.10.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.9.0...v1.10.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([89a4986](https://github.com/brand-dot-dev/python-sdk/commit/89a49860aa2c253b9f12397684d7ee38670298b1))
10+
* clean up environment call outs ([3d8cf3d](https://github.com/brand-dot-dev/python-sdk/commit/3d8cf3dcad83da7cf75078c501997fb0cfc4eefa))
11+
12+
13+
### Bug Fixes
14+
15+
* **ci:** correct conditional ([ad26494](https://github.com/brand-dot-dev/python-sdk/commit/ad26494daca49a55899f9e769e9b38e20f51857a))
16+
* **client:** don't send Content-Type header on GET requests ([34c2827](https://github.com/brand-dot-dev/python-sdk/commit/34c2827853c1d1c04ac05d3ce3fa519179d60793))
17+
* **parsing:** correctly handle nested discriminated unions ([3f1078d](https://github.com/brand-dot-dev/python-sdk/commit/3f1078dede16aed00d8e434b4491f4f3285cfe51))
18+
19+
20+
### Chores
21+
22+
* **ci:** change upload type ([9f67ed0](https://github.com/brand-dot-dev/python-sdk/commit/9f67ed039e0b905f81d8c1e1a1bd79e9c997d483))
23+
* **internal:** bump pinned h11 dep ([a9e93bf](https://github.com/brand-dot-dev/python-sdk/commit/a9e93bf5b4f7d4d6bf2c82b9e1db113a8396d398))
24+
* **internal:** codegen related update ([92cf858](https://github.com/brand-dot-dev/python-sdk/commit/92cf85837fb7a56a98736c97d5115308e51c5906))
25+
* **package:** mark python 3.13 as supported ([4600562](https://github.com/brand-dot-dev/python-sdk/commit/46005627ab1a6e83e62bb90a8b8f0183b2292786))
26+
* **readme:** fix version rendering on pypi ([ed9ea71](https://github.com/brand-dot-dev/python-sdk/commit/ed9ea71094d6bede408dd145d9951bd5bf24c0b8))
27+
328
## 1.9.0 (2025-06-29)
429

530
Full Changelog: [v1.8.0...v1.9.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.8.0...v1.9.0)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Brand Dev Python API library
22

3-
[![PyPI version](<https://img.shields.io/pypi/v/brand.dev.svg?label=pypi%20(stable)>)](https://pypi.org/project/brand.dev/)
3+
<!-- prettier-ignore -->
4+
[![PyPI version](https://img.shields.io/pypi/v/brand.dev.svg?label=pypi%20(stable))](https://pypi.org/project/brand.dev/)
45

56
The Brand Dev Python library provides convenient access to the Brand Dev REST API from any Python 3.8+
67
application. The library includes type definitions for all request params and response fields,
@@ -82,15 +83,14 @@ pip install brand.dev[aiohttp]
8283
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
8384

8485
```python
85-
import os
8686
import asyncio
8787
from brand.dev import DefaultAioHttpClient
8888
from brand.dev import AsyncBrandDev
8989

9090

9191
async def main() -> None:
9292
async with AsyncBrandDev(
93-
api_key=os.environ.get("BRAND_DEV_API_KEY"), # This is the default and can be omitted
93+
api_key="My API Key",
9494
http_client=DefaultAioHttpClient(),
9595
) as client:
9696
brand = await client.brand.retrieve(

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ from brand.dev.types import (
1212
BrandRetrieveNaicsResponse,
1313
BrandRetrieveSimplifiedResponse,
1414
BrandScreenshotResponse,
15-
BrandSearchResponse,
1615
BrandStyleguideResponse,
1716
)
1817
```
@@ -27,5 +26,4 @@ Methods:
2726
- <code title="get /brand/naics">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve_naics</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_naics_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_naics_response.py">BrandRetrieveNaicsResponse</a></code>
2827
- <code title="get /brand/retrieve-simplified">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve_simplified</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_simplified_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_simplified_response.py">BrandRetrieveSimplifiedResponse</a></code>
2928
- <code title="get /brand/screenshot">client.brand.<a href="./src/brand/dev/resources/brand.py">screenshot</a>(\*\*<a href="src/brand/dev/types/brand_screenshot_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_screenshot_response.py">BrandScreenshotResponse</a></code>
30-
- <code title="get /brand/search">client.brand.<a href="./src/brand/dev/resources/brand.py">search</a>(\*\*<a href="src/brand/dev/types/brand_search_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_search_response.py">BrandSearchResponse</a></code>
3129
- <code title="get /brand/styleguide">client.brand.<a href="./src/brand/dev/resources/brand.py">styleguide</a>(\*\*<a href="src/brand/dev/types/brand_styleguide_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_styleguide_response.py">BrandStyleguideResponse</a></code>

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "brand.dev"
3-
version = "1.9.0"
3+
version = "1.10.0"
44
description = "The official Python library for the brand.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.10",
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2728
"Operating System :: OS Independent",
2829
"Operating System :: POSIX",
2930
"Operating System :: MacOS",
@@ -38,7 +39,7 @@ Homepage = "https://github.com/brand-dot-dev/python-sdk"
3839
Repository = "https://github.com/brand-dot-dev/python-sdk"
3940

4041
[project.optional-dependencies]
41-
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.6"]
42+
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
4243

4344
[tool.rye]
4445
managed = true

requirements-dev.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ filelock==3.12.4
4848
frozenlist==1.6.2
4949
# via aiohttp
5050
# via aiosignal
51-
h11==0.14.0
51+
h11==0.16.0
5252
# via httpcore
53-
httpcore==1.0.2
53+
httpcore==1.0.9
5454
# via httpx
5555
httpx==0.28.1
5656
# via brand-dev
5757
# via httpx-aiohttp
5858
# via respx
59-
httpx-aiohttp==0.1.6
59+
httpx-aiohttp==0.1.8
6060
# via brand-dev
6161
idna==3.4
6262
# via anyio

requirements.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ exceptiongroup==1.2.2
3636
frozenlist==1.6.2
3737
# via aiohttp
3838
# via aiosignal
39-
h11==0.14.0
39+
h11==0.16.0
4040
# via httpcore
41-
httpcore==1.0.2
41+
httpcore==1.0.9
4242
# via httpx
4343
httpx==0.28.1
4444
# via brand-dev
4545
# via httpx-aiohttp
46-
httpx-aiohttp==0.1.6
46+
httpx-aiohttp==0.1.8
4747
# via brand-dev
4848
idna==3.4
4949
# via anyio

scripts/utils/upload-artifact.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env bash
22
set -exuo pipefail
33

4-
RESPONSE=$(curl -X POST "$URL" \
4+
FILENAME=$(basename dist/*.whl)
5+
6+
RESPONSE=$(curl -X POST "$URL?filename=$FILENAME" \
57
-H "Authorization: Bearer $AUTH" \
68
-H "Content-Type: application/json")
79

@@ -12,13 +14,13 @@ if [[ "$SIGNED_URL" == "null" ]]; then
1214
exit 1
1315
fi
1416

15-
UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
16-
-H "Content-Type: application/gzip" \
17-
--data-binary @- "$SIGNED_URL" 2>&1)
17+
UPLOAD_RESPONSE=$(curl -v -X PUT \
18+
-H "Content-Type: binary/octet-stream" \
19+
--data-binary "@dist/$FILENAME" "$SIGNED_URL" 2>&1)
1820

1921
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
2022
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
21-
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/brand.dev-python/$SHA'\033[0m"
23+
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/brand.dev-python/$SHA/$FILENAME'\033[0m"
2224
else
2325
echo -e "\033[31mFailed to upload artifact.\033[0m"
2426
exit 1

0 commit comments

Comments
 (0)