Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.07 KB

File metadata and controls

66 lines (46 loc) · 1.07 KB

Contributing

Add features or fix bugs

  • 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

Setup

pip install -e ".[dev]"

Test

Testing is set up using pytest and coverage is handled with the pytest-cov plugin.

Run your tests with:

pytest

Coverage 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 -q

Type checking

mypy src/netlicensing

Release

Create a source distribution and wheel:

python -m build

Verify the distribution before uploading:

twine check dist/*

Upload to TestPyPI first, then PyPI:

# Test PyPI
twine upload -r testpypi dist/*
# PyPI
twine upload dist/*