Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Build the package
run: |
python -m pip install --upgrade pip build
python -m build

- uses: softprops/action-gh-release@v2
with:
files: dist/*
fail_on_unmatched_files: true
generate_release_notes: false
body: |
The local HTTP server FLIMKit image analysis clients talk to.

```
pip install flimkit-bridge
```

That pulls FLIMKit with it. The server then starts with FLIMKit, and `flimkit-bridge` is on the path as well for the server without the FLIMKit window.

The QuPath extension and the Fiji add-on are both clients of this server. Install the jar for whichever you use.

The wheel and sdist are attached below for anyone installing offline, or into `~/.flimkit/plugins/`.
9 changes: 7 additions & 2 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ def test_api_version_matches():


def test_tool_is_registered():
found = plugins.get_tool('qupath_bridge_open')
found = plugins.get_tool('flimkit_bridge_open')
assert found is not None
assert found.menu_path == ('Tools',)
assert callable(found.callback)


def test_entry_point_is_declared():
names = [e.name for e in entry_points(group='flimkit.plugins')]
assert 'qupath_bridge' in names
assert 'flimkit_bridge' in names


def test_the_tool_is_not_named_after_one_client():
assert plugins.get_tool('qupath_bridge_open') is None
assert plugins.get_tool('fiji_bridge_open') is None
Loading