From e23450ae45c000730d34784a3932749574c4c971 Mon Sep 17 00:00:00 2001 From: Omar Laurino Date: Thu, 10 Mar 2022 11:34:42 -0500 Subject: [PATCH] update requirements * add a test-requirements.txt file to include the test dependencies * add pillow to the list of pip requirements * update documentation with testing instructions as well as how to run tests with remote data * also added a file to gitignore. --- .gitignore | 1 + docs/index.rst | 14 ++++++++++++++ pip-requirements | 1 + test-requirements.txt | 3 +++ 4 files changed, 19 insertions(+) create mode 100644 test-requirements.txt diff --git a/.gitignore b/.gitignore index d9c86297b..4a9e6e2ad 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ htmlcov .coverage MANIFEST .ipynb_checkpoints +/.eggs/README.txt # Sphinx docs/api diff --git a/docs/index.rst b/docs/index.rst index a440e8b56..c12c4ae72 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -45,6 +45,20 @@ Source Installation cd pyvo python setup.py install +Testing +^^^^^^^ + +.. code-block:: bash + + pip install test-requirements.txt + pytest + +Tests requiring access to the web will be skipped, to run them: + +.. code-block:: bash + + pytest --remote-data + Requirements ------------ * numpy diff --git a/pip-requirements b/pip-requirements index b490a922b..32b8ea93f 100644 --- a/pip-requirements +++ b/pip-requirements @@ -1,3 +1,4 @@ astropy requests mimeparse +pillow diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 000000000..bacb6f861 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +pytest +pytest-remotedata +requests-mock