mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-10 04:19:37 +00:00
https://github.com/zalando/connexion/issues/33 conditional requirements
This commit is contained in:
1
.checkignore
Normal file
1
.checkignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
tests
|
||||||
9
setup.py
9
setup.py
@@ -1,12 +1,19 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import platform
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from setuptools.command.test import test as TestCommand
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '0.8'
|
version = '0.8'
|
||||||
|
py_major_version, py_minor_version, _ = platform.python_version_tuple()
|
||||||
|
|
||||||
|
requires = ['flask', 'PyYAML', 'tornado', 'requests', 'six']
|
||||||
|
|
||||||
|
if py_major_version == 2 or (py_major_version == 3 and py_minor_version < 4):
|
||||||
|
requires.append('pathlib')
|
||||||
|
|
||||||
|
|
||||||
class PyTest(TestCommand):
|
class PyTest(TestCommand):
|
||||||
@@ -36,7 +43,7 @@ setup(
|
|||||||
author='Zalando SE',
|
author='Zalando SE',
|
||||||
url='https://github.com/zalando/connexion',
|
url='https://github.com/zalando/connexion',
|
||||||
license='Apache License Version 2.0',
|
license='Apache License Version 2.0',
|
||||||
install_requires=['flask', 'PyYAML', 'tornado', 'requests', 'six'],
|
install_requires=requires,
|
||||||
tests_require=['pytest-cov', 'pytest'],
|
tests_require=['pytest-cov', 'pytest'],
|
||||||
cmdclass={'test': PyTest},
|
cmdclass={'test': PyTest},
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
|||||||
Reference in New Issue
Block a user