From e72403e5d0754b31561bb959baefecdef12c3d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Caletka?= Date: Sat, 7 Jul 2018 22:55:35 +0200 Subject: [PATCH] Pytest integration --- setup.cfg | 2 ++ setup.py | 23 ++++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b7e4789 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[aliases] +test=pytest diff --git a/setup.py b/setup.py index f807b3e..db971ae 100644 --- a/setup.py +++ b/setup.py @@ -2,18 +2,19 @@ from setuptools import setup setup( - name="dzonegit", - version="0.1", - description="Git hooks to admin DNS zone files in git", - author="Ondřej Caletka", - author_email="ondrej@caletka.cz", - license="MIT", - py_modules=["dzonegit"], - entry_points={ + name="dzonegit", + version="0.1", + description="Git hooks to admin DNS zone files in git", + author="Ondřej Caletka", + author_email="ondrej@caletka.cz", + license="MIT", + py_modules=["dzonegit"], + setup_requires=['pytest-runner', ], + tests_require=['pytest', ], + entry_points={ "console_scripts": [ "dzonegit = dzonegit:main", "pre-commit = dzonegit:pre_commit", - ], - }, + ], + }, ) -