Skip to content

Commit 9d21d61

Browse files
committed
mark v3 as deprecated
1 parent e853222 commit 9d21d61

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 3.18.0
2+
- Mark v3 as deprecated
3+
14
# 3.17.4
25
- Drop support for Python 3.8, add support for 3.13
36

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,25 @@
77
[![Python versions supported](https://img.shields.io/pypi/pyversions/vonage.svg)](https://pypi.python.org/pypi/vonage)
88
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
99

10+
11+
-----
12+
13+
# DEPRECATED
14+
15+
⚠️ **NOTE: This version of the Vonage Python SDK is now deprecated. It is strongly recommended to use the current major version of the SDK instead.** ⚠️
16+
17+
Please upgrade to version 4 or later:
18+
19+
```bash
20+
pip install "vonage>=4.0.0"
21+
```
22+
23+
### Migration Guide
24+
25+
To help you to move away from using v3, [you can find a migration guide here](https://github.com/Vonage/vonage-python-sdk/blob/main/V3_TO_V4_SDK_MIGRATION_GUIDE.md).
26+
27+
-------
28+
1029
This is the Python server SDK for Vonage's API. To use it you'll
1130
need a Vonage account. Sign up [for free at vonage.com][signup].
1231

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
setup(
1111
name="vonage",
1212
version="3.17.4",
13-
description="Vonage Server SDK for Python",
13+
description="Vonage Server SDK for Python (Deprecated - use vonage>=4.0.0)",
1414
long_description=long_description,
1515
long_description_content_type="text/markdown",
1616
url="https://github.com/Vonage/vonage-python-sdk",

src/vonage/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22
from .ncco_builder.ncco import *
33

44
__version__ = "3.17.4"
5+
6+
from warnings import warn
7+
8+
warn(
9+
'v3 of the Vonage Python SDK is now deprecated. Please upgrade to vonage>=4.0.0.',
10+
DeprecationWarning,
11+
stacklevel=2,
12+
)

0 commit comments

Comments
 (0)