Skip to content

Commit

Permalink
4.x (#307)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
maxkahan authored Nov 6, 2024
1 parent b5432e4 commit 19168f9
Show file tree
Hide file tree
Showing 639 changed files with 23,813 additions and 12,634 deletions.
8 changes: 0 additions & 8 deletions .bumpversion.cfg

This file was deleted.

24 changes: 0 additions & 24 deletions .editorconfig

This file was deleted.

34 changes: 23 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build
on: push
on: [push, pull_request]

permissions:
actions: write
Expand All @@ -14,24 +14,36 @@ permissions:
security-events: write
statuses: write

env:
PANTS_CONFIG_FILES: "pants.ci.toml"

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest", "macos-latest"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: ["ubuntu-latest"]
steps:
- uses: actions/setup-python@v4
- name: Clone repo
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Clone repo
uses: actions/checkout@v3
- name: Install dependencies
run: make install
- name: Initialize pants
uses: pantsbuild/actions/init-pants@main
with:
gha-cache-key: cache0-py${{ matrix.python }}
named-caches-hash: ${{ hashFiles('requirements.txt') }}
- name: Check BUILD files
run: |
pants tailor --check update-build-files --check ::
- name: Lint
run: |
pants lint ::
- name: Run tests
run: make coverage
- name: Run codecov
uses: codecov/codecov-action@v3
run: |
pants test --use-coverage ::
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,10 @@ ENV*
.pytest_cache
html/
.mutmut-cache
_test_scripts/
_dev_scripts/

# Pants workspace files
/.pants.*
/dist/
/.pids
7 changes: 1 addition & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,4 @@ repos:
rev: v4.4.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- repo: https://github.com/ambv/black
rev: 23.7.0
hooks:
- id: black
language_version: python3.11
- id: trailing-whitespace
4 changes: 0 additions & 4 deletions .pyup.yml

This file was deleted.

3 changes: 3 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python_requirements(
name="reqs",
)
19 changes: 0 additions & 19 deletions CONTRIBUTING.md

This file was deleted.

File renamed without changes.
16 changes: 0 additions & 16 deletions MANIFEST.in

This file was deleted.

29 changes: 8 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
.PHONY: clean test build coverage install requirements release

coverage:
coverage run -m pytest -v
coverage html
.PHONY: test coverage

test:
pytest -vv --disable-warnings

clean:
rm -rf dist build
pants test ::

build:
python -m build

release:
python -m twine upload dist/*

install: requirements
coverage:
pants test --use-coverage ::

requirements: .requirements.txt
coverage-report:
pants test --use-coverage --open-coverage ::

.requirements.txt: requirements.txt
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements.txt
python -m pip freeze > .requirements.txt
install:
pip install -r requirements.txt
92 changes: 0 additions & 92 deletions OPENTOK_TO_VONAGE_MIGRATION.md

This file was deleted.

Loading

0 comments on commit 19168f9

Please sign in to comment.