aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2014-12-18 11:55:10 +0000
committerTom Christie2014-12-18 11:55:10 +0000
commit1e531d20819442a739695df05edeb97f7ab5ef23 (patch)
tree680d6802d1b34fd66978473bb9a55ac208bddc8f
parentaf0f04246204767312ee82219e4e44c9f9b6ea53 (diff)
parent6909e92d22520fa9717507e9b9bd7db8601c17cd (diff)
downloaddjango-rest-framework-1e531d20819442a739695df05edeb97f7ab5ef23.tar.bz2
Merge pull request #2314 from tomchristie/drop-setup-py-test
Drop 'setup.py test'. Just use 'runtests.py'.
-rwxr-xr-xsetup.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/setup.py b/setup.py
index 50bac046..1e54836c 100755
--- a/setup.py
+++ b/setup.py
@@ -8,20 +8,6 @@ import os
import sys
-# This command has been borrowed from
-# https://github.com/getsentry/sentry/blob/master/setup.py
-class PyTest(TestCommand):
- def finalize_options(self):
- TestCommand.finalize_options(self)
- self.test_args = ['tests']
- self.test_suite = True
-
- def run_tests(self):
- import pytest
- errno = pytest.main(self.test_args)
- sys.exit(errno)
-
-
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
@@ -80,7 +66,6 @@ setup(
author_email='tom@tomchristie.com', # SEE NOTE BELOW (*)
packages=get_packages('rest_framework'),
package_data=get_package_data('rest_framework'),
- cmdclass={'test': PyTest},
install_requires=[],
classifiers=[
'Development Status :: 5 - Production/Stable',