An open API service indexing awesome lists of open source software.

https://github.com/srid/fablib

Fabric (fabfile.py) helper library
https://github.com/srid/fablib

Last synced: 8 months ago
JSON representation

Fabric (fabfile.py) helper library

Awesome Lists containing this project

README

          

fablib
======

fablib is a helper library for `Fabric
`_ to setup a
sandboxed Python environment (virtualenv) for your project without the overhead
of having to use Buildout.

Features
--------

* Create virtualenv and install packages (including dependencies)
* Automatically include `PyWin32
`_ from
global site-packages
* Use `PyPM `_ (instead of pip) if available
-- saves a lot of time. Requires `ActivePython
`_.
* Supports Python 3.

Usage
-----

1. Setup::

$ cd /to/my/project
$ git submodule add git://github.com/srid/fablib.git fablib
$ cat > fabfile.py
import sys
import os.path as P
from fabric.api import *
# Import github.com/srid/fablib
sys.path.append(P.abspath(
P.join(P.dirname(__file__), 'fablib')))
import venv

clean = venv.clean
init = venv.init

2. Install `Fabric`_, `virtualenv
`_ and use::

$ fab -l
$ fab clean
$ fab init # `fab init:pyver=3.1` for Py3k!

3. No more buildout! ::

$ bin/python

See the `applib`__ project for a real-world example.

.. __: http://github.com/ActiveState/applib/blob/master/fabfile.py#L1