From 0f11399f10ebf43a0b40d7014548ce14cf7dc3a2 Mon Sep 17 00:00:00 2001 From: maxkahan Date: Wed, 26 Oct 2022 13:34:59 +0100 Subject: [PATCH 1/4] adding python 3.11 to github action, updating pytest dependency --- .github/workflows/build.yml | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21842f86..242426b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ jobs: strategy: fail-fast: false matrix: - python: ["3.7", "3.8", "3.9", "3.10"] + python: ["3.7", "3.8", "3.9", "3.10", "3.11"] os: ["ubuntu-latest", "macos-latest"] steps: diff --git a/requirements.txt b/requirements.txt index 87122017..58db0a8c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -e . -pytest==7.1.1 +pytest==7.2.0 pytest-cov==3.0.0 responses==0.20.0 coveralls From 02810b3cc6ba56826e188fa82349a226919e86e8 Mon Sep 17 00:00:00 2001 From: maxkahan Date: Wed, 26 Oct 2022 14:19:54 +0100 Subject: [PATCH 2/4] removing old coverage dependencies --- Makefile | 2 +- requirements.txt | 6 ++---- setup.py | 1 + tests/test_account.py | 7 +------ 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 341b0818..31ad6327 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: clean test build coverage install requirements release coverage: - pytest -v --cov + coverage run -m pytest -v coverage html test: diff --git a/requirements.txt b/requirements.txt index 58db0a8c..e3c2db7d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,7 @@ -e . pytest==7.2.0 -pytest-cov==3.0.0 -responses==0.20.0 -coveralls -glom==22.1.0 +responses==0.22.0 +coverage bump2version build diff --git a/setup.py b/setup.py index 08cabd66..6f56aed9 100644 --- a/setup.py +++ b/setup.py @@ -37,5 +37,6 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], ) diff --git a/tests/test_account.py b/tests/test_account.py index c87a5dea..191d9357 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -1,7 +1,5 @@ import platform -from glom import glom - from util import * import vonage @@ -118,10 +116,7 @@ def test_list_secrets(account): secrets = account.list_secrets("myaccountid") assert_basic_auth() - assert ( - glom(secrets, "_embedded.secrets.0.id") - == "ad6dc56f-07b5-46e1-a527-85530e625800" - ) + assert secrets["_embedded"]["secrets"][0]["id"] == "ad6dc56f-07b5-46e1-a527-85530e625800" @responses.activate From 449b2d529f9fad32aa2b45c3f3b8d041042ba28d Mon Sep 17 00:00:00 2001 From: maxkahan Date: Wed, 26 Oct 2022 14:27:52 +0100 Subject: [PATCH 3/4] update CHANGES.md --- CHANGES.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index d5cfd08e..08560a6f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +# 3.1.0 +- Supporting Python 3.11 +- Upgrading some old dependencies + # 3.0.2 - Bugfix in `messages.py` where authentication method was not being checked for correctly, throwing an error when using header auth. From ddc2e6b031256f87a245e8dd36dfce6a86f50e1a Mon Sep 17 00:00:00 2001 From: maxkahan Date: Wed, 26 Oct 2022 14:27:58 +0100 Subject: [PATCH 4/4] =?UTF-8?q?Bump=20version:=203.0.2=20=E2=86=92=203.1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- setup.py | 2 +- src/vonage/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 456fedae..5506f07f 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.0.2 +current_version = 3.1.0 commit = True tag = False diff --git a/setup.py b/setup.py index 6f56aed9..c4d47257 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name="vonage", - version="3.0.2", + version="3.1.0", description="Vonage Server SDK for Python", long_description=long_description, long_description_content_type="text/markdown", diff --git a/src/vonage/__init__.py b/src/vonage/__init__.py index 1cb78f2e..4f47f9d3 100644 --- a/src/vonage/__init__.py +++ b/src/vonage/__init__.py @@ -1,3 +1,3 @@ from .client import * -__version__ = "3.0.2" +__version__ = "3.1.0"