From 4004518ff185ee63dc23267c267d799f0b325a06 Mon Sep 17 00:00:00 2001 From: Erik Rose Date: Mon, 25 Jun 2012 20:29:58 -0700 Subject: Clean up fabfile. Remove test command; there are already 2 ways to run tests. Import deeper. --- fabfile.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/fabfile.py b/fabfile.py index ebeeb6f..af98c0d 100644 --- a/fabfile.py +++ b/fabfile.py @@ -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. -- cgit v1.2.1