1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-21 19:01:07 +03:00

Merge pull request #613 from kuba/argparse-py26

Require argparse only in Python 2.6.
This commit is contained in:
James Kasten
2015-07-15 12:11:20 -07:00
2 changed files with 13 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
import sys
from setuptools import setup
from setuptools import find_packages
@@ -18,6 +20,11 @@ install_requires = [
'werkzeug',
]
# env markers in extras_require cause problems with older pip: #517
if sys.version_info < (2, 7):
# only some distros recognize stdlib argparse as already satisfying
install_requires.append('argparse')
testing_extras = [
'nose',
'tox',

View File

@@ -1,6 +1,7 @@
import codecs
import os
import re
import sys
from setuptools import setup
from setuptools import find_packages
@@ -30,7 +31,6 @@ changes = read_file(os.path.join(here, 'CHANGES.rst'))
install_requires = [
'acme',
'argparse',
'ConfigArgParse',
'configobj',
'cryptography>=0.7', # load_pem_x509_certificate
@@ -46,6 +46,11 @@ install_requires = [
'zope.interface',
]
# env markers in extras_require cause problems with older pip: #517
if sys.version_info < (2, 7):
# only some distros recognize stdlib argparse as already satisfying
install_requires.append('argparse')
dev_extras = [
# Pin astroid==1.3.5, pylint==1.4.2 as a workaround for #289
'astroid==1.3.5',