Skip to content

Commit a0be3c2

Browse files
authored
Merge pull request #229 from Vonage/add-311
Add support for Python 3.11
2 parents 6812900 + ddc2e6b commit a0be3c2

File tree

8 files changed

+14
-16
lines changed

8 files changed

+14
-16
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.0.2
2+
current_version = 3.1.0
33
commit = True
44
tag = False
55

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
python: ["3.7", "3.8", "3.9", "3.10"]
10+
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1111
os: ["ubuntu-latest", "macos-latest"]
1212

1313
steps:

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 3.1.0
2+
- Supporting Python 3.11
3+
- Upgrading some old dependencies
4+
15
# 3.0.2
26
- Bugfix in `messages.py` where authentication method was not being checked for correctly, throwing an error when using header auth.
37

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: clean test build coverage install requirements release
22

33
coverage:
4-
pytest -v --cov
4+
coverage run -m pytest -v
55
coverage html
66

77
test:

requirements.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
-e .
2-
pytest==7.1.1
3-
pytest-cov==3.0.0
4-
responses==0.20.0
5-
coveralls
6-
glom==22.1.0
2+
pytest==7.2.0
3+
responses==0.22.0
4+
coverage
75

86
bump2version
97
build

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name="vonage",
14-
version="3.0.2",
14+
version="3.1.0",
1515
description="Vonage Server SDK for Python",
1616
long_description=long_description,
1717
long_description_content_type="text/markdown",
@@ -37,5 +37,6 @@
3737
"Programming Language :: Python :: 3.8",
3838
"Programming Language :: Python :: 3.9",
3939
"Programming Language :: Python :: 3.10",
40+
"Programming Language :: Python :: 3.11",
4041
],
4142
)

src/vonage/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .client import *
22

3-
__version__ = "3.0.2"
3+
__version__ = "3.1.0"

tests/test_account.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import platform
22

3-
from glom import glom
4-
53
from util import *
64

75
import vonage
@@ -118,10 +116,7 @@ def test_list_secrets(account):
118116

119117
secrets = account.list_secrets("myaccountid")
120118
assert_basic_auth()
121-
assert (
122-
glom(secrets, "_embedded.secrets.0.id")
123-
== "ad6dc56f-07b5-46e1-a527-85530e625800"
124-
)
119+
assert secrets["_embedded"]["secrets"][0]["id"] == "ad6dc56f-07b5-46e1-a527-85530e625800"
125120

126121

127122
@responses.activate

0 commit comments

Comments
 (0)