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().

(This module’s source code is available here.)

Functions

cleanup_pyc(p[, batch])

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

extract_messages(ctx)

Extract messages from source files to django.pot file

get_blog_entry(ctx, today)

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, bare])

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

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.get_current_date(today=None)
atelier.invlib.tasks.cleanup_pyc(p, batch=False)

Thanks to oddthinking on http://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)

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)

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

See also ctx.demo_projects.