Publishing a package

All package management in Julia is done via GitHub. Here are the steps for publishing your own package:

  1. Fork the package METADATA.jl on GitHub, get the address of your fork, and execute the following:
    $ git clone git@github.com:your-user-name/METADATA.jl.git
    $ cd METADATA.jl
    
  2. Make a new branch with the following commands:
    $ git branch mypack
    $ git checkout mypack
    
  3. Add the stuff for your package in a folder, say MyPack. Your code should go in a /src folder, which should also contain mypack.jl, that will be run when the command using MyPack is issued. The tests should go in the /tests folder. You should have a runtests.jl file in the folder that runs the tests for your package.

    A text file named REQUIRE is where any dependencies ...

Get Julia: High Performance Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.