diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d0ab6645..d43a621a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.2.0" + ".": "1.2.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 11fb638b..6aa6bab2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.2.1 (2024-08-19) + +Full Changelog: [v1.2.0...v1.2.1](https://github.com/Finch-API/finch-api-python/compare/v1.2.0...v1.2.1) + +### Chores + +* **internal:** use different 32bit detection method ([#477](https://github.com/Finch-API/finch-api-python/issues/477)) ([a0a62f8](https://github.com/Finch-API/finch-api-python/commit/a0a62f8a825a058aef0e22502b83f148415bbcae)) + ## 1.2.0 (2024-08-13) Full Changelog: [v1.1.3...v1.2.0](https://github.com/Finch-API/finch-api-python/compare/v1.1.3...v1.2.0) diff --git a/pyproject.toml b/pyproject.toml index 29b0046d..b1fc9802 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "finch-api" -version = "1.2.0" +version = "1.2.1" description = "The official Python library for the Finch API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/finch/_base_client.py b/src/finch/_base_client.py index afcd47f5..1316a641 100644 --- a/src/finch/_base_client.py +++ b/src/finch/_base_client.py @@ -1,5 +1,6 @@ from __future__ import annotations +import sys import json import time import uuid @@ -2011,7 +2012,6 @@ def get_python_version() -> str: def get_architecture() -> Arch: try: - python_bitness, _ = platform.architecture() machine = platform.machine().lower() except Exception: return "unknown" @@ -2027,7 +2027,7 @@ def get_architecture() -> Arch: return "x64" # TODO: untested - if python_bitness == "32bit": + if sys.maxsize <= 2**32: return "x32" if machine: diff --git a/src/finch/_version.py b/src/finch/_version.py index 67677ac4..2dd09286 100644 --- a/src/finch/_version.py +++ b/src/finch/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "finch" -__version__ = "1.2.0" # x-release-please-version +__version__ = "1.2.1" # x-release-please-version