Skip to content

Commit

Permalink
build: fix builder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daxartio committed Nov 19, 2023
1 parent 0f25f75 commit 12ea8fb
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 9 deletions.
6 changes: 4 additions & 2 deletions builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@
config.base_dir("configs"),
config.STYLE_DIR,
]
includes = ["atexit", "codecs"]
excludes = ["Tkinter"]
includes = ["atexit", "codecs", "playsound", "pyImpinj"]
excludes = ["Tkinter", "unittest", "test", "pydoc"]

options = {
"build_exe": {
"includes": includes,
"excludes": excludes,
"packages": ["idna", "requests", "encodings", "asyncio", "pywinusb"],
"include_files": include_files,
"zip_include_packages": ["PySide2"],
"optimize": 2,
}
}

Expand Down
156 changes: 151 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Danil Akhtarov <[email protected]>"]
python = "~3.8.1"
pywin32 = {version="^228", optional = true}
pyImpinj = {version="^1.2", optional = true}
playsound = {version="^1", optional = true}
playsound = {version="=1.2.2", optional = true}
boltons = "^20"
chardet = "^5.2.0"
docxtpl = "^0"
Expand Down Expand Up @@ -60,9 +60,10 @@ types-python-dateutil = "^2.8.19.14"
types-requests = "^2.31.0.2"
types-six = "^1.16.21.9"
unify = "*"
commitizen = "^3.12.0"

[tool.poetry.extras]
win = ["pywin32"]
win = ["pywin32", "pyImpinj", "playsound"]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 12ea8fb

Please sign in to comment.