Skip to content

Commit

Permalink
Remove old setup.py stuff for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Dec 24, 2019
1 parent 5930183 commit c477472
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import sys

from setuptools import setup
from setuptools.command.test import test as TestCommand

about = {}
with open("cihai_cli/__about__.py") as fp:
Expand All @@ -22,22 +21,6 @@
readme = open('README.rst').read()

history = open('CHANGES').read().replace('.. :changelog:', '')


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 run_tests(self):
import pytest

errno = pytest.main(self.pytest_args)
sys.exit(errno)


setup(
name=about['__title__'],
version=about['__version__'],
Expand All @@ -57,7 +40,6 @@ def run_tests(self):
include_package_data=True,
install_requires=install_reqs,
tests_require=tests_reqs,
cmdclass={'test': PyTest},
zip_safe=False,
keywords=about['__title__'],
entry_points=dict(console_scripts=['cihai=cihai_cli.cli:cli']),
Expand Down

0 comments on commit c477472

Please sign in to comment.