Permalink
Browse files

Clean up fabfile. Remove test command; there are already 2 ways to ru…

…n tests. Import deeper.
  • Loading branch information...
1 parent 8cc18ac commit 4004518ff185ee63dc23267c267d799f0b325a06 @erikrose committed Jun 26, 2012
Showing with 7 additions and 12 deletions.
  1. +7 −12 fabfile.py
View
@@ -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.

0 comments on commit 4004518

Please sign in to comment.