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
- Host: GitHub
- URL: https://github.com/srid/fablib
- Owner: srid
- License: other
- Created: 2010-10-06T03:13:21.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2014-06-26T03:43:26.000Z (almost 12 years ago)
- Last Synced: 2025-01-31T12:04:59.105Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 172 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
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