Skip to content

Commit

Permalink
Merge pull request #96 from nitoqq/deps-environment-markers
Browse files Browse the repository at this point in the history
dependencies environment markers
  • Loading branch information
xzkostyan committed Jun 26, 2019
2 parents a6df6f3 + 8f2243a commit 35eef20
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import sys
import re
from codecs import open

Expand All @@ -8,14 +7,6 @@
here = os.path.abspath(os.path.dirname(__file__))


PY34 = sys.version_info[0:2] >= (3, 4)

install_requires = ['pytz']
if not PY34:
install_requires.append('enum34')
install_requires.append('ipaddress')


def read_version():
regexp = re.compile(r'^VERSION\W*=\W*\(([^\(\)]*)\)')
init_py = os.path.join(here, 'clickhouse_driver', '__init__.py')
Expand Down Expand Up @@ -85,7 +76,11 @@ def read_version():

packages=find_packages('.', exclude=['tests*']),
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
install_requires=install_requires,
install_requires=[
'pytz',
'enum34; python_version<"3.4"',
'ipaddress; python_version<"3.4"',
],
extras_require={
'lz4': ['lz4', 'clickhouse-cityhash>=1.0.2.1'],
'zstd': ['zstd', 'clickhouse-cityhash>=1.0.2.1']
Expand All @@ -95,7 +90,8 @@ def read_version():
'nose',
'mock',
'freezegun',
'lz4', 'zstd',
'lz4',
'zstd',
'clickhouse-cityhash>=1.0.2.1'
],
)

0 comments on commit 35eef20

Please sign in to comment.