Remove unused install_requires parameter in setup.py.

Also, renamed PyTest class to PyTestCommand and made
a couple cosmetic changes.
This commit is contained in:
Berker Peksag 2014-10-14 15:23:15 +03:00
parent e8111b93ea
commit 2cb6b682db

View File

@ -3,7 +3,6 @@
# This file is part of gunicorn released under the MIT license. # This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information. # See the NOTICE for more information.
import os import os
import sys import sys
@ -45,7 +44,8 @@ fname = os.path.join(os.path.dirname(__file__), 'requirements_dev.txt')
with open(fname) as f: with open(fname) as f:
tests_require = list(map(lambda l: l.strip(), f.readlines())) tests_require = list(map(lambda l: l.strip(), f.readlines()))
class PyTest(TestCommand):
class PyTestCommand(TestCommand):
user_options = [ user_options = [
("cov", None, "measure coverage") ("cov", None, "measure coverage")
] ]
@ -66,8 +66,6 @@ class PyTest(TestCommand):
errno = pytest.main(self.test_args) errno = pytest.main(self.test_args)
sys.exit(errno) sys.exit(errno)
REQUIREMENTS = []
setup( setup(
name='gunicorn', name='gunicorn',
version=__version__, version=__version__,
@ -85,12 +83,9 @@ setup(
include_package_data=True, include_package_data=True,
tests_require=tests_require, tests_require=tests_require,
cmdclass = {'test': PyTest}, cmdclass={'test': PyTestCommand},
install_requires = REQUIREMENTS,
entry_points=""" entry_points="""
[console_scripts] [console_scripts]
gunicorn=gunicorn.app.wsgiapp:run gunicorn=gunicorn.app.wsgiapp:run
gunicorn_django=gunicorn.app.djangoapp:run gunicorn_django=gunicorn.app.djangoapp:run