Publish a tested Julia package

8 steps · about 4 h · Intermediate

  1. Create an isolated project environment (guide, Julia package manager documentation, 30 min)

    Give the package an explicit dependency set and reproducible starting point.

  2. Generate the package structure (guide, Julia package manager documentation, 35 min)

    Create conventional source, project and test files before moving code.

  3. Design the public module boundary (guide, Julia documentation, 35 min)

    Export a small stable interface while keeping implementation details private.

  4. Understand loading and environments (guide, Julia documentation, 30 min)

    Know how Julia resolves the package and its dependencies for users and tests.

  5. Choose clear public names (guide, Julia documentation, 20 min)

    Apply Julia's naming conventions to make the API readable and unsurprising.

  6. Document exported behavior (guide, Julia documentation, 30 min)

    Add discoverable docstrings with examples at the public boundary.

  7. Declare dependency compatibility (reference, Julia package manager documentation, 25 min)

    Prevent installation with dependency versions the package has not promised to support.

  8. Run package tests through Pkg (reference, Julia package manager documentation, 35 min)

    Finish by testing in the package manager's isolated test environment.