Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Julia

You're reading from  Mastering Julia

Product type Book
Published in Jul 2015
Publisher
ISBN-13 9781783553310
Pages 410 pages
Edition 1st Edition
Languages

Developing a package


In this section, I'm going to look at some aspects of package development.

These comprise the various approaches you may adopt to write a package, the procedures to adopt when you want to upload and maintain it via Git as part of a registered Julia module.

I'll conclude by looking at how this strategy might be applied to the case of handling NetPBM images and sketch out the embryonic package, the full source is available in the code downloads accompanying this book.

Anatomy

A minimal package, to be saved to GitHub, should consist of a README.md markdown file and the src and test folders. The src folder contains all the code and the test folder has one or more test scripts that can be used to check the functionality of the package.

In Julia, the package name is normally chosen in the form of MyMod.jl (for example) and there should be a file in the src folder also called MyMod.jl. This is the main module and may reference other modules (that is, use these modules) or include...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}