zipasta/setup.py

52 lines
1.6 KiB
Python

"""
Copyright © 2022 Clóvis Fabrício Costa - All Rights Reserved
This file is part of zipasta.
zipasta is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
version.
zipasta is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with zipasta. If not,
see https://www.gnu.org/licenses/
"""
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
# "packages": ["os"] is used as example only
# build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]}
build_exe_options = {
"packages": [],
"excludes": [
# "tkinter",
"distutils",
"multiprocessing",
"asyncio",
"unittest",
],
# "include_files": []
}
# base="Win32GUI" should be used only for Windows GUI app
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name="Zipasta",
version="0.1",
description="Converte arquivos em pastas, e depois de volta em arquivos",
packages=[],
options={"build_exe": build_exe_options},
executables=[
Executable(script="zipasta.py", base=base,
shortcut_name="Zipasta",
target_name='zipasta'),
],
)