From 2a7604653dfa99ca8648564ea1f87821fe5075ba Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 1 Feb 2024 00:19:40 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 0.0.1, Speakeasy CLI 1.161.0 --- .speakeasy/gen.lock | 8 ++++---- RELEASES.md | 12 +++++++++++- gen.yaml | 2 +- pylintrc | 3 ++- setup.py | 7 ++++--- src/unstructured_client/sdkconfiguration.py | 6 +++--- src/unstructured_client/utils/utils.py | 2 +- 7 files changed, 26 insertions(+), 14 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 34e59879..a5644b30 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -4,16 +4,16 @@ management: docChecksum: 903444f359d1dfa6342c692ae3e5c7ff docVersion: 0.0.1 speakeasyVersion: internal - generationVersion: 2.239.4 - releaseVersion: 0.16.0 - configChecksum: df4b507bbf203791c07f410b82b53f44 + generationVersion: 2.245.1 + releaseVersion: 0.16.1 + configChecksum: dc6701b5b977dc4d73e21db3ea4791cb repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git published: true features: python: - core: 4.4.2 + core: 4.4.3 examples: 2.81.3 globalSecurity: 2.83.2 globalServerURLs: 2.82.1 diff --git a/RELEASES.md b/RELEASES.md index 9003292a..4b6217ab 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -394,4 +394,14 @@ Based on: ### Generated - [python v0.16.0] . ### Releases -- [PyPI v0.16.0] https://pypi.org/project/unstructured-client/0.16.0 - . \ No newline at end of file +- [PyPI v0.16.0] https://pypi.org/project/unstructured-client/0.16.0 - . + +## 2024-02-01 00:19:33 +### Changes +Based on: +- OpenAPI Doc 0.0.1 +- Speakeasy CLI 1.161.0 (2.245.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.16.1] . +### Releases +- [PyPI v0.16.1] https://pypi.org/project/unstructured-client/0.16.1 - . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index bafd899e..70e434ab 100644 --- a/gen.yaml +++ b/gen.yaml @@ -6,7 +6,7 @@ generation: fixes: nameResolutionDec2023: false python: - version: 0.16.0 + version: 0.16.1 author: Unstructured clientServerStatusCodesAsErrors: true description: Python Client SDK for Unstructured API diff --git a/pylintrc b/pylintrc index d5760436..bf0a55d2 100644 --- a/pylintrc +++ b/pylintrc @@ -439,7 +439,8 @@ disable=raw-checker-failed, cyclic-import, too-many-nested-blocks, too-many-boolean-expressions, - no-else-raise + no-else-raise, + bare-except # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/setup.py b/setup.py index 6cce5239..9ab733da 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="unstructured-client", - version="0.16.0", + version="0.16.1", author="Unstructured", description="Python Client SDK for Unstructured API", license = "MIT", @@ -20,7 +20,7 @@ install_requires=[ "certifi>=2023.7.22", "charset-normalizer>=3.2.0", - "dataclasses-json>=0.6.1", + "dataclasses-json @ git+https://github.com/speakeasy-api/dataclasses-json@fix-union-deserialization", "idna>=3.4", "jsonpath-python>=1.0.6 ", "marshmallow>=3.19.0", @@ -37,5 +37,6 @@ "dev":["pylint==2.16.2"] }, package_dir={'': 'src'}, - python_requires='>=3.8' + python_requires='>=3.8', + package_data={"unstructured-client": ["py.typed"]}, ) diff --git a/src/unstructured_client/sdkconfiguration.py b/src/unstructured_client/sdkconfiguration.py index 966e979b..7be2faea 100644 --- a/src/unstructured_client/sdkconfiguration.py +++ b/src/unstructured_client/sdkconfiguration.py @@ -27,9 +27,9 @@ class SDKConfiguration: server: str = '' language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '0.16.0' - gen_version: str = '2.239.4' - user_agent: str = 'speakeasy-sdk/python 0.16.0 2.239.4 0.0.1 unstructured-client' + sdk_version: str = '0.16.1' + gen_version: str = '2.245.1' + user_agent: str = 'speakeasy-sdk/python 0.16.1 2.245.1 0.0.1 unstructured-client' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: diff --git a/src/unstructured_client/utils/utils.py b/src/unstructured_client/utils/utils.py index f7096142..52434025 100644 --- a/src/unstructured_client/utils/utils.py +++ b/src/unstructured_client/utils/utils.py @@ -695,7 +695,7 @@ def unmarshal_json(data, typ, decoder=None): out = unmarshal.from_dict({"res": json_dict}) except AttributeError as attr_err: raise AttributeError( - f'unable to unmarshal {data} as {typ}') from attr_err + f'unable to unmarshal {data} as {typ} - {attr_err}') from attr_err return out.res if decoder is None else decoder(out.res)