This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A simple shell utility to monitor file system events on Mac OS X 10.7+ (Lion or newer).

Shell Utilities

Watch Lion comes with a utility script called watchlion. Please type watchlion --help at the shell prompt to know more about this tool.

watchlion can read .watchlion.yml files and execute command within them in response to file system events. The .watchlion.yml file will be monitored and loading when it has been updated.

An example .watchlion.yml file:

build:
  coffee: make js
  haml:   make html
  py:     make test
  sass:   make css
loglevel: info

An example Makefile file:

.SUFFIXES: .coffee .js
.coffee.js:
      coffee -b -c $<
.SUFFIXES: .js .min.js
.js.min.js:
      uglifyjs -nc -o $@ $<
COFFEE = $(wildcard *.coffee)
JS = $(COFFEE:.coffee=.js)
MINJS = $(JS:.js=.min.js)

.SUFFIXES: .haml .html
.haml.html:
      haml -f html5 -t ugly $< $@
HAML = $(wildcard *.haml)
HTML = $(HAML:.haml=.html)

.SUFFIXES: .sass .css
.sass.css:
      compass compile $< -c config.rb
.SUFFIXES: .sass .min.css
.sass.min.css:
      compass compile --environment production $< -c config.rb
      mv $*.css $@
SASS = $(wildcard *.sass)
CSS = $(SASS:.sass=.css)
MINCSS = $(SASS:.sass=.min.css)

css: $(MINCSS) $(CSS)
html: $(HTML)
js: $(JS) $(MINJS)
test:
      py.test

Then run watchlion command:

$ watchlion
INFO:root:load_config: loading .watchlion.yml
...

Will start building js files when you update a coffee file:

...
INFO:root:make js
coffee -b -c main.coffee
uglifyjs -nc -o main.min.js main.js
...

You can use control-C to stop watchlion .

Installation

Installing from PyPI using pip:

pip install watchlion

Installing from PyPI using easy_install:

easy_install watchlion

Installing from source:

python setup.py install

Installation Caveats

The watchlion script depends on PyYAML which links with LibYAML, which brings a performance boost to the PyYAML parser. However, installing LibYAML is optional but recommended. On Mac OS X, you can use homebrew to install LibYAML:

brew install libyaml

Supported Platforms

Dependencies

  1. Python 2.6 or above.
  2. XCode
  3. PyYAML

Licensing

Watch Lion is licensed under the terms of the MIT.

Copyright 2012 ENDOH takanao.

Project source code is available at Github. Please report bugs and file enhancement requests at the issue tracker.

Release History

Release History

0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
watchlion-0.3.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source Mar 4, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting