From c02fdc91e81880e60f648f570740a5e2c773c948 Mon Sep 17 00:00:00 2001 From: thebjorn Date: Wed, 9 Oct 2019 09:58:12 +0200 Subject: [PATCH] cleanup --- dkbuild.ini | 2 -- setup.py | 25 +------------------------ 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 dkbuild.ini diff --git a/dkbuild.ini b/dkbuild.ini deleted file mode 100644 index 86c6087..0000000 --- a/dkbuild.ini +++ /dev/null @@ -1,2 +0,0 @@ -[dkbuild] -venv = dk diff --git a/setup.py b/setup.py index 4cdb721..09f4caf 100644 --- a/setup.py +++ b/setup.py @@ -15,34 +15,12 @@ Topic :: Software Development :: Libraries """ -import sys import setuptools -from setuptools import setup, Command -from setuptools.command.test import test as TestCommand version = '1.0.2' -class PyTest(TestCommand): - user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] - - def initialize_options(self): - TestCommand.initialize_options(self) - self.pytest_args = [] - - def finalize_options(self): - TestCommand.finalize_options(self) - self.test_args = [] - self.test_suite = True - - def run_tests(self): - # import here, cause outside the eggs aren't loaded - import pytest - errno = pytest.main(self.pytest_args) - sys.exit(errno) - - -setup( +setuptools.setup( name='dk', version=version, requires=[], @@ -58,7 +36,6 @@ def run_tests(self): author_email='bp@datakortet.no', url="http://www.github.com/datakortet/dk/", download_url='https://www.github.com/datakortet/dk', - cmdclass={'test': PyTest}, packages=setuptools.find_packages(exclude=['tests*']), zip_safe=False, )