Merge pull request #913 from berkerpeksag/tweak-setup

Remove unused install_requires parameter in setup.py.
This commit is contained in:
Randall Leeds 2014-10-14 17:32:17 -07:00
commit f65066c0eb

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,31 +66,26 @@ 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__,
description = 'WSGI HTTP Server for UNIX', description='WSGI HTTP Server for UNIX',
long_description = long_description, long_description=long_description,
author = 'Benoit Chesneau', author='Benoit Chesneau',
author_email = 'benoitc@e-engura.com', author_email='benoitc@e-engura.com',
license = 'MIT', license='MIT',
url = 'http://gunicorn.org', url='http://gunicorn.org',
classifiers = CLASSIFIERS, classifiers=CLASSIFIERS,
zip_safe = False, zip_safe=False,
packages = find_packages(exclude=['examples', 'tests']), packages=find_packages(exclude=['examples', 'tests']),
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