Publish a tested Julia package
8 steps · about 4 h · Intermediate
- Create an isolated project environment (guide, Julia package manager documentation, 30 min)
Give the package an explicit dependency set and reproducible starting point.
- Generate the package structure (guide, Julia package manager documentation, 35 min)
Create conventional source, project and test files before moving code.
- Design the public module boundary (guide, Julia documentation, 35 min)
Export a small stable interface while keeping implementation details private.
- Understand loading and environments (guide, Julia documentation, 30 min)
Know how Julia resolves the package and its dependencies for users and tests.
- Choose clear public names (guide, Julia documentation, 20 min)
Apply Julia's naming conventions to make the API readable and unsurprising.
- Document exported behavior (guide, Julia documentation, 30 min)
Add discoverable docstrings with examples at the public boundary.
- Declare dependency compatibility (reference, Julia package manager documentation, 25 min)
Prevent installation with dependency versions the package has not promised to support.
- Run package tests through Pkg (reference, Julia package manager documentation, 35 min)
Finish by testing in the package manager's isolated test environment.