We would love to accept your patches and contributions to this project.
- Python 3.10 or higher
- We recommend using venv to create a virtual environment.
git clone https://github.com/google/qwix.git
cd qwixpython -m venv venv
source venv/bin/activateThis step installs Qwix in editable mode, along with its dependencies. This installs the CPU version of JAX. For GPU/TPU support, please install the appropriate JAX version.
If you are contributing to Qwix code, we recommend installing the dev
dependencies, which include tools for testing:
pip install -e ".[dev]"If you only want to install Qwix and its core dependencies, you can run: bash pip install -e .
You can run the test suite using pytest.
Examples:
# Run all unit tests
python -m pytest tests/
# Run a specific test file
python -m pytest tests/_src/model_test.py
# Run tests with verbose output
python -m pytest tests/ -v
# Run integration tests
python -m pytest integration_tests/Alternatively, you can run individual test files directly:
python tests/_src/model_test.py- Python 3.10+
- A virtual environment is recommended.
From the root of the repository, run the following commands to set up your environment and install dependencies for documentation generation:
-
Create and activate a virtual environment:
shell python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` -
Install the project and documentation dependencies:
shell pip install -e ".[docs]"
Once the setup is complete, you can build and view the documentation.
-
Build the HTML: From the repository root, run:
shell sphinx-build docs/source docs/build/html -
Serve the files locally:
shell python -m http.server --directory docs/build/htmlOpen your web browser tohttp://localhost:8000to view the documentation.
Contributions to this project must be accompanied by a Contributor License Agreement (CLA). You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project.
If you or your current employer have already signed the Google CLA (even if it was for a different project), you probably don't need to do it again.
Visit https://cla.developers.google.com/ to see your current agreements or to sign a new one.
This project follows Google's Open Source Community Guidelines.
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose.