From 280c60120beb13d00c807c418c765b93da248b19 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Mon, 10 Apr 2017 06:48:57 +0100 Subject: [PATCH] Set up pytest --- setup.cfg | 3 +++ setup.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/setup.cfg b/setup.cfg index 14c6824..459ffba 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,3 +5,6 @@ universal=1 source-dir = docs build-dir = docs/build all_files = 1 + +[aliases] +test=pytest diff --git a/setup.py b/setup.py index a9e2bfc..59d684b 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,8 @@ setup(name='Mastodon.py', version='1.0.6', description='Python wrapper for the Mastodon API', packages=['mastodon'], + setup_requires=['pytest-runner'], + tests_require=['pytest'], install_requires=['requests', 'dateutils'], url='https://github.com/halcy/Mastodon.py', author='Lorenz Diener',