Skip to content

Commit

Permalink
seems travis CI doesn't support the new setup syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Nov 7, 2018
1 parent 6de87a5 commit c06ca37
Showing 1 changed file with 38 additions and 37 deletions.
75 changes: 38 additions & 37 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,63 +21,64 @@
except ImportError:
from distutils.core import setup


import sys
import re

if sys.version_info[:2] == (2, 6):
install_requires = ['requests', 'protobuf <= 3.4.0', 'six', 'enum34', 'futures', 'python-dateutil',
'elasticsearch>=6.0.0,<7.0.0']
else:
# this syntax is not supported by python 2.6
install_requires = ['requests',
'protobuf <= 3.4.0; python_version <= 2.6',
'protobuf >= 3.4.0; python_version >= 2.7',
'six',
'enum34; python_version <= "3.3"',
'futures; python_version < "3"',
'python-dateutil',
elif sys.version_info[0] == 2:
install_requires = ['requests', 'protobuf>=3.4.0', 'six', 'enum34', 'futures', 'python-dateutil',
'elasticsearch>=6.0.0,<7.0.0',
'dateparser; python_version >= "2.7"']
'dateparser']
elif sys.version_info[:2] == (3, 3) or sys.version_info[:2] == (3, 4):
install_requires = ['requests', 'protobuf>=3.4.0', 'six', 'python-dateutil', 'elasticsearch>=6.0.0,<7.0.0',
'dateparser']
elif sys.version_info[0] == 3:
install_requires = ['requests', 'protobuf>=3.4.0', 'six', 'enum34', 'python-dateutil', 'elasticsearch>=6.0.0,<7.0.0',
'dateparser']

packages = [
'aliyun',
'aliyun.log',
'aliyun.log.consumer',
'aliyun.log.es_migration'
]
'aliyun',
'aliyun.log',
'aliyun.log.consumer',
'aliyun.log.es_migration'
]

version = ''
with open('aliyun/log/version.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)

classifiers = [
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: PyPy'
]
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: PyPy'
]


long_description = """
Python SDK for Alicloud Log Service
http://aliyun-log-python-sdk.readthedocs.io
"""

setup(
name='aliyun-log-python-sdk',
version=version,
description='Aliyun log service Python client SDK',
author='Aliyun',
url='https://github.com/aliyun/aliyun-log-python-sdk',
install_requires=install_requires,
packages=packages,
classifiers=classifiers,
long_description=long_description
)
name='aliyun-log-python-sdk',
version=version,
description='Aliyun log service Python client SDK',
author='Aliyun',
url='https://github.com/aliyun/aliyun-log-python-sdk',
install_requires=install_requires,
packages=packages,
classifiers=classifiers,
long_description=long_description
)

0 comments on commit c06ca37

Please sign in to comment.