Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thebjorn committed Oct 9, 2019
1 parent 0f58f1f commit c02fdc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
2 changes: 0 additions & 2 deletions dkbuild.ini

This file was deleted.

25 changes: 1 addition & 24 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[],
Expand All @@ -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,
)

0 comments on commit c02fdc9

Please sign in to comment.