RoguePkg.jl

Test, benchmark, and Pkg.dir for local packages outside ~/.julia
Author tpapp
Popularity
5 Stars
Updated Last
2 Years Ago
Started In
September 2017

RoguePkg

Lifecycle Build Status Coverage Status codecov.io

This package was made obsolete by the new Pkg framework of Julia v0.7, which simplifies development for local packages. It is retired, and unlikely to receive any updates.

Description

This package defines some methods for functions in Base.Pkg that should make testing, benchmarking, and locating files in packages outside the default directory (which is returned by Pkg.dir(), eg ~/.julia/v0.6) easier.

Usage

First, load the module:

using RoguePkg

Then you can refer to packages by the module they contain:

pkg_for"MyFancyModule"

A path:

pkg_at"~/this_is/where_I/keep/FancyPkg"

Or, if you set ENV[JULIA_LOCAL_PACKAGES], by their subdirectory:

pkg_local"FancyPkg"

Then you can use the resulting objects with some functions, including Pkg.test, Pkg.dir. The methods for the latter even make PkgBenchmark.benchmarkpkg work. For example,

Pkg.test(pkg_for"FancyModule")