Book Image

Getting Started with Julia

By : Ivo Balbaert
Book Image

Getting Started with Julia

By: Ivo Balbaert

Overview of this book

Table of Contents (19 chapters)
Getting Started with Julia
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
The Rationale for Julia
Index

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 [email protected]: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 on other Julia packages go; it is also where you specify compatible versions of Julia.

    For example, it can contain the following:

    julia 0.3-
    BinDeps
    @windows WinRPM

    This certifies that this package is compatible with Julia v0.3 or higher; it needs the...