The latest version at the time that I write this doc is 3.11.3
Only do it if you have not done it before:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
python -m unittest discover . --pattern '*test.py'
coverage run -m unittest discover . --pattern '*test.py'
coverage report
Coverage Report Supported On
- Python 3.8 through 3.12, and 3.13.0a3 and up.
- PyPy3 versions 3.8 through 3.10
Subscription test requires necessary credentials in .env file. Your app will need "Websocket Subscriptions" permission.
Copy .env.sample
to .env
.
Edit .env
to specify credentials
Run a demo file like this:
python3 ringcentral/demos/demo_fax.py
Release will be done by GitHub Action once a tag is pushed to remote repo.
GitHub Action will run the following commands to release:
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
python3 -m build
twine upload dist/*
If you want to release it from your laptop, you need to have a ~/.pypirc file like this:
[distutils]
index-servers = pypi
[pypi]
repository = https://upload.pypi.org/legacy/
username = __token__
password = pypi-<your-token>