mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 04:19:32 +00:00
remove check for python versions less than 3.5
This commit is contained in:
@@ -37,14 +37,13 @@ except ImportError: # pragma: no cover
|
|||||||
App = FlaskApp
|
App = FlaskApp
|
||||||
Api = FlaskApi
|
Api = FlaskApi
|
||||||
|
|
||||||
if sys.version_info >= (3, 5, 3): # pragma: no cover
|
try:
|
||||||
try:
|
from .apis.aiohttp_api import AioHttpApi
|
||||||
from .apis.aiohttp_api import AioHttpApi
|
from .apps.aiohttp_app import AioHttpApp
|
||||||
from .apps.aiohttp_app import AioHttpApp
|
except ImportError: # pragma: no cover
|
||||||
except ImportError: # pragma: no cover
|
_aiohttp_not_installed_error = not_installed_error()
|
||||||
_aiohttp_not_installed_error = not_installed_error()
|
AioHttpApi = _aiohttp_not_installed_error
|
||||||
AioHttpApi = _aiohttp_not_installed_error
|
AioHttpApp = _aiohttp_not_installed_error
|
||||||
AioHttpApp = _aiohttp_not_installed_error
|
|
||||||
|
|
||||||
# This version is replaced during release process.
|
# This version is replaced during release process.
|
||||||
__version__ = '2018.0.dev1'
|
__version__ = '2018.0.dev1'
|
||||||
|
|||||||
17
setup.py
17
setup.py
@@ -47,10 +47,9 @@ tests_require = [
|
|||||||
swagger_ui_require
|
swagger_ui_require
|
||||||
]
|
]
|
||||||
|
|
||||||
if sys.version_info >= (3, 5, 3):
|
tests_require.extend(aiohttp_require)
|
||||||
tests_require.extend(aiohttp_require)
|
tests_require.append('pytest-aiohttp')
|
||||||
tests_require.append('pytest-aiohttp')
|
tests_require.append('aiohttp-remotes')
|
||||||
tests_require.append('aiohttp-remotes')
|
|
||||||
|
|
||||||
|
|
||||||
class PyTest(TestCommand):
|
class PyTest(TestCommand):
|
||||||
@@ -60,14 +59,8 @@ class PyTest(TestCommand):
|
|||||||
def initialize_options(self):
|
def initialize_options(self):
|
||||||
TestCommand.initialize_options(self)
|
TestCommand.initialize_options(self)
|
||||||
self.cov = None
|
self.cov = None
|
||||||
self.pytest_args = ['--cov', 'connexion', '--cov-report', 'term-missing', '-v']
|
self.pytest_args = ['--cov', 'connexion', '--cov-report', 'term-missing',
|
||||||
|
'--cov-config=py3-coveragerc', '-v']
|
||||||
if sys.version_info < (3, 5, 3):
|
|
||||||
self.pytest_args.append('--cov-config=py2-coveragerc')
|
|
||||||
self.pytest_args.append('--ignore=tests/aiohttp')
|
|
||||||
else:
|
|
||||||
self.pytest_args.append('--cov-config=py3-coveragerc')
|
|
||||||
|
|
||||||
self.cov_html = False
|
self.cov_html = False
|
||||||
|
|
||||||
def finalize_options(self):
|
def finalize_options(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user