Skip to content

Commit

Permalink
fix(python) Fix context related error
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo authored Jul 1, 2024
1 parent b9adf10 commit 1c76785
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion apivideo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""


__version__ = "1.3.1"
__version__ = "1.3.2"

# import ApiVideoClient
from apivideo.auth_api_client import AuthenticatedApiClient
Expand Down
2 changes: 1 addition & 1 deletion apivideo/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions apivideo/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c76785

Please sign in to comment.