From 14cd665964709a59fdead8b6a2075a5011bec3db Mon Sep 17 00:00:00 2001 From: Justin Riley Date: Tue, 2 Aug 2016 17:17:19 -0400 Subject: [PATCH] configure pytest and setuptools integration --- setup.cfg | 3 +++ setup.py | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/setup.cfg b/setup.cfg index ed88aa4..b412b3c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,6 @@ +[aliases] +test=pytest + [flake8] exclude = .git, diff --git a/setup.py b/setup.py index 1a2396e..d23f46a 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,13 @@ setup( "IPy>=0.83", "dnslib>=0.9.6", ], + setup_requires=[ + 'pytest-runner>=2.9' + ], + tests_require=[ + "pytest>=2.9.2", + "testfixtures>=4.10.0", + ], entry_points=dict(console_scripts=['onedns = onedns.cli:main']), zip_safe=False )