Commit 29bf7bc0 authored by Jim Fulton's avatar Jim Fulton Committed by GitHub

Merge pull request #39 from zopefoundation/uvloop

Uvloop
parents e5653d43 e8bec203
...@@ -25,6 +25,21 @@ if (3, 0) < sys.version_info < (3, 3): ...@@ -25,6 +25,21 @@ if (3, 0) < sys.version_info < (3, 3):
print("This version of ZEO requires Python 3.3 or higher") print("This version of ZEO requires Python 3.3 or higher")
sys.exit(0) 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 = """\ classifiers = """\
Intended Audience :: Developers Intended Audience :: Developers
...@@ -92,8 +107,6 @@ def alltests(): ...@@ -92,8 +107,6 @@ def alltests():
_unittests_only(suite, mod.test_suite()) _unittests_only(suite, mod.test_suite())
return suite return suite
tests_require = ['zope.testing', 'manuel', 'random2', 'mock']
long_description = ( long_description = (
open('README.rst').read() open('README.rst').read()
+ '\n' + + '\n' +
...@@ -114,16 +127,7 @@ setup(name="ZEO", ...@@ -114,16 +127,7 @@ setup(name="ZEO",
test_suite="__main__.alltests", # to support "setup.py test" test_suite="__main__.alltests", # to support "setup.py test"
tests_require = tests_require, tests_require = tests_require,
extras_require = dict(test=tests_require), extras_require = dict(test=tests_require),
install_requires = [ install_requires = install_requires,
'ZODB >= 5.0.0a5',
'six',
'transaction >= 1.6.0',
'persistent >= 4.1.0',
'zc.lockfile',
'ZConfig',
'zdaemon',
'zope.interface',
],
zip_safe = False, zip_safe = False,
entry_points = """ entry_points = """
[console_scripts] [console_scripts]
......
# import sys
if sys.version_info >= (3, 5):
import asyncio
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment