Skip to content

Commit

Permalink
Merge branch '1.15'
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Apr 30, 2015
2 parents cfeca48 + aaf95dd commit c7b4569
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
8 changes: 5 additions & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Older junk
tox>=1.4,<1.5
# For newer tasks like building Sphinx docs.
invoke>=0.7.0,<0.8
invocations>=0.5.0
invoke>=0.10
invocations>=0.9.2
sphinx>=1.1.3
alabaster>=0.6.1
releases>=0.5.2
wheel==0.23.0
semantic_version>=2.4,<2.5
wheel==0.24
twine==1.5
24 changes: 3 additions & 21 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,10 @@
from shutil import rmtree, copytree

from invoke import Collection, ctask as task
from invocations import docs as _docs
from invocations.docs import docs, www
from invocations.packaging import publish


d = 'sites'

# Usage doc/API site (published as docs.paramiko.org)
docs_path = join(d, 'docs')
docs_build = join(docs_path, '_build')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': docs_path,
'sphinx.target': docs_build,
})

# Main/about/changelog site ((www.)?paramiko.org)
www_path = join(d, 'www')
www = Collection.from_module(_docs, name='www', config={
'sphinx.source': www_path,
'sphinx.target': join(www_path, '_build'),
})


# Until we move to spec-based testing
@task
def test(ctx, coverage=False):
Expand All @@ -45,9 +27,9 @@ def release(ctx):
rmtree(target, ignore_errors=True)
copytree(docs_build, target)
# Publish
publish(ctx, wheel=True)
publish(ctx)
# Remind
print("\n\nDon't forget to update RTD's versions page for new minor releases!")


ns = Collection(test, release, docs=docs, www=www)
ns = Collection(test, coverage, release, docs, www)

0 comments on commit c7b4569

Please sign in to comment.