Make argparse a Python 2.6 dependency
This commit is contained in:
parent
aa3dded49e
commit
158e87152c
9
setup.py
9
setup.py
@ -1,5 +1,11 @@
|
||||
import sys
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
|
||||
py26_dependency = []
|
||||
if sys.version_info.major == 2 and sys.version_info.minor < 7:
|
||||
py26_dependency = ["argparse >= 1.2.1"]
|
||||
|
||||
setup(
|
||||
name='dataset',
|
||||
version='0.3.14',
|
||||
@ -26,10 +32,9 @@ setup(
|
||||
install_requires=[
|
||||
'sqlalchemy >= 0.8.1',
|
||||
'alembic >= 0.6.1',
|
||||
"argparse >= 1.2.1",
|
||||
'python-slugify >= 0.0.6',
|
||||
"PyYAML >= 3.10"
|
||||
],
|
||||
] + py26_dependency,
|
||||
tests_require=[],
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user