atelier.invlib.tasks

This is the module that defines the invoke namespace.

It is imported by atelier.invlib.setup_from_tasks() which passes it to invoke.Collection.from_module().

Functions

add_slash(url)

checkurl(url, name)

cleanup_pyc(p[, batch])

Thanks to oddthinking on https://stackoverflow.com/questions/2528283

extract_messages(ctx)

Extract messages from source files to django.pot file

get_blog_entry(ctx, today[, now])

Return an RstFile object representing the blog entry for that date in the current project.

get_current_date([today])

get_locale_dir(ctx)

git_projects()

init_catalog_code(ctx)

Create code .po files if necessary.

local(*args, **kwargs)

Call invoke.run() with pty=True.

py_clean(ctx[, batch])

Delete .pyc files, .eggs and __cache__ directories under the project's root direcotory.

rmtree_after_confirm(p[, batch])

run_in_demo_projects(ctx, py_cmd[, cov, ...])

Run the given Python command line py_cmd in each demo project.

set_times(pth)

Set the timestamps of the specified file to now.

show_pypi_status(ctx[, severe])

Show project status on PyPI before doing a release.

show_revision_status(ctx)

sphinx_clean(ctx[, batch])

Delete all generated Sphinx files.

update_catalog_code(ctx)

Update .po files from .pot file.

Classes

RstFile(local_root, url_root, parts)

Exceptions

MissingConfig(name)

atelier.invlib.tasks.local(*args, **kwargs)

Call invoke.run() with pty=True.

This is useful e.g. to get colors in a terminal.

atelier.invlib.tasks.set_times(pth)

Set the timestamps of the specified file to now.

Same effect as running touch in a shell.

atelier.invlib.tasks.cleanup_pyc(p, batch=False)

Thanks to oddthinking on https://stackoverflow.com/questions/2528283

atelier.invlib.tasks.sphinx_clean(ctx, batch=False)

Delete all generated Sphinx files.

atelier.invlib.tasks.py_clean(ctx, batch=False)

Delete .pyc files, .eggs and __cache__ directories under the project’s root direcotory.

atelier.invlib.tasks.show_pypi_status(ctx, severe=True)

Show project status on PyPI before doing a release.

atelier.invlib.tasks.get_blog_entry(ctx, today, now=None)

Return an RstFile object representing the blog entry for that date in the current project.

atelier.invlib.tasks.extract_messages(ctx)

Extract messages from source files to django.pot file

atelier.invlib.tasks.init_catalog_code(ctx)

Create code .po files if necessary.

atelier.invlib.tasks.update_catalog_code(ctx)

Update .po files from .pot file.

atelier.invlib.tasks.run_in_demo_projects(ctx, py_cmd, cov=False, bare=False, after=None, start=None)

Run the given Python command line py_cmd in each demo project.

When bare is True, return a string concatenated from the bare output in each demo project.

See also demo_projects.