Skip to content

Commit

Permalink
Dynamic collection of bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 committed Jan 11, 2025
1 parent 08f6a4d commit 8b79ae0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions ephys_link.spec
Original file line number Diff line number Diff line change
@@ -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=[],
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/ephys_link/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.0b9"
__version__ = "2.0.0b10"

0 comments on commit 8b79ae0

Please sign in to comment.