mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 00:02:14 -04:00
setup.py: separate install_requires
This commit is contained in:
parent
cd7c6d8220
commit
c5bf273024
1 changed files with 62 additions and 0 deletions
62
setup.py
62
setup.py
|
|
@ -28,6 +28,61 @@ meta = dict(re.findall(r"""__([a-z]+)__ = "([^"]+)""", read_file(init_fn)))
|
|||
readme = read_file(os.path.join(here, 'README.rst'))
|
||||
changes = read_file(os.path.join(here, 'CHANGES.rst'))
|
||||
|
||||
# #358: acme, letsencrypt, letsencrypt_apache, letsencrypt_nginx, etc.
|
||||
# shall be distributed separately. Please make sure to keep the
|
||||
# dependecy lists up to date: this is being somewhat checked below
|
||||
# using an assert statement! Separate lists are helpful for OS package
|
||||
# maintainers. and will make the future migration a lot easier.
|
||||
acme_install_requires = [
|
||||
'argparse',
|
||||
#'letsencrypt' # TODO: uses testdata vectors
|
||||
'mock',
|
||||
'pycrypto',
|
||||
'pyrfc3339',
|
||||
'ndg-httpsclient', # urllib3 InsecurePlatformWarning (#304)
|
||||
'pyasn1', # urllib3 InsecurePlatformWarning (#304)
|
||||
'pytz',
|
||||
'requests',
|
||||
'werkzeug',
|
||||
'M2Crypto',
|
||||
]
|
||||
letsencrypt_install_requires = [
|
||||
#'acme',
|
||||
'argparse',
|
||||
'ConfigArgParse',
|
||||
'configobj',
|
||||
'M2Crypto',
|
||||
'mock',
|
||||
'parsedatetime',
|
||||
'psutil>=2.1.0', # net_connections introduced in 2.1.0
|
||||
'pycrypto',
|
||||
# https://pyopenssl.readthedocs.org/en/latest/api/crypto.html#OpenSSL.crypto.X509Req.get_extensions
|
||||
'PyOpenSSL>=0.15',
|
||||
'pyrfc3339',
|
||||
'python-augeas',
|
||||
'python2-pythondialog>=3.2.2rc1', # Debian squeeze support, cf. #280
|
||||
'pytz',
|
||||
'requests',
|
||||
'zope.component',
|
||||
'zope.interface',
|
||||
'M2Crypto',
|
||||
]
|
||||
letsencrypt_apache_install_requires = [
|
||||
#'acme',
|
||||
#'letsencrypt',
|
||||
'mock',
|
||||
'python-augeas',
|
||||
'zope.component',
|
||||
'zope.interface',
|
||||
]
|
||||
letsencrypt_nginx_install_requires = [
|
||||
#'acme',
|
||||
#'letsencrypt',
|
||||
'pyparsing>=1.5.5', # Python3 support; perhaps unnecessary?
|
||||
'mock',
|
||||
'zope.interface',
|
||||
]
|
||||
|
||||
install_requires = [
|
||||
'argparse',
|
||||
'ConfigArgParse',
|
||||
|
|
@ -54,6 +109,13 @@ install_requires = [
|
|||
'M2Crypto',
|
||||
]
|
||||
|
||||
assert set(install_requires) == set.union(*(set(ireq) for ireq in (
|
||||
acme_install_requires,
|
||||
letsencrypt_install_requires,
|
||||
letsencrypt_apache_install_requires,
|
||||
letsencrypt_nginx_install_requires
|
||||
))), "*install_requires don't match up!"
|
||||
|
||||
dev_extras = [
|
||||
# Pin astroid==1.3.5, pylint==1.4.2 as a workaround for #289
|
||||
'astroid==1.3.5',
|
||||
|
|
|
|||
Loading…
Reference in a new issue