Skip to content

Commit

Permalink
Declare our setuptools dependency (#1931)
Browse files Browse the repository at this point in the history
We rely on setuptools' pkg_resources in a few places so we declare our
dependency so that packaging and installation tools work.

Fixes #1716
  • Loading branch information
jsirois authored and berkerpeksag committed Dec 7, 2018
1 parent ee7af12 commit ba9a446
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ def run_tests(self):
sys.exit(errno)


install_requires = [
# We depend on functioning pkg_resources.working_set.add_entry() and
# pkg_resources.load_entry_point(). These both work as of 3.0 which
# is the first version to support Python 3.4 which we require as a
# floor.
'setuptools>=3.0',
]

extra_require = {
'gevent': ['gevent>=0.13'],
'eventlet': ['eventlet>=0.9.7'],
Expand All @@ -84,6 +92,7 @@ def run_tests(self):
url='http://gunicorn.org',

python_requires='>=3.4',
install_requires=install_requires,
classifiers=CLASSIFIERS,
zip_safe=False,
packages=find_packages(exclude=['examples', 'tests']),
Expand Down

0 comments on commit ba9a446

Please sign in to comment.