diff options
author | Erik Rose <grinch@grinchcentral.com> | 2012-06-25 20:29:58 -0700 |
---|---|---|
committer | Erik Rose <grinch@grinchcentral.com> | 2012-06-25 20:29:58 -0700 |
commit | 4004518ff185ee63dc23267c267d799f0b325a06 (patch) | |
tree | a353c2a52132bb787bcdf284a463ddc04b5333e8 /fabfile.py | |
parent | 8cc18ac132ebb186a073a3a736ddeed938261aab (diff) | |
download | blessings-4004518ff185ee63dc23267c267d799f0b325a06.tar.gz |
Clean up fabfile. Remove test command; there are already 2 ways to run tests. Import deeper.
Diffstat (limited to 'fabfile.py')
-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. |