Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove python setup.py test #326

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ Testing uses `tox <https://pypi.python.org/pypi/tox>`_. If you don't want to
install all the development requirements, then, after downloading, you can
simply run::

$ python setup.py test

The test argument to setup.py will download a minimal testing infrastructure
and run the tests.
$ tox

::

Expand Down
16 changes: 0 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
from setuptools import setup
from setuptools.command.test import test as TestCommand

import diskcache


class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True

def run_tests(self):
import tox

errno = tox.cmdline(self.test_args)
exit(errno)


with open('README.rst', encoding='utf-8') as reader:
readme = reader.read()

Expand All @@ -36,8 +22,6 @@ def run_tests(self):
},
license='Apache 2.0',
packages=['diskcache'],
tests_require=['tox'],
cmdclass={'test': Tox},
python_requires='>=3',
install_requires=[],
classifiers=(
Expand Down