diff --git a/setup.cfg b/setup.cfg index ef28b9f..35f88df 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,4 @@ [sdist] -formats = zip group = users [flake8] diff --git a/setup.py b/setup.py deleted file mode 100644 index 1b6155f..0000000 --- a/setup.py +++ /dev/null @@ -1,40 +0,0 @@ -#! /usr/bin/env python -# -# setup.py -- ayame setup script -# - -import sys - -from setuptools import setup, Command - - -class test(Command): - - description = 'run unit tests' - user_options = [('failfast', 'f', 'stop on first fail or error')] - - boolean_options = ['failfast'] - - def initialize_options(self): - self.failfast = False - - def finalize_options(self): - pass - - def run(self): - import unittest - - # run unittest discover - argv = [sys.argv[0], 'discover', '--start-directory', 'tests'] - if self.verbose: - argv.append('--verbose') - if self.failfast: - argv.append('--failfast') - unittest.main(None, argv=argv) - - -setup( - cmdclass={ - 'test': test, - }, -) diff --git a/tox.ini b/tox.ini index ef8d4fc..53346cc 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ deps = commands = # test coverage erase - coverage run --source=ayame setup.py test {posargs:--quiet} + coverage run --source=ayame -m unittest discover -s tests {posargs} coverage report # lint flake8