mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 20:37:46 +00:00
setup.py: Use env markers for Python version-specific dependencies (#495)
* setup.py: Use env markers for Python version-specific dependencies Changing package properties dynamically in setup.py means that universal wheels will actually be built only for the builder's environment, and might not work properly on different platforms/PYthon versions. Closes https://github.com/zalando/connexion/issues/493 * travis: Upgrade setuptools before running tests * reqs: Stop installing pathlib from mercurial in dev mode The mercurial repo is at 0.8 while the latest release on PyPI is 1.0.1
This commit is contained in:
committed by
Henning Jacobs
parent
78e962f5f4
commit
d51e9c8a4c
12
setup.py
12
setup.py
@@ -3,7 +3,6 @@
|
||||
|
||||
import inspect
|
||||
import os
|
||||
import platform
|
||||
import sys
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
@@ -21,9 +20,6 @@ def read_version(package):
|
||||
|
||||
version = read_version('connexion')
|
||||
|
||||
py_major_minor_version = tuple(int(v.rstrip('+')) for v in platform.python_version_tuple()[:2])
|
||||
|
||||
|
||||
install_requires = [
|
||||
'clickclick>=1.2',
|
||||
'jsonschema>=2.5.1',
|
||||
@@ -32,16 +28,12 @@ install_requires = [
|
||||
'six>=1.9',
|
||||
'swagger-spec-validator>=2.0.2',
|
||||
'inflection>=0.3.1',
|
||||
'pathlib>=1.0.1; python_version < "3.4"',
|
||||
'typing>=3.6.1; python_version < "3.6"',
|
||||
]
|
||||
|
||||
flask_require = 'flask>=0.10.1'
|
||||
|
||||
if py_major_minor_version < (3, 4):
|
||||
install_requires.append('pathlib>=1.0.1')
|
||||
|
||||
if py_major_minor_version < (3, 6):
|
||||
install_requires.append('typing>=3.6.1')
|
||||
|
||||
tests_require = [
|
||||
'decorator',
|
||||
'mock',
|
||||
|
||||
Reference in New Issue
Block a user