Commits

Lynn Rees  committed e7517ed

- pip it

  • Participants
  • Parent commits c39730b

Comments (0)

Files changed (7)

File MANIFEST

-LICENSE.txt
-MANIFEST.in
-README.rst
-requirements.txt
-setup.cfg
-setup.py
-knife/__init__.py
-knife/_active.py
-knife/_base.py
-knife/_compat.py
-knife/_kbase.py
-knife/_kmixins.py
-knife/_lazy.py
-knife/_mixins.py
-knife/active.py
-knife/base.py
-knife/lazy.py
-knife/mixins.py
-knife/tests/__init__.py
-knife/tests/mixins.py
-knife/tests/test_active.py
-knife/tests/test_lazy.py

File docs_requirements.txt

-sphinx
-sphinxcontrib.spelling
-lxml>=1.1.1
-stuf>=0.8.14

File fabfile.py

-'''webstring fabfile'''
-
-from fabric.api import prompt, local, settings, env, lcd
-
-
-def _test(val):
-    truth = val in ['py26', 'py27', 'py32']
-    if truth is False:
-        raise KeyError(val)
-    return val
-
-
-def tox():
-    '''test webstring'''
-    local('tox')
-
-
-def docs():
-    with lcd('./docs/'):
-        local('make clean')
-        local('make html')
-        local('make linkcheck')
-        local('make doctest')
-
-
-def update_docs():
-    docs()
-    with settings(warn_only=True):
-        local('hg ci -m docmerge; hg push')
-    local('./setup.py upload_sphinx')
-
-
-def tox_recreate():
-    '''recreate webstring test env'''
-    prompt(
-        'Enter testenv: [py26, py27, py31, py32]',
-        'testenv',
-        validate=_test,
-    )
-    local('tox --recreate -e %(testenv)s' % env)
-
-
-def release():
-    '''release webstring'''
-    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/webstring')
-        local('hg push git+ssh://git@github.com:kwarterthieves/webstring.git')
-    local('./setup.py register sdist --format=bztar,gztar,zip upload')
-    local('./setup.py upload_sphinx')
-    local('rm -rf dist')
-
-
-def inplace():
-    '''inplace webstring'''
-    with lcd('./docs/'):
-        local('make clean')
-        local('make html')
-        local('make linkcheck')
-        local('make doctest')
-    with settings(warn_only=True):
-        local('hg push ssh://hg@bitbucket.org/lcrees/webstring')
-        local('hg push git+ssh://git@github.com:kwarterthieves/webstring.git')
-    local('./setup.py sdist --format=bztar,gztar,zip upload')
-    local('./setup.py upload_sphinx')
-    local('rm -rf dist')
-
-
-def release_next():
-    '''release webstring from next branch'''
-    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 next')
-    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/webstring')
-        local('hg push git+ssh://git@github.com:kwarterthieves/webstring.git')
-    local('./setup.py register sdist --format=bztar,gztar,zip upload')
-    local('rm -rf dist')

File pips/docs_requirements.txt

+sphinx
+sphinxcontrib.spelling
+lxml>=1.1.1
+stuf>=0.8.14

File pips/fabfile.py

+# -*- coding: utf-8 -*-
+'''webstring fabfile'''
+
+from fabric.api import prompt, local, settings, env, lcd
+
+regup = '../setup.py register sdist --format=bztar,gztar,zip upload'
+nodist = 'rm -rf ../dist'
+sphinxup = '../setup.py upload_sphinx'
+
+
+def _promptup():
+    prompt('Enter tag: ', 'tag')
+    with settings(warn_only=True):
+        local('hg tag "%(tag)s"' % env)
+        local('hg push ssh://hg@bitbucket.org/lcrees/webstring')
+        local('hg push github')
+
+
+def _test(val):
+    truth = val in ['py26', 'py27', 'py31', 'py32', 'pypy']
+    if truth is False:
+        raise KeyError(val)
+    return val
+
+
+def docs():
+    with lcd('../docs/'):
+        local('make clean')
+        local('make html')
+        local('make linkcheck')
+        local('make doctest')
+
+
+def tox():
+    '''
+    test webstring
+    '''
+    with lcd('../'):
+        local('tox')
+
+
+def update_docs():
+    '''
+    update webstring docs
+    '''
+    docs()
+    with settings(warn_only=True):
+        local('hg ci -m docmerge')
+        local('hg push ssh://hg@bitbucket.org/lcrees/webstring')
+        local('hg push github')
+    local(sphinxup)
+
+
+def tox_recreate():
+    '''
+    recreate webstring test env
+    '''
+    with lcd('../'):
+        prompt(
+            'Enter testenv: [py26, py27, py31, py32, pypy]',
+            'testenv',
+            validate=_test,
+        )
+        local('tox --recreate -e %(testenv)s' % env)
+
+
+def release():
+    '''
+    release webstring
+    '''
+    docs()
+    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')
+    _promptup()
+    local(regup)
+    local(sphinxup)
+    local(nodist)
+
+
+def releaser():
+    '''
+    webstring releaser
+    '''
+    docs()
+    _promptup()
+    local(regup)
+    local(sphinxup)
+    local(nodist)
+
+
+def inplace():
+    '''
+    in-place webstring
+    '''
+    docs()
+    with settings(warn_only=True):
+        local('hg push ssh://hg@bitbucket.org/lcrees/webstring')
+        local('hg push github')
+    local('../setup.py sdist --format=bztar,gztar,zip upload')
+    local(sphinxup)
+    local(nodist)
+
+
+def release_next():
+    '''
+    release webstring from next branch
+    '''
+    docs()
+    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 next')
+    local('hg merge default; hg ci -m automerge')
+    _promptup()
+    local(regup)
+    local(sphinxup)
+    local(nodist)

File pips/requirements.txt

+stuf>=0.8.14
+lxml>=1.1.1

File requirements.txt

-stuf>=0.8.14
-lxml>=1.1.1