diff --git a/setup.py b/setup.py index 763237092..d2d413a83 100755 --- a/setup.py +++ b/setup.py @@ -45,6 +45,7 @@ def finalize_options(self): TestCommand.finalize_options(self) if self.cov_html: self.pytest_args.extend(['--cov-report', 'html']) + self.pytest_args.extend(['tests']) def run_tests(self): import pytest @@ -53,12 +54,19 @@ def run_tests(self): sys.exit(errno) +def readme(): + try: + return open('README.rst', encoding='utf-8').read() + except TypeError: + return open('README.rst').read() + + setup( name='connexion', packages=find_packages(), version=version, description='Connexion - API first applications with OpenAPI/Swagger and Flask', - long_description=open('README.rst').read(), + long_description=readme(), author='Zalando SE', url='https://github.com/zalando/connexion', keywords='openapi oai swagger rest api oauth flask microservice framework',