Skip to content

Commit

Permalink
Add optional dependencies
Browse files Browse the repository at this point in the history
Closes #48
  • Loading branch information
rjfarmer committed Jan 24, 2024
1 parent ee85f82 commit 0e8f86a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ Quad precision (REAL128) variables are not natively supported by Python thus we
python -m pip install pyquadp
````

or from a git checkout:

````bash
python -m pip install .[qaud]
````

For more details see pyQuadp's documentation, but briefly you can create a
quad precision variable from an ``int``, ``float``, or ``string``. On return you will receive a ``qfloat`` type. This ``qfloat`` type acts like a Python Number, so you can do things like add, multiply, subtract etc this Number with other Numbers (including non-``qfloat`` types).

Expand Down Expand Up @@ -278,6 +284,7 @@ y = x.another_function(f.callback)
## Testing

````bash
python -m pip install .[test]
pytest -v
````

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ dependencies = [
dynamic = ["version"]


[project.optional-dependencies]
test = ['pytest']
quad = ['pyquadp']

0 comments on commit 0e8f86a

Please sign in to comment.