Skip to content

Commit

Permalink
Use uvloop for >= Py3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jul 3, 2016
1 parent 48defe9 commit b76fea7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
28 changes: 16 additions & 12 deletions setup.py
Expand Up @@ -25,6 +25,21 @@
print("This version of ZEO requires Python 3.3 or higher")
sys.exit(0)

install_requires = [
'ZODB >= 5.0.0a1',
'six',
'transaction >= 1.6.0',
'persistent >= 4.1.0',
'zc.lockfile',
'ZConfig',
'zdaemon',
'zope.interface',
]

tests_require = ['zope.testing', 'manuel', 'random2', 'mock']

if sys.version_info >= (3, 5):
install_requires.append('uvloop')

classifiers = """\
Intended Audience :: Developers
Expand Down Expand Up @@ -92,8 +107,6 @@ def emit(self, record):
_unittests_only(suite, mod.test_suite())
return suite

tests_require = ['zope.testing', 'manuel', 'random2', 'mock']

long_description = (
open('README.rst').read()
+ '\n' +
Expand All @@ -114,16 +127,7 @@ def emit(self, record):
test_suite="__main__.alltests", # to support "setup.py test"
tests_require = tests_require,
extras_require = dict(test=tests_require),
install_requires = [
'ZODB >= 5.0.0a1',
'six',
'transaction >= 1.6.0',
'persistent >= 4.1.0',
'zc.lockfile',
'ZConfig',
'zdaemon',
'zope.interface',
],
install_requires = install_requires,
zip_safe = False,
entry_points = """
[console_scripts]
Expand Down
7 changes: 6 additions & 1 deletion src/ZEO/asyncio/__init__.py
@@ -1,2 +1,7 @@
#
import sys

if sys.version_info >= (3, 5):
import asyncio
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

0 comments on commit b76fea7

Please sign in to comment.