lp:~toelke+lp/doit/callable-dependencies

Created by Philipp Tölke and last modified
Get this branch:
bzr branch lp:~toelke+lp/doit/callable-dependencies
Only Philipp Tölke can upload to this branch. If you are Philipp Tölke please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Philipp Tölke
Project:
doit
Status:
Development

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 subprocess

  process = 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',),
          'dependencies': [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.

142. By Philipp Tölke <email address hidden>

took the last kinks out of it

141. By Philipp Tölke <email address hidden>

Fixed bugs with the new callable dependencies

140. By Philipp Tölke

Implemented the callable dependencies

139. By Philipp Tölke

Changed the "API" of the dependency-callables

138. By

created the tests for callable dependencies

137. By schettino72

remove files created on tests.
use os.path.join

136. By schettino72

deprecate folder-depenency

135. By schettino72

introduce tools library - with create folder (#421453)

134. By schettino72

fix - dodo.pyc displays unfriendly error message (#425553)

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.

Subscribers