Manage requirements in requirements.txt
parent
6bd49652e0
commit
7070e6836a
|
@ -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={}):
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
setuptools==39.1.0
|
||||
pyOpenSSL==18.0.0
|
||||
PyYAML==3.12
|
16
setup.py
16
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
|
||||
)
|
Loading…
Reference in New Issue