Skip to content

Commit 19168f9

Browse files
authored
4.x (#307)
* squash merge * remove unused tests * add NI v2, refactoring, new tests * restructuring utils directory * preparing packages for release * preparing for alpha release * add sms * add signature and error handling * working on signing requests * update signing and add tests * fix mocks, signatures and sig auth, add tests * Sms structuring and tests * add conversion method, SMS tests, refactoring * linting * update dependency versions * adding users api structure and list endpoint, refactoring and testing * add new models, change structure, start implementing pagination * add users api endpoints and tests * finish Users API implementation * finish Users API implementation * start working on verify api * adding start verification methods and starting check_code * add verify controls * add verify controls * finish verify implementation and prepare for release * start adding verify v2 * verify logic, models and tests * finish verify v2 and prepare for release * create messages package * create message models * test message models * prepare for messages release * start adding voice api and ncco builder * finish adding NCCO actions and add tests * finish ncco testing, start with voice endpoints * get list_calls working * add more voice methods * finish voice api, updating for release * update readme for release * start adding number insight * finish NI module * update dependency versions, prep for NI release * start creating application package * creating more application models and refactoring common components * finish create method, add list method and tests, refactoring * add other applications endpoints * prepare for application api release * add new dependency versions * start migration of jwt module * refactor jwt package, get tests passing * prepare for new release * 4.x gnp (#300) * add camara auth module * start adding gnp sim swap * adding new gnp packages * update camara auth * add network packages * finish adding network apis and prepare for release * adjust verify v2 channel timeout and prepare for release * start adding account api * add account api, prepare for new releases * add new structure * add rcs message type, revoke rcs message, mark whatsapp as read * add RCS support, revoke RCS message, mark WhatsApp as read * add subaccounts api * update `vonage_subaccounts.ListSubaccountsResponse` for compatibility with Python 3.8 * add numbers api * linting * add video package and token methods * linting * start adding video api * test streaming methods, add signaling * add signaling and moderation endpoints, start live captions * add captioning, start audio connector * finish adding audio connector * start adding experience composer * finish adding experience composer, start adding archive models * add archive methods and tests * start adding broadcast * finish broadcast, refactoring common code * add sip endpoints * add SIP video endpoints, start release prep * add docstrings to data models * add more docstrings for data models * finish docstrings for data models * Stop tracking _dev_scripts folder * update global readme * prepare for alpha release * support Python 3.9+ and use inbuilt types in type hints * start adding number verification, remove network api beta, add to main package * add number verification to network auth * prepare for beta release * writing migration guides/readmes * prepare for v4 beta release * rename number insight methods * rename verify -> verify_legacy and verify_v2 -> verify * add SimSwapCheckRequest for SimSwap.check method * update migration guide * update application parameter name and make users models more easily accessible * update pants version * update jwt method, update dependency * update package versions * add pricing methods * add pricing api testing * update readmes and versioning
1 parent b5432e4 commit 19168f9

File tree

639 files changed

+23813
-12634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

639 files changed

+23813
-12634
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 8 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Build
2-
on: push
2+
on: [push, pull_request]
33

44
permissions:
55
actions: write
@@ -14,24 +14,36 @@ permissions:
1414
security-events: write
1515
statuses: write
1616

17+
env:
18+
PANTS_CONFIG_FILES: "pants.ci.toml"
19+
1720
jobs:
1821
test:
1922
name: Test
2023
runs-on: ${{ matrix.os }}
2124
strategy:
2225
fail-fast: false
2326
matrix:
24-
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
25-
os: ["ubuntu-latest", "macos-latest"]
27+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
28+
os: ["ubuntu-latest"]
2629
steps:
27-
- uses: actions/setup-python@v4
30+
- name: Clone repo
31+
uses: actions/checkout@v4
32+
- name: Setup python
33+
uses: actions/setup-python@v5
2834
with:
2935
python-version: ${{ matrix.python }}
30-
- name: Clone repo
31-
uses: actions/checkout@v3
32-
- name: Install dependencies
33-
run: make install
36+
- name: Initialize pants
37+
uses: pantsbuild/actions/init-pants@main
38+
with:
39+
gha-cache-key: cache0-py${{ matrix.python }}
40+
named-caches-hash: ${{ hashFiles('requirements.txt') }}
41+
- name: Check BUILD files
42+
run: |
43+
pants tailor --check update-build-files --check ::
44+
- name: Lint
45+
run: |
46+
pants lint ::
3447
- name: Run tests
35-
run: make coverage
36-
- name: Run codecov
37-
uses: codecov/codecov-action@v3
48+
run: |
49+
pants test --use-coverage ::

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,10 @@ ENV*
111111
.pytest_cache
112112
html/
113113
.mutmut-cache
114+
_test_scripts/
115+
_dev_scripts/
116+
117+
# Pants workspace files
118+
/.pants.*
119+
/dist/
120+
/.pids

.pre-commit-config.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@ repos:
33
rev: v4.4.0
44
hooks:
55
- id: check-yaml
6-
- id: trailing-whitespace
7-
- repo: https://github.com/ambv/black
8-
rev: 23.7.0
9-
hooks:
10-
- id: black
11-
language_version: python3.11
6+
- id: trailing-whitespace

.pyup.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_requirements(
2+
name="reqs",
3+
)

CONTRIBUTING.md

Lines changed: 0 additions & 19 deletions
This file was deleted.
File renamed without changes.

MANIFEST.in

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)