diff --git a/README.md b/README.md index f9f2b8f..4f7f675 100644 --- a/README.md +++ b/README.md @@ -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). @@ -278,6 +284,7 @@ y = x.another_function(f.callback) ## Testing ````bash +python -m pip install .[test] pytest -v ```` diff --git a/pyproject.toml b/pyproject.toml index 0854b6b..2dcb004 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,3 +44,6 @@ dependencies = [ dynamic = ["version"] +[project.optional-dependencies] +test = ['pytest'] +quad = ['pyquadp'] \ No newline at end of file