diff --git a/csr_tools/csrgen.py b/csr_tools/csrgen.py index f2461cc..c6704ba 100755 --- a/csr_tools/csrgen.py +++ b/csr_tools/csrgen.py @@ -23,7 +23,7 @@ import sys, platform, yaml import argparse, logging, logging.handlers from OpenSSL import crypto, SSL -__version__ = '1.0.1' +__version__ = '1.1.0' class Certificate: def __init__(self, logger, opts={}): diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7fa25bf --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +setuptools==39.1.0 +pyOpenSSL==18.0.0 +PyYAML==3.12 diff --git a/setup.py b/setup.py index 77bab5d..03a2f14 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,14 @@ #!/usr/bin/env python from setuptools import setup, find_packages -# Lets makes ure we have the correct modules installed before continuing. -# Had issues with people not having OpenSSL not installed, just -# wanted to run a check. +# Get required packages from requirements.txt +# Make it compatible with setuptools and pip +with open('requirements.txt') as f: + requirements = f.read().splitlines() + setup( name="CSR Generator", - version="1.0", - packages=find_packages(), - install_requires=[ 'pyopenssl', 'argparse', 'pyyaml' ] -) + version = "1.1.0", + packages=find_packages(), + install_requires=requirements +) \ No newline at end of file