Development
Install this package in development mode:
git clone git@github.com:wagtail/wagtail-live.git
cd wagtail-live
With your preferred virtualenv activated, install the package in development mode with the included testing and documentation dependencies:
python -m pip install -e '.[test,docs]' -U
Testing
Run the test suite locally:
pytest
Or test all supported configurations using tox:
python -m pip install tox
tox
Code style linting
Check the code style of all files (requires GNU Make to be installed):
make lint
Fix any errors that can be automatically fixed:
make format
Documentation
Run documentation locally:
mkdocs serve
Deploy documentation to Github pages:
mkdocs gh-deploy
Releasing new versions
This package follows SemVer.
Please keep SemVer in mind when updating the version number in src/wagtail_live/__init__.py
.
Building the package & publishing to PyPI
Make sure you install the build
extra before attempting to make a release:
pip install -e '.[build]'
This project comes with a helper script that assists in making a release.
./make_release.sh
This script will:
- Verify that no git tag exists for the current version number.
- Build wheel and source distributions.
- Show instructions on how to create a git tag.
- Show instructions on how to upload to PyPI.