certbot/setup.py

86 lines
2 KiB
Python
Raw Normal View History

#!/usr/bin/env python
2015-01-29 17:28:22 -05:00
import codecs
import os
import re
from setuptools import setup
def read_file(filename, encoding='utf8'):
2015-01-29 17:28:22 -05:00
"""Read unicode from given file."""
with codecs.open(filename, encoding=encoding) as fd:
return fd.read()
here = os.path.abspath(os.path.dirname(__file__))
# read version number (and other metadata) from package init
init_fn = os.path.join(here, 'letsencrypt', '__init__.py')
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'))
2014-11-22 08:19:19 -05:00
install_requires = [
2014-11-26 21:30:42 -05:00
'argparse',
2015-01-31 06:37:24 -05:00
'ConfArgParse',
2014-11-22 08:19:19 -05:00
'jsonschema',
'mock',
2014-11-22 08:19:19 -05:00
'pycrypto',
'python-augeas',
'python2-pythondialog',
'requests',
2014-12-17 06:02:15 -05:00
'zope.component',
2014-12-17 04:12:59 -05:00
'zope.interface',
# order of items in install_requires DOES matter and M2Crypto has
# to go last, see #152
'M2Crypto',
2014-11-22 08:19:19 -05:00
]
2015-02-06 18:41:28 -05:00
dev_extras = [
'pylint>=1.4.0', # upstream #248
2015-01-30 19:28:09 -05:00
'repoze.sphinx.autointerface',
2014-11-23 14:36:34 -05:00
'Sphinx',
]
2014-11-22 08:19:19 -05:00
testing_extras = [
'coverage',
'nose',
2014-11-27 14:30:56 -05:00
'nosexcover',
'tox',
2014-11-22 08:19:19 -05:00
]
setup(
name="letsencrypt",
version=meta['version'],
description="Let's Encrypt",
long_description=readme, # later: + '\n\n' + changes
author="Let's Encrypt Project",
license="",
url="https://letsencrypt.org",
packages=[
'letsencrypt',
'letsencrypt.client',
'letsencrypt.client.apache',
'letsencrypt.client.display',
2014-12-17 02:14:35 -05:00
'letsencrypt.client.tests',
2015-01-17 05:29:29 -05:00
'letsencrypt.client.tests.apache',
'letsencrypt.client.tests.display',
'letsencrypt.scripts',
],
2014-11-22 08:19:19 -05:00
install_requires=install_requires,
tests_require=install_requires,
2014-11-27 14:24:50 -05:00
test_suite='letsencrypt',
2014-11-22 08:19:19 -05:00
extras_require={
2015-02-06 18:41:28 -05:00
'dev': dev_extras,
2014-11-22 08:19:19 -05:00
'testing': testing_extras,
},
entry_points={
'console_scripts': [
2014-11-21 20:52:03 -05:00
'letsencrypt = letsencrypt.scripts.main:main',
],
},
zip_safe=False,
include_package_data=True,
)