Skip to content

Commit

Permalink
Merge pull request #229 from Vonage/add-311
Browse files Browse the repository at this point in the history
Add support for Python 3.11
  • Loading branch information
maxkahan authored Oct 26, 2022
2 parents 6812900 + ddc2e6b commit a0be3c2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.0.2
current_version = 3.1.0
commit = True
tag = False

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: clean test build coverage install requirements release

coverage:
pytest -v --cov
coverage run -m pytest -v
coverage html

test:
Expand Down
8 changes: 3 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
-e .
pytest==7.1.1
pytest-cov==3.0.0
responses==0.20.0
coveralls
glom==22.1.0
pytest==7.2.0
responses==0.22.0
coverage

bump2version
build
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -37,5 +37,6 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)
2 changes: 1 addition & 1 deletion src/vonage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .client import *

__version__ = "3.0.2"
__version__ = "3.1.0"
7 changes: 1 addition & 6 deletions tests/test_account.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import platform

from glom import glom

from util import *

import vonage
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a0be3c2

Please sign in to comment.