Share with the world (advanced)¶
Advanced and optional
Everything on this page is optional. To share within your lab, the
zip from wavu package is all you need. Come back
here when strangers on the internet should be able to find and install
your tool.
The idea in plain words¶
Sharing with your lab is handing a recipe box to a neighbour. Sharing with the world is putting it on a shop shelf: it needs a permanent address, a version number on the box, and ideally a robot that packs a fresh box every time you change the recipe, so you never pack one by hand and forget a part.
That robot is CI ("continuous integration"): a free GitHub service that
runs steps for you on GitHub's computers. The template already contains the
instructions for it, in .github/workflows/release.yml.
flowchart LR
T["You: push a version tag<br/>v1.0.0"]:::script
C["GitHub robot (CI):<br/>test → package"]:::worker
G["GitHub Release<br/>my-tool-fiji.zip"]:::env
Y["PyPI<br/>(optional)"]:::env
U["Your Fiji update site<br/>(optional)"]:::fiji
T --> C --> G
C -.-> Y
C -.-> U
classDef fiji fill:#e3f2fd,stroke:#1565c0,color:#0d47a1
classDef worker fill:#e8f5e9,stroke:#2e7d32,color:#1b5e20
classDef script fill:#fff3e0,stroke:#ef6c00,color:#e65100
classDef env fill:#f3e5f5,stroke:#6a1b9a,color:#4a148c
The three shelves¶
1. A GitHub Release (start here)¶
Put your script folder on GitHub as its own repository. The easiest start is
Use this template on GitHub,
which makes the online copy for you. Then, each time you push a tag
such as v1.0.0 (a version label on your code), the robot:
- runs your tests;
- runs
wavu package; - publishes a GitHub Release page with
my-tool-fiji.zipattached.
Anyone can download the zip from that page and install it exactly as your lab
does. The tool's name and menu entry are set by SCRIPT_NAME and MENU at
the top of release.yml.
2. PyPI (only if your algorithm is useful outside Fiji)¶
PyPI is where pip install finds packages. Publishing there lets people use
your algorithm in notebooks and other Python tools too. It needs a small change in how
the code is organised and a PyPI account, but no passwords stored on GitHub.
3. Your own Fiji update site (one-tick install)¶
An ImageJ update site lets Fiji users install your tool by ticking a box in Help › Update… › Manage update sites, and they get updates automatically. It needs an ImageJ wiki account and an upload password stored in GitHub.
Not yet verified
Uploading Wavu scripts to an update site has not been fully tested yet. Check the first upload in a clean Fiji before you announce it.
Where the step-by-step instructions are¶
The full developer guide walks through every click and setting:
- 8a. GitHub: the source and the release zip
- 8b. PyPI: share the algorithm itself
- 8c. ImageJ update site: one-tick install for every Fiji user
Before a public release, also pick a licence, add a citation file, and point users to the image.sc forum for questions (see section 9 of the full guide).
In one sentence¶
Publishing to GitHub, PyPI or a Fiji update site is optional and mostly automated by the template's release robot; for your own lab, the zip is enough.