-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9f75d8
commit 62d5473
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ pylint | |
deptry | ||
flake8 | ||
mypy | ||
pyinstaller | ||
pyinstaller | ||
cx_Freeze |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import os | ||
|
||
# from cx_Freeze import setup, Executable | ||
|
||
|
||
def find_all_scripts(directory): | ||
script_list = [] | ||
for root, _, files in os.walk(directory): | ||
for file in files: | ||
if file.endswith(".py"): | ||
script_list.append(os.path.relpath(os.path.join(root, file))) | ||
return script_list | ||
|
||
|
||
def parse_requirements(requirements_file): | ||
with open(requirements_file, mode="r", encoding="utf-8") as file: | ||
return [line.strip() for line in file] | ||
|
||
|
||
all_scripts = find_all_scripts("source") | ||
print(all_scripts) | ||
|
||
required_modules = parse_requirements("requirements.txt") | ||
print(required_modules) | ||
|
||
|
||
# build_exe_options = {"packages": ["os"], "includes": ["tkinter"]} | ||
# executables=[Executable("source/main.py", base=base)] | ||
|
||
# setup( | ||
# name="smwc-browser", | ||
# version="1.0", | ||
# description="A browser for SMW Central", | ||
# executables=[Executable(script) for script in all_scripts], | ||
# options={ | ||
# "build_exe": { | ||
# "packages": required_modules, | ||
# } | ||
# }, | ||
# ) |