From 4572f9f999ec7d35358bd8f18b308a816c08c1d9 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Wed, 1 Jul 2015 15:44:55 +1200 Subject: [PATCH] Programmatically declare test dependencies. This can be used e.g. 'pip install -e .[test]' Change-Id: I51c0411af37ab2c43d068d22f0e3473dd958c7ba --- doc/hacking.rst | 3 +++ setup.cfg | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/doc/hacking.rst b/doc/hacking.rst index 3d41ab8..d71b244 100644 --- a/doc/hacking.rst +++ b/doc/hacking.rst @@ -55,6 +55,9 @@ methods are implemented. However, when writing tests for testtools itself, it is often useful to see all levels of the stack. To do this, add ``run_tests_with = FullStackRunTest`` to the top of a test's class definition. +To install all the test dependencies, install the ``test`` extra:: + + pip install e .[test] Discussion ---------- diff --git a/setup.cfg b/setup.cfg index 2461767..3fd77c5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,6 +9,11 @@ classifier = License :: OSI Approved :: MIT License Programming Language :: Python :: 3 +[extras] +test = + fixtures + unittest2>=1.1.0 + [files] packages = testtools