Skip to content

srid/fablib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Fabric (fabfile.py) helper library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages