-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
29 lines (26 loc) · 890 Bytes
/
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
"""
cx_Freeze setup
"""
import re
from cx_Freeze import setup, Executable
VERSION_FILE: str = "_version.py"
VERSION_STRING = open(VERSION_FILE, "rt").read()
VERSION_REGEX = r"^__version__ = ['\"]([^'\"]*)['\"]"
VERSION_MATCHES = re.search(VERSION_REGEX, VERSION_STRING, re.M)
if VERSION_MATCHES:
version_string: str = VERSION_MATCHES.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSION_FILE,))
BUILD_OPTIONS = dict(packages=[],
include_files=['./database/thekadeshi.db', 'files/report.html'], )
setup(
name='theKadeshi',
version=version_string,
url='https://thekadeshi.com',
license='MIT',
author='theKadeshi',
author_email='info@thekadeshi.com',
description='Antivirus for your site',
options=dict(build_exe=BUILD_OPTIONS),
executables=[Executable(script="kadeshi.py", icon="icon.ico")]
)