diff --git a/ephys_link.spec b/ephys_link.spec index dfd66f5..68e06b3 100644 --- a/ephys_link.spec +++ b/ephys_link.spec @@ -1,22 +1,27 @@ # -*- mode: python ; coding: utf-8 -*- -from ephys_link.__about__ import __version__ as version - from argparse import ArgumentParser +from PyInstaller.utils.hooks import collect_submodules + +from ephys_link.__about__ import __version__ as version + parser = ArgumentParser() parser.add_argument("-d", "--dir", action="store_true", help="Outputs a directory") options = parser.parse_args() FILE_NAME = f"EphysLink-v{version}" +# Collect binding modules. +bindings = [binding for binding in collect_submodules("ephys_link.bindings") if binding != "ephys_link.bindings"] + # noinspection PyUnresolvedReferences a = Analysis( ['src\\ephys_link\\__main__.py'], pathex=[], binaries=[('src\\ephys_link\\resources', 'ephys_link\\resources')], datas=[], - hiddenimports=['engineio.async_drivers.aiohttp'], + hiddenimports=['engineio.async_drivers.aiohttp'] + bindings, hookspath=[], hooksconfig={}, runtime_hooks=[], diff --git a/pyproject.toml b/pyproject.toml index 69845ff..f157ff2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,7 @@ el = "ephys_link.__main__:main" path = "src/ephys_link/__about__.py" [tool.hatch.build.targets.sdist] -exclude = ["/.github", "/.idea"] +exclude = ["/.github", "/.idea", "/docs"] [tool.hatch.envs.default] python = "3.13.1" diff --git a/src/ephys_link/__about__.py b/src/ephys_link/__about__.py index f65875c..c56fa6d 100644 --- a/src/ephys_link/__about__.py +++ b/src/ephys_link/__about__.py @@ -1 +1 @@ -__version__ = "2.0.0b9" +__version__ = "2.0.0b10"