Skip to content

Commit 95bb146

Browse files
authored
Merge pull request #206 from maxkahan/2.x
Drop support for old Python versions, support newer versions, update dependencies, refactoring
2 parents 634fdb2 + f605884 commit 95bb146

22 files changed

+170
-225
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[bumpversion]
2-
current_version = 2.5.5
2+
current_version = 2.6.0
33
commit = True
44
tag = False
55

66
[bumpversion:file:vonage/__init__.py]
77

88
[bumpversion:file:setup.py]
99

10+
[bumpversion:file:docs/conf.py]

.github/workflows/build.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,15 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
python: ["3.5", "3.6", "3.7", "3.8"]
11-
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
12-
exclude:
13-
- os: "windows-latest"
14-
python: "3.4"
15-
- os: "windows-latest"
16-
python: "3.8"
17-
- os: "macos-latest"
18-
python: "3.4"
10+
python: ["3.7", "3.8", "3.9", "3.10"]
11+
os: ["ubuntu-latest", "macos-latest"]
12+
1913
steps:
20-
- uses: actions/setup-python@v2
14+
- uses: actions/setup-python@v3
2115
with:
2216
python-version: ${{ matrix.python }}
2317
- name: Clone repo
24-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
2519
- name: Install dependencies
2620
run: make install
2721
- name: Run tests

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,5 @@ ENV*
107107
.DS_Store
108108
.vscode
109109
.idea
110-
.pypirc
110+
.pypirc
111+
.pytest_cache

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.6.0
2+
3+
- Dropped support for Python 3.6 and below
4+
- Now supporting currently supported stable versions of Python, i.e. Python 3.7-3.10
5+
- Internal refactoring and enhancements
6+
17
# 2.5.x
28

39
- Support for Independent SMS, Voice and Verify APIs with tests as well as current client methods

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at support@nexmo.com. All
58+
reported by contacting the project team at support@vonage.com. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

Makefile

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

33
clean:
44
rm -rf dist build

docs/conf.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@
5757
master_doc = "index"
5858

5959
# General information about the project.
60-
project = u"Vonage"
61-
copyright = u"{0}, Vonage".format(datetime.datetime.now().year)
62-
author = u"Vonage"
60+
project = "Vonage"
61+
copyright = f"{datetime.datetime.now().year}, Vonage"
62+
author = "Vonage"
6363

6464
# The version info for the project you're documenting, acts as replacement for
6565
# |version| and |release|, also used in various other places throughout the
6666
# built documents.
6767
#
6868
# The short X.Y version.
69-
version = u"2.5.5"
69+
version = "2.6.0"
7070
# The full version, including alpha/beta/rc tags.
71-
release = u"2.5.5"
71+
release = "2.6.0"
7272

7373
# The language for content autogenerated by Sphinx. Refer to documentation
7474
# for a list of supported languages.
@@ -143,7 +143,7 @@
143143
# The name for this set of Sphinx documents.
144144
# "<project> v<release> documentation" by default.
145145
#
146-
# html_title = u'Vonage v2.5.5'
146+
# html_title = u'Vonage v2.6.0'
147147

148148
# A shorter title for the navigation bar. Default is the same as html_title.
149149
#
@@ -266,7 +266,7 @@
266266
# (source start file, target name, title,
267267
# author, documentclass [howto, manual, or own class]).
268268
latex_documents = [
269-
(master_doc, "Vonage.tex", u"Vonage Documentation", u"Tim Craft", "manual")
269+
(master_doc, "Vonage.tex", "Vonage Documentation", "developer@vonage.com", "manual")
270270
]
271271

272272
# The name of an image file (relative to this directory) to place at the top of
@@ -306,7 +306,7 @@
306306

307307
# One entry per manual page. List of tuples
308308
# (source start file, name, description, authors, manual section).
309-
man_pages = [(master_doc, "vonage", u"Vonage Documentation", [author], 1)]
309+
man_pages = [(master_doc, "vonage", "Vonage Documentation", [author], 1)]
310310

311311
# If true, show URL addresses after external links.
312312
#
@@ -322,7 +322,7 @@
322322
(
323323
master_doc,
324324
"Vonage",
325-
u"Vonage Documentation",
325+
"Vonage Documentation",
326326
author,
327327
"Vonage",
328328
"One line description of project.",

docs/quickstart.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Start a verification
146146
response = client.start_verification(number='441632960960', brand='MyApp')
147147
148148
if response['status'] == '0':
149-
print 'Started verification request_id={request_id}'.format(request_id=response['request_id'])
149+
print f'Started verification request_id={response['request_id']}'
150150
else:
151151
print('Error:', response['error_text'])
152152
@@ -164,7 +164,7 @@ Check a verification
164164
response = client.check_verification('00e6c3377e5348cdaf567e1417c707a5', code='1234')
165165
166166
if response['status'] == '0':
167-
print 'Verification complete, event_id={event_id}'.format(event_id=response['event_id'])
167+
print 'Verification complete, event_id={response['event_id']}'
168168
else:
169169
print('Error:', response['error_text'])
170170

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-e .
2-
pytest==3.1.2
3-
pytest-cov==2.5.1
4-
responses==0.5.1
2+
pytest==7.1.1
3+
pytest-cov==3.0.0
4+
responses==0.20.0
55
coveralls
6-
glom==18.3.1
6+
glom==22.1.0

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ source= vonage
1313

1414
[coverage:paths]
1515
source =
16-
src
1716
.tox/*/site-packages
1817

1918
[bdist_wheel]

0 commit comments

Comments
 (0)