lp:~toelke+lp/doit/callable-dependencies
- Get this branch:
- bzr branch lp:~toelke+lp/doit/callable-dependencies
Branch merges
Branch information
Recent revisions
- 143. By Philipp Tölke <email address hidden>
-
This marks the final version of the feature.
Callable dependencies now can support caching, by saving their output to the member "content".
Example:
def svn_up_to_date():
svn_up_to_date. name = "svn_up_to_date"
import subprocessprocess = subprocess.
Popen(" cd svn; svn up; svn info", stdout= subprocess. PIPE, stderr= subprocess. PIPE, shell=True) out, err = process.
communicate( ) svn_up_
to_date. content = out + err return svn_up_
to_date. content def task_dist_src():
return {'actions': ['svn export https://.../branches/ dist project',
'rm -frv project/ {.cvsignore, dist,dist. osx} || true',
'tar cvjf project.tar.bz2 project',
'rm -rf project'],
'targets' : ('project. tar.bz2' ,),
'dependencie s': [svn_up_to_date, ":co_svn"]} The task_dist_src will only be executed, if the output of "svn info" after a "svn up" changes.
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 (needs bzr 0.92)