- Fork the repo
- Check out a feature or bug branch
- Add your changes
- Update README when needed
- Submit a pull request to upstream repo
- Add description of your changes
- Ensure tests are passing
- Ensure branch is mergeable
pip install -e ".[dev]"Testing is set up using pytest and coverage is handled with the pytest-cov plugin.
Run your tests with:
pytestCoverage is reported in the terminal after each run.
To view a detailed HTML report open htmlcov/index.html after running the tests.
To run the optional live integration tests against the NetLicensing demo account:
NETLICENSING_LIVE_DEMO=1 pytest tests/test_live_demo.py -qmypy src/netlicensingCreate a source distribution and wheel:
python -m buildVerify the distribution before uploading:
twine check dist/*Upload to TestPyPI first, then PyPI:
# Test PyPI
twine upload -r testpypi dist/*
# PyPI
twine upload dist/*