From 1c76785f2965e826769a1e6c9bc0439aedf96865 Mon Sep 17 00:00:00 2001 From: olivierapivideo Date: Mon, 1 Jul 2024 13:32:20 +0000 Subject: [PATCH] fix(python) Fix context related error --- CHANGELOG.md | 3 +++ apivideo/__init__.py | 2 +- apivideo/api_client.py | 2 +- apivideo/configuration.py | 4 ++-- setup.py | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 808255c..c759c59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All changes to this project will be documented in this file. +## [1.3.2] - 2024-07-01 +- Fix python "context" error + ## [1.3.1] - 2024-02-19 - Update VideoStatusIngest enum diff --git a/apivideo/__init__.py b/apivideo/__init__.py index d7f648a..07fdbf5 100644 --- a/apivideo/__init__.py +++ b/apivideo/__init__.py @@ -9,7 +9,7 @@ """ -__version__ = "1.3.1" +__version__ = "1.3.2" # import ApiVideoClient from apivideo.auth_api_client import AuthenticatedApiClient diff --git a/apivideo/api_client.py b/apivideo/api_client.py index 6090c67..e190b0a 100644 --- a/apivideo/api_client.py +++ b/apivideo/api_client.py @@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie - self.default_headers['AV-Origin-Client'] = "python:1.3.1" + self.default_headers['AV-Origin-Client'] = "python:1.3.2" def __enter__(self): return self diff --git a/apivideo/configuration.py b/apivideo/configuration.py index a322aa3..2a2bc6b 100644 --- a/apivideo/configuration.py +++ b/apivideo/configuration.py @@ -84,7 +84,7 @@ def __init__(self, host=None, api_key=None, api_key_prefix=None, access_token=None, username=None, password=None, - discard_unknown_keys=False, + discard_unknown_keys=True, disabled_client_side_validations="", server_index=None, server_variables=None, server_operation_index=None, server_operation_variables=None, @@ -391,7 +391,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1\n"\ - "SDK Package Version: 1.3.1".\ + "SDK Package Version: 1.3.2".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/setup.py b/setup.py index d55510d..c627dec 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "api.video" -VERSION = "1.3.1" +VERSION = "1.3.2" # To install the library, run the following # # python setup.py install