diff options
-rw-r--r-- | fabfile.py | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -3,19 +3,19 @@ I can't remember any of this syntax on my own. """ -import functools -import os +from functools import partial +from os import environ +from os.path import abspath, dirname from fabric.api import local, cd -local = functools.partial(local, capture=False) +local = partial(local, capture=False) -NAME = os.path.basename(os.path.dirname(__file__)) -ROOT = os.path.abspath(os.path.dirname(__file__)) +ROOT = abspath(dirname(__file__)) -os.environ['PYTHONPATH'] = (((os.environ['PYTHONPATH'] + ':') if - os.environ.get('PYTHONPATH') else '') + ROOT) +environ['PYTHONPATH'] = (((environ['PYTHONPATH'] + ':') if + environ.get('PYTHONPATH') else '') + ROOT) def doc(kind='html'): @@ -28,11 +28,6 @@ def doc(kind='html'): local('make clean %s' % kind) -def test(): - # Just calling nosetests results in SUPPORTS_TRANSACTIONS KeyErrors. - local('nosetests') - - def updoc(): """Build Sphinx docs and upload them to packages.python.org. |