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
|
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(
|
setup(
|
||||||
name='dataset',
|
name='dataset',
|
||||||
version='0.3.14',
|
version='0.3.14',
|
||||||
@ -26,10 +32,9 @@ setup(
|
|||||||
install_requires=[
|
install_requires=[
|
||||||
'sqlalchemy >= 0.8.1',
|
'sqlalchemy >= 0.8.1',
|
||||||
'alembic >= 0.6.1',
|
'alembic >= 0.6.1',
|
||||||
"argparse >= 1.2.1",
|
|
||||||
'python-slugify >= 0.0.6',
|
'python-slugify >= 0.0.6',
|
||||||
"PyYAML >= 3.10"
|
"PyYAML >= 3.10"
|
||||||
],
|
] + py26_dependency,
|
||||||
tests_require=[],
|
tests_require=[],
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user