Skip to content

Commit

Permalink
Merge pull request #58 from nitoqq/deps-environment-markers
Browse files Browse the repository at this point in the history
dependencies environment markers
  • Loading branch information
xzkostyan authored Jun 26, 2019
2 parents 99d91c1 + 6f0cb48 commit e4db826
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
import os
import re
import sys
from codecs import open

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))

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

install_requires = [
'sqlalchemy>=1.2',
'requests',
'clickhouse-driver>=0.0.19'
]
if not PY34:
install_requires.append('ipaddress')

with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
Expand Down Expand Up @@ -96,19 +86,23 @@ 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=[
'sqlalchemy>=1.2',
'requests',
'clickhouse-driver>=0.0.19',
'ipaddress; python_version<"3.4"',
],
# Registering `clickhouse` as dialect.
entry_points={
'sqlalchemy.dialects': dialects
},

test_suite='nose.collector',
tests_require=[
'nose',
'sqlalchemy>=1.2',
'mock',
'requests',
'responses',
'enum34'
'enum34; python_version<"3.4"',
],
)

0 comments on commit e4db826

Please sign in to comment.