Commits

Lynn Rees committed 35a4805 Merge

automerge

Comments (0)

Files changed (6)

 .project
 .pydevproject
 .git/
-.settings/
+.settings/
+syntax: glob
+.tox/*
 31542e62f88ec1fc10c9a82b40f577e70d4796ba 0.4.1
 9a1330a663478da04691f10ca65161a761618edb 0.5.0
 bae8db34404d4dfd7c9f7d18c6cf0cbfe62a66c4 0.5.1
+ef81a1bb18f77aa1c367f2bf5ac3d74594d60f86 0.5.2
 from appspace.builders import patterns, class_patterns
 from appspace.spaces import Branch, Namespace, Patterns, include
 
-__version__ = (0, 5, 2)
+__version__ = (0, 5, 3)
+'''appspace fabfile'''
+
+from fabric.api import prompt, local, settings, env
+
+
+def _test(val):
+    truth = val in ['py26', 'py27', 'py32', 'pypy']
+    if truth is False:
+        raise KeyError(val)
+    return val
+
+
+def tox():
+    '''test appspace'''
+    local('tox')
+
+
+def tox_recreate():
+    '''recreate appspace test env'''
+    prompt(
+        'Enter testenv: [py26, py27, py32, pypy]',
+        'testenv',
+        validate=_test,
+    )
+    local('tox --recreate -e %(testenv)s' % env)
+
+
+def release():
+    '''release appspace'''
+    local('hg update pu')
+    local('hg update next')
+    local('hg merge pu; hg ci -m automerge')
+    local('hg update maint')
+    local('hg merge default; hg ci -m automerge')
+    local('hg update default')
+    local('hg merge next; hg ci -m automerge')
+    local('hg update pu')
+    local('hg merge default; hg ci -m automerge')
+    prompt('Enter tag', 'tag')
+    with settings(warn_only=True):
+        local('hg tag "%(tag)s"' % env)
+        local('hg push ssh://hg@bitbucket.org/lcrees/appspace')
+        local('hg push git+ssh://git@github.com:kwarterthieves/appspace.git')
+#    local('python setup.py register sdist --format=bztar,gztar,zip upload')
 # -*- coding: utf-8 -*-
-'''setup for appspace'''
+'''setup appspace'''
 
 import os
 import sys
 except ImportError:
     from distutils.core import setup
 
-install_requires = [
-    'zope.interface>=3.8.0', 'stuf>=0.8.7', 'distribute>=0.6.25',
-]
+install_requires = ['zope.interface>=3.8.0', 'stuf>=0.8.8']
 if sys.version_info[0] == 2 and sys.version_info[1] < 7:
-    install_requires.extend(['importlib', 'ordereddict', 'unittest2'])
+    install_requires.extend(['importlib'])
 
 setup(
     name='appspace',
-    version='0.5.2',
+    version='0.5.3',
     description='easy application construction with easy building blocks',
     long_description=open(os.path.join(os.getcwd(), 'README.rst'), 'r').read(),
     author='L. C. Rees',
         'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3.2',
         'Programming Language :: Python :: Implementation :: CPython',
+        'Programming Language :: Python :: Implementation :: PyPy',
         'Programming Language :: Python',
         'Topic :: Software Development :: Libraries',
         'Topic :: Software Development',
+[tox]
+envlist = py26,py27,py32,pypy
+
+[testenv]
+deps=
+  nose
+  coverage
+commands=
+  nosetests {posargs:--with-coverage}
+  
+[testenv:py26]
+deps=
+  unittest2
+  nose
+  coverage
+commands=
+  nosetests {posargs:--with-coverage}