diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9c6a481..e7b93c2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.2" + ".": "1.1.3" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a1bf578..dac9ae2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 1.1.3 (2024-12-16) + +Full Changelog: [v1.1.2...v1.1.3](https://github.com/TJC-LP/grata-python/compare/v1.1.2...v1.1.3) + +### Chores + +* **internal:** bump pydantic dependency ([#32](https://github.com/TJC-LP/grata-python/issues/32)) ([63d6237](https://github.com/TJC-LP/grata-python/commit/63d6237646cacb2b7cb61fbfe493b80a774d79fc)) +* **internal:** version bump ([#30](https://github.com/TJC-LP/grata-python/issues/30)) ([5245393](https://github.com/TJC-LP/grata-python/commit/52453939f843003bd58be304f3f4961c34a916b1)) + + +### Documentation + +* **readme:** fix http client proxies example ([#33](https://github.com/TJC-LP/grata-python/issues/33)) ([792ec5e](https://github.com/TJC-LP/grata-python/commit/792ec5ea4572dd20d1ea0b37b095f9aa0b6916c8)) + ## 1.1.2 (2024-12-05) Full Changelog: [v1.1.1...v1.1.2](https://github.com/TJC-LP/grata-python/compare/v1.1.1...v1.1.2) diff --git a/README.md b/README.md index 3cb94c5..6c4074d 100644 --- a/README.md +++ b/README.md @@ -279,18 +279,19 @@ can also get all the extra fields on the Pydantic model as a dict with You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including: -- Support for proxies -- Custom transports +- Support for [proxies](https://www.python-httpx.org/advanced/proxies/) +- Custom [transports](https://www.python-httpx.org/advanced/transports/) - Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality ```python +import httpx from grata import Grata, DefaultHttpxClient client = Grata( # Or use the `GRATA_BASE_URL` env var base_url="http://my.test.server.example.com:8083", http_client=DefaultHttpxClient( - proxies="http://my.test.proxy.example.com", + proxy="http://my.test.proxy.example.com", transport=httpx.HTTPTransport(local_address="0.0.0.0"), ), ) diff --git a/pyproject.toml b/pyproject.toml index 7b2c8aa..dd3f4a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "grata" -version = "1.1.2" +version = "1.1.3" description = "The unofficial Python library for the Grata API" dynamic = ["readme"] license = "MIT" diff --git a/requirements-dev.lock b/requirements-dev.lock index d792977..1a8ae09 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -62,9 +62,9 @@ platformdirs==3.11.0 # via virtualenv pluggy==1.5.0 # via pytest -pydantic==2.9.2 +pydantic==2.10.3 # via grata -pydantic-core==2.23.4 +pydantic-core==2.27.1 # via pydantic pygments==2.18.0 # via rich diff --git a/requirements.lock b/requirements.lock index 5fce9dc..c5ae725 100644 --- a/requirements.lock +++ b/requirements.lock @@ -30,9 +30,9 @@ httpx==0.25.2 idna==3.4 # via anyio # via httpx -pydantic==2.9.2 +pydantic==2.10.3 # via grata -pydantic-core==2.23.4 +pydantic-core==2.27.1 # via pydantic sniffio==1.3.0 # via anyio diff --git a/src/grata/_types.py b/src/grata/_types.py index 3207a9f..1c8e9b0 100644 --- a/src/grata/_types.py +++ b/src/grata/_types.py @@ -192,10 +192,8 @@ def get(self, __key: str) -> str | None: ... StrBytesIntFloat = Union[str, bytes, int, float] # Note: copied from Pydantic -# https://github.com/pydantic/pydantic/blob/32ea570bf96e84234d2992e1ddf40ab8a565925a/pydantic/main.py#L49 -IncEx: TypeAlias = Union[ - Set[int], Set[str], Mapping[int, Union["IncEx", Literal[True]]], Mapping[str, Union["IncEx", Literal[True]]] -] +# https://github.com/pydantic/pydantic/blob/6f31f8f68ef011f84357330186f603ff295312fd/pydantic/main.py#L79 +IncEx: TypeAlias = Union[Set[int], Set[str], Mapping[int, Union["IncEx", bool]], Mapping[str, Union["IncEx", bool]]] PostParser = Callable[[Any], Any] diff --git a/src/grata/_version.py b/src/grata/_version.py index 7d75fb8..8a9ce37 100644 --- a/src/grata/_version.py +++ b/src/grata/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "grata" -__version__ = "1.1.2" # x-release-please-version +__version__ = "1.1.3" # x-release-please-version