Manage requirements in requirements.txt

pull/7/head
Ben Mz 2018-06-15 20:37:57 +02:00
parent 6bd49652e0
commit 7070e6836a
3 changed files with 13 additions and 8 deletions

View File

@ -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={}):

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
setuptools==39.1.0
pyOpenSSL==18.0.0
PyYAML==3.12

View File

@ -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
)