Skip to content

Commit

Permalink
cleanup setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed Feb 6, 2024
1 parent c81e9b6 commit 219d69d
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
import sys
import unittest
from distutils.core import setup, Command
from setuptools import setup


class TestCommand(Command):
user_options = [('db=', None, 'database type (derby|db2)')]

def initialize_options(self):
self.db = 'derby'

def finalize_options(self):
assert self.db in ('derby', 'db2'), 'Invalid database type!'

def run(self):
if self.db == 'derby':
from drda.tests import test_derby as test_module
elif self.db == 'db2':
from drda.tests import test_db2 as test_module
unittest.main(test_module, argv=sys.argv[:1])

cmdclass = {'test': TestCommand}

version = "%d.%d.%d" % __import__('drda').VERSION

classifiers = [
Expand Down

0 comments on commit 219d69d

Please sign in to comment.