-
Notifications
You must be signed in to change notification settings - Fork 25
/
awssetup.py
72 lines (62 loc) · 2.2 KB
/
awssetup.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# cryptonice
# setup.py
from pathlib import Path
from setuptools import find_packages
import sys
from os import path
from pathlib import Path
import cryptonice.__init__
# The directory containing this file
HERE = Path(__file__).parent
# Setup file based on cryptonice/setup.py
root_path = Path(__file__).parent.absolute()
print('Root path = ' + str(root_path))
# The text of the README file
README = (HERE / "README.md").read_text()
# For cx_freeze builds, we need a special setup() function
if len(sys.argv) > 1 and sys.argv[1] == "build_exe":
from cx_Freeze import setup
from cx_Freeze import Executable
else:
from setuptools import setup
# Create fake Executable that does nothing so the setup.py file can be used on Linux
class Executable: # type: ignore
def __init__(self, script, targetName): # type: ignore
pass
# This call to setup() does all the work
setup(
name="cryptonice",
version=cryptonice.__version__,
description="Perform TLS scan of a domain",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/F5-Labs/cryptonice",
author="F5 Labs",
author_email="f5labs@f5.com",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
],
python_requires='>=3',
packages=["cryptonice"],
include_package_data=True,
package_data={'cryptonice': ['technologies.json', './maxmind/*.mmdb']},
install_requires=["sslyze>=4.0.0",
"dnspython>=2.0.0",
"urllib3>=1.22",
"ipaddress>=1.0.22",
"pathlib~=1.0.1",
"beautifulsoup4>=4.9.0",
"regex>=2020.5.14",
"geoip2"],
entry_points={
"console_scripts": [
"cryptonice=cryptonice.__main__:main",
]
},
# cx_freeze info for executable builds with Python embedded
options={"build_exe": {"packages": ["sslyze", "urllib3", "dns", "http_client", "ipaddress", "pathlib", "cryptography"],
"include_files": ["cryptonice"]}})
#