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
|
|
|
|
|
Thanks to oddthinking on https://stackoverflow.com/questions/2528283 |
|
Extract messages from source files to django.pot file |
|
Return an RstFile object representing the blog entry for that date in the current project. |
|
|
|
|
|
|
|
Create code .po files if necessary. |
|
Call |
|
Delete |
|
|
|
Run the given Python command line py_cmd in each demo project. |
|
Set the timestamps of the specified file to now. |
|
Show project status on PyPI before doing a release. |
|
|
|
Delete all generated Sphinx files. |
|
Update .po files from .pot file. |
Classes
|
Exceptions
|
- 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
.