Giter Site home page Giter Site logo

makr's Introduction

makr

tools for recursive make in projects organized by principled data processing.

Install from this directory with python setup.py install.

Run the tests from this directory with python setup.py test.

Then use the tool by cd'ing into your favorite principled data processing task, and saying $ makr. That will run make (whether or not the Makefile is in the task or src/ directory). If you give the command as makr -r, it will extract the dependencies from the Makefile, sort them topologically, and make the tasks in order to update the current task.

makr's People

Contributors

vm-wylbur avatar

Stargazers

Jessica Hoehner avatar Maria Gargiulo avatar Phil Neff avatar

Watchers

Rafe Kaplan avatar James Cloos avatar  avatar Megan avatar Tarak Shah avatar Scott Weikart avatar Maria Gargiulo avatar  avatar

makr's Issues

better tests for symlinked dependencies

sometimes make refuses to report the database if a symlinked dependency is missing. This can happen if the upstream task has make clean. The bug is inconsistent and I don't know exactly why it's happening.

get task from dependency

For each dependency:

  • is this dependency a file in the current task?
  • a symlink to another task?
  • a relative path to another task?

Follow and return the task name.

create ProjPath class

subclass pathlib.Path. Move get_task_path and get_git_root to class. Make taskpath an attribute, is_a_task a method.

`test_remake_1change` fails bc `makr` does not recurse

Not sure why, fails for @philneff.

>       assert all([pre_times[p] < post_times[p] for p in OUTPUTS])
E       assert False
E        +  where False = all([False, False, False, False, False, False, ...])

Recursion also failing for real project. But the various get_deps tests pass. Hmm.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.