Skip to content

Commit

Permalink
Add a development section to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Sep 3, 2023
1 parent e66cf4e commit 4977ff2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,25 @@ Granian is currently under active development.
Granian is compatible with Python 3.8 and above versions.
## Development
You need installations of Rust and a recent Python 3 version.
# Set up a Python virtualenv
python3 -m venv .venv
source .venv/bin/activate
pip install -e .[test]
# Rebuild the Rust library if you change any Rust code
cargo build
# Run pytest
pytest
# You may optionally speed up the test suite by running tests in parallel
pip install pytest-xdist
pytest -n 16
## License
Granian is released under the BSD License.

0 comments on commit 4977ff2

Please sign in to comment.