Skip to content

Commit d7fec48

Browse files
committed
adding tests and deprecated decorator
1 parent 781f359 commit d7fec48

File tree

7 files changed

+1388
-1095
lines changed

7 files changed

+1388
-1095
lines changed

CHANGES.md

Lines changed: 54 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,106 @@
1+
# 2.5.x
2+
3+
- Support for Independent SMS, Voice and Verify APIs with tests as well as current client methods
4+
- Getters/Setters to extract/rewrite custom attributes
5+
- PSD2 Verification support
6+
- Dropping support for Python 2.7
7+
- Roadmap to better error handling
8+
- Supporting Python 3.8
9+
110
# 2.4.0
2-
* Application V2 API added under `Client.application_v2`
3-
* Existing application methods under `Client` are now deprecated.
11+
12+
- Application V2 API added under `Client.application_v2`
13+
- Existing application methods under `Client` are now deprecated.
414

515
# 2.3.0
6-
* Explicit parameter list for the `nexmo.Client` constructor. **This may cause errors in code passing incorrect or spurious arguments to the Client constructor.**
7-
* Secret Management
8-
* Support for Authorization header authentication.
16+
17+
- Explicit parameter list for the `nexmo.Client` constructor. **This may cause errors in code passing incorrect or spurious arguments to the Client constructor.**
18+
- Secret Management
19+
- Support for Authorization header authentication.
920

1021
# 2.2.0
11-
* Add support for `redact_transaction`.
22+
23+
- Add support for `redact_transaction`.
1224

1325
# 2.1.0
14-
* Add support for `get_recording`
15-
* Add support for SMS conversion
16-
* Add debug logging for most calls, under the 'nexmo' logger.
17-
* Internal refactoring (affects only private methods.)
26+
27+
- Add support for `get_recording`
28+
- Add support for SMS conversion
29+
- Add debug logging for most calls, under the 'nexmo' logger.
30+
- Internal refactoring (affects only private methods.)
1831

1932
# 2.0.0
20-
* Drop support for Python 3.3 (in line with the cryptography library we depend upon)
21-
* Ensure timestamp is added the params list if signing requests
22-
* Avoid value injection in signature auth.
23-
* Add support for different hashes for signature generation (thanks @trancee!)
24-
* Tests ported to pytest
33+
34+
- Drop support for Python 3.3 (in line with the cryptography library we depend upon)
35+
- Ensure timestamp is added the params list if signing requests
36+
- Avoid value injection in signature auth.
37+
- Add support for different hashes for signature generation (thanks @trancee!)
38+
- Tests ported to pytest
2539

2640
# 1.5.0
2741

28-
* Add ability to provide a file path as private_key param no the nexmo.Client constructor
42+
- Add ability to provide a file path as private_key param no the nexmo.Client constructor
2943

30-
* Add send/stop endpoints for audio/speech/dtmf
44+
- Add send/stop endpoints for audio/speech/dtmf
3145

32-
* Add new number insight endpoints
46+
- Add new number insight endpoints
3347

3448
# 1.4.0
3549

36-
* Add new Voice API call methods
50+
- Add new Voice API call methods
3751

38-
* Add Application API methods
52+
- Add Application API methods
3953

40-
* Add check_signature method for checking callback signatures
54+
- Add check_signature method for checking callback signatures
4155

42-
* Deprecate old Verify API methods
56+
- Deprecate old Verify API methods
4357

4458
# 1.3.0
4559

46-
* Add get_sms_pricing method
60+
- Add get_sms_pricing method
4761

48-
* Add get_voice_pricing method
62+
- Add get_voice_pricing method
4963

50-
* Add get_event_alert_numbers method to get opt-in/opt-out numbers
64+
- Add get_event_alert_numbers method to get opt-in/opt-out numbers
5165

52-
* Add resubscribe_event_alert_number method to opt-in a number
66+
- Add resubscribe_event_alert_number method to opt-in a number
5367

54-
* Add more clearly named methods for Verify API
68+
- Add more clearly named methods for Verify API
5569

56-
* Add app_name and app_version options
70+
- Add app_name and app_version options
5771

5872
# 1.2.0
5973

60-
* Add topup method
74+
- Add topup method
6175

62-
* Add update_settings method
76+
- Add update_settings method
6377

64-
* Add api_host attribute
78+
- Add api_host attribute
6579

66-
* Add ClientError and ServerError classes
80+
- Add ClientError and ServerError classes
6781

6882
# 1.1.0
6983

70-
* Move repository to https://github.com/Nexmo/nexmo-python
84+
- Move repository to https://github.com/Nexmo/nexmo-python
7185

72-
* Add get_basic_number_insight method for Number Insight Basic API
86+
- Add get_basic_number_insight method for Number Insight Basic API
7387

74-
* Add get_number_insight method for Number Insight Standard API
88+
- Add get_number_insight method for Number Insight Standard API
7589

76-
* Add User-Agent header to requests
90+
- Add User-Agent header to requests
7791

7892
# 1.0.3
7993

80-
* Change license from LGPL-3.0 to MIT
94+
- Change license from LGPL-3.0 to MIT
8195

8296
# 1.0.2
8397

84-
* Remove merge helper function
98+
- Remove merge helper function
8599

86100
# 1.0.1
87101

88-
* Python 3.x fixes
102+
- Python 3.x fixes
89103

90104
# 1.0.0
91105

92-
* First version!
106+
- First version!

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ pytest==3.1.2
33
pytest-cov==2.5.1
44
responses==0.5.1
55
coveralls
6-
glom==18.3.1
6+
glom==18.3.1

setup.py

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

1212
setup(
1313
name="nexmo",
14-
version="2.5.1",
14+
version="2.5.2",
1515
description="Nexmo Client Library for Python",
1616
long_description=long_description,
1717
long_description_content_type="text/markdown",
@@ -22,7 +22,12 @@
2222
packages=find_packages(where="src"),
2323
package_dir={"": "src"},
2424
platforms=["any"],
25-
install_requires=["requests>=2.4.2", "PyJWT[crypto]>=1.6.4", "pytz>=2018.5"],
25+
install_requires=[
26+
"requests>=2.4.2",
27+
"PyJWT[crypto]>=1.6.4",
28+
"pytz>=2018.5",
29+
"Deprecated",
30+
],
2631
python_requires=">=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
2732
tests_require=["cryptography>=2.3.1"],
2833
classifiers=[

0 commit comments

Comments
 (0)