diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index b2e0da3..6b48a30 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -54,7 +54,7 @@ jobs: sed -i s/version=VERSION/version=\"0.0.1+${GITHUB_REF##*/}\"/g setup.py - python -m pip install --user --upgrade setuptools wheel + python -m pip install --user --upgrade setuptools wheel twine pip install -r requirements.txt python setup.py sdist bdist_wheel - python setup.py bdist_wheel upload -r local + twine upload -r local ./dist/* diff --git a/adzerk_decision_sdk/client.py b/adzerk_decision_sdk/client.py index f72eb9f..db31928 100644 --- a/adzerk_decision_sdk/client.py +++ b/adzerk_decision_sdk/client.py @@ -103,6 +103,7 @@ def get(self, request, **kwargs): api_client.set_default_header('X-Adzerk-Explain', json.dumps(header_object)) api_client.set_default_header('X-Adzerk-Explain', kwargs['api_key']) + api_client.set_default_header('X-Adzerk-ApiKey', kwargs['api_key']) if 'user_agent' in kwargs: api_client.set_default_header('User-Agent', kwargs['user_agent']) diff --git a/setup.py b/setup.py index a9eca95..61fba30 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "adzerk-decision-sdk" -VERSION = "1.0.0-beta.14" +VERSION = "1.0.0-beta.15" # To install the library, run the following # # python setup.py install