-
-
Notifications
You must be signed in to change notification settings - Fork 231
/
setup.py
41 lines (37 loc) · 1.38 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
""" __Doc__ File handle class """
from setuptools import find_packages, setup
from VHostScan.lib.core.__version__ import __version__
def dependencies(imported_file):
""" __Doc__ Handles dependencies """
with open(imported_file) as file:
return file.read().splitlines()
with open("README.md") as file:
num_installed = False
try:
import numpy
num_installed = True
except ImportError:
pass
setup(
name="VHostScan",
license="GPLv3",
description="A virtual host scanner that performs reverse lookups, "
"can be used with pivot tools, detect catch-all"
"scenarios, aliases and dynamic default pages.",
long_description=file.read(),
author="codingo",
version=__version__,
author_email="codingo@protonmail.com",
url="https://github.com/codingo/VHostScan",
packages=find_packages(exclude=('tests')),
package_data={'VHostScan': ['*.txt']},
entry_points={
'console_scripts': [
'VHostScan = VHostScan.VHostScan:main'
]
},
install_requires=dependencies('requirements.txt'),
setup_requires=['pytest-runner',
'' if num_installed else 'numpy==1.12.0'],
tests_require=dependencies('test-requirements.txt'),
include_package_data=True)