Commit 07bf4599 authored by Jeremías Casteglione's avatar Jeremías Casteglione Committed by Jeremías

setuptools support

parent 0f1b6743
......@@ -194,5 +194,18 @@ def main(argv):
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)
sys.stdout.write(signed_crt)
def __check_deps():
# check runtime dependencies (openssl command only)
stat, out = subprocess.getstatusoutput("openssl version")
if stat != 0:
sys.stderr.write(out)
sys.stderr.write('\n')
sys.exit(stat)
def __entry_point():
# needed for setuptools support (see setup.py file)
__check_deps()
main(sys.argv[1:])
if __name__ == "__main__": # pragma: no cover
main(sys.argv[1:])
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
from setuptools import setup
long_description = """
acme-tiny is a tiny script to issue and renew TLS certs from Let's Encrypt
This is a tiny, auditable script that you can throw on your server to issue and
renew Let's Encrypt certificates. Since it has to be run on your server and have
access to your private Let's Encrypt account key, I tried to make it as tiny as
possible (currently less than 200 lines). The only prerequisites are python and
openssl.
"""
setup(
name='acme-tiny',
version='20171115',
description="acme-tiny is a tiny script to issue and renew TLS certs from Let's Encrypt",
long_description=long_description,
license='MIT',
url='https://github.com/diafygi/acme-tiny',
author='Daniel Roesler',
author_email='diafygi@gmail.com',
maintainer='Jeremías Casteglione',
maintainer_email='jrmsdev@gmail.com',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
keywords='development',
py_modules=['acme_tiny'],
entry_points={
'console_scripts': [
'acme-tiny=acme_tiny:__entry_point',
],
},
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment