Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am btubbs on github.
  • I am btubbs (https://keybase.io/btubbs) on keybase.
  • I have a public key ASCU43mYG7sqfx0RVxoJ8gjyz87lKgcisv37yaefD9AU2wo

To claim this, I am signing this object:

@btubbs
btubbs / Makefile
Created April 9, 2015 21:47
Makefile for Mettle, a soon-to-be-open-sourced system for executing and monitoring ETL jobs. It integrates the installation of dependencies from pip, npm, and bower, and handles compiling React's JSX code into JS. There are also helpers for the system's Postgres and RabbitMQ backends.
.PHONY: dbsetup clean_files clean_rabbit clean migrate dev js
# Both Python and Node programs will be put here.
BIN=$(shell dirname `which python`)
STATIC_DIR=mettle/static
JSX_DIR=$(STATIC_DIR)/jsx
# Our React components have dependencies on each other. This ordering is important.
JSX_MODULES=jobs targets runs pipelines services app
JSX_TARGETS=$(foreach module,$(JSX_MODULES),$(JSX_DIR)/$(module).js)
# -*- coding: utf-8 -*-
"""
webzeug.py
Adapted from Armin Ronacher's "webpylike".
See https://github.com/mitsuhiko/werkzeug/blob/master/examples/webpylike/webpylike.py
With this, an application can look like this:
from webzeug import App, Request, Response, View