From e6ac3e7d6f4a1aa3791cd4e2240677d422617683 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 18 Jun 2020 13:14:43 -0700 Subject: [PATCH] Added test dependencies to setup.py --- .travis.yml | 2 +- setup.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 601e72b..651d333 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ python: - "3.8" before_script: - - pip install -U datasette pip wheel pytest + - pip install -e .[test] script: - pytest diff --git a/setup.py b/setup.py index 588f361..43e0ddc 100644 --- a/setup.py +++ b/setup.py @@ -24,4 +24,6 @@ def get_long_description(): py_modules=["datasette_render_images"], entry_points={"datasette": ["render_images = datasette_render_images"]}, install_requires=["datasette"], + extras_require={"test": ["pytest"]}, + tests_require=["datasette-auth-tokens[test]"], )