Skip to content

Commit bd3eab6

Browse files
authored
Merge pull request #207 from maxkahan/2.x
Bux fixes and release targets updated
2 parents 95bb146 + a352966 commit bd3eab6

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

.bumpversion.cfg

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

6-
[bumpversion:file:vonage/__init__.py]
6+
[bumpversion:file:src/vonage/__init__.py]
77

88
[bumpversion:file:setup.py]
99

CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# 2.6.0
1+
# 2.6.x
22

33
- Dropped support for Python 3.6 and below
44
- Now supporting currently supported stable versions of Python, i.e. Python 3.7-3.10
55
- Internal refactoring and enhancements
66

7-
# 2.5.x
7+
# 2.5.5
88

99
- Support for Independent SMS, Voice and Verify APIs with tests as well as current client methods
1010
- Getters/Setters to extract/rewrite custom attributes

Makefile

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

33
clean:
44
rm -rf dist build
@@ -10,11 +10,11 @@ coverage:
1010
test:
1111
pytest -v
1212

13-
dist:
14-
python setup.py sdist --formats zip,gztar bdist_wheel
13+
build:
14+
python -m build
1515

1616
release:
17-
twine upload dist/*
17+
python -m twine upload dist/*
1818

1919
install: requirements
2020

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
# built documents.
6767
#
6868
# The short X.Y version.
69-
version = "2.6.0"
69+
version = "2.6.3"
7070
# The full version, including alpha/beta/rc tags.
71-
release = "2.6.0"
71+
release = "2.6.3"
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.6.0'
146+
# html_title = u'Vonage v2.6.3'
147147

148148
# A shorter title for the navigation bar. Default is the same as html_title.
149149
#

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ max-line-length=120
99
[coverage:run]
1010
# TODO: Change this to True:
1111
branch=False
12-
source= vonage
12+
source=src
1313

1414
[coverage:paths]
1515
source =

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111

1212
setup(
1313
name="vonage",
14-
version="2.6.0",
14+
version="2.6.3",
1515
description="Vonage Server SDK for Python",
1616
long_description=long_description,
1717
long_description_content_type="text/markdown",
1818
url="https://github.com/Vonage/vonage-python-sdk",
1919
author="Vonage",
2020
author_email="devrel@vonage.com",
2121
license="Apache",
22-
packages=find_packages(where="vonage"),
23-
package_dir={"": "."},
22+
packages=find_packages(where="src"),
23+
package_dir={"": "src"},
2424
platforms=["any"],
2525
install_requires=[
2626
"requests>=2.4.2",

vonage/__init__.py renamed to src/vonage/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
from .sms import *
55
from .verify import *
66

7-
__version__ = "2.6.0"
7+
__version__ = "2.6.3"
File renamed without changes.

vonage/client.py renamed to src/vonage/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def __init__(
110110
if app_name and app_version:
111111
user_agent += f" {app_name}/{app_version}"
112112

113-
self.headers = {"User-Agent": user_agent, "Content-Type": "application/json"}
113+
self.headers = {"User-Agent": user_agent, "Accept": "application/json"}
114114

115115
self.auth_params = {}
116116

File renamed without changes.

0 commit comments

Comments
 (0)