-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
50 lines (39 loc) · 1.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from setuptools import find_packages, setup
from tenable_helpers import version
def get_requirements():
requirements = []
with open('requirements.txt', 'r') as fp:
requirements = [line.strip() for line in fp.readlines()]
fp.close()
if not requirements:
emsg = 'Unable to obtain requirements list'
raise Exception(emsg)
return requirements
def long_description():
with open('README.md', 'r') as fp:
lines = fp.readlines()
fp.close()
return ''.join(lines)
setup(
name='tenable_helpers',
version=version,
python_requires='>=3.6',
author='Paolo Smiraglia',
author_email='[email protected]',
description='Tenable.io CLI helpers',
long_description=long_description(),
long_description_content_type='text/markdown',
license='MIT',
url='https://github.com/psmiraglia/python-tenable-helpers',
packages=find_packages(),
include_package_data=True,
install_requires=get_requirements(),
entry_points={
'console_scripts': [
'tio-create-rg = tenable_helpers.scripts.tio_create_rg:tio_create_rg', # noqa
'tio-group2tag = tenable_helpers.scripts.tio_group2tag:tio_group2tag', # noqa
'tio-list-networks = tenable_helpers.scripts.tio_list_networks:tio_list_networks', # noqa
'tio-po2tag = tenable_helpers.scripts.tio_po2tag:tio_po2tag',
],
}
)