-
-
Notifications
You must be signed in to change notification settings - Fork 775
/
setup.py
38 lines (35 loc) · 1.14 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
from setuptools import setup
def get_extras(rel_path):
with open(rel_path) as f:
extras = [line for line in f.read().splitlines() if not line.startswith('#')]
return extras
def get_version(rel_path):
with open(rel_path) as f:
for line in f.read().splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError('Unable to find version string')
setup(
name='dnstwist',
version=get_version('dnstwist.py'),
author='Marcin Ulikowski',
description='Domain name permutation engine for detecting homograph phishing attacks, typo squatting, and brand impersonation',
long_description='Project website: https://github.com/elceef/dnstwist',
url='https://github.com/elceef/dnstwist',
license='ASL 2.0',
py_modules=['dnstwist'],
entry_points={
'console_scripts': ['dnstwist=dnstwist:run']
},
install_requires=[],
extras_require={
'full': get_extras('requirements.txt'),
},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
],
)