Permalink
Browse files

bullet proofing cut_a_release task to ease sharing with other projects

  • Loading branch information...
1 parent 1a071c8 commit c9009000dd0e4cfd9d02f829beb4e5466918054b @trentm committed Jul 8, 2011
Showing with 24 additions and 1 deletion.
  1. +10 −1 Makefile.py
  2. +14 −0 eol.komodoproject
View
@@ -45,6 +45,9 @@ class cut_a_release(Task):
r'(?P<body>.*?)(?=^##|\Z)' % proj_name, re.M | re.S)
def make(self):
+ import codecs
+ from mklib import sh, mk
+
DRY_RUN = False
version = self._get_version()
@@ -95,7 +98,8 @@ def make(self):
% (changes_path, version), self.log.debug)
# Tag version and push.
- curr_tags = set(t for t in _capture_stdout(["git", "tag", "-l"]).split('\n') if t)
+ curr_tags = set(t for t in
+ self._capture_stdout(["git", "tag", "-l"]).split('\n') if t)
if not DRY_RUN and version not in curr_tags:
self.log.info("tag the release")
sh.run('git tag -a "%s" -m "version %s"' % (version, version),
@@ -142,6 +146,11 @@ def make(self):
changes_path, ver_path))
sh.run('git push')
+ def _capture_stdout(self, argv):
+ import subprocess
+ p = subprocess.Popen(argv, stdout=subprocess.PIPE)
+ return p.communicate()[0]
+
def _tuple_from_version(self, version):
def _intify(s):
try:
View
@@ -2,10 +2,24 @@
<!-- Komodo Project File - DO NOT EDIT -->
<project id="c4db773b-590a-5b43-9e07-2a6479747154" kpf_version="5" name="eol.komodoproject">
<preference-set idref="c4db773b-590a-5b43-9e07-2a6479747154">
+ <string id="currentInvocationLanguage">PHP</string>
+ <string relative="path" id="import_dirname"></string>
<string id="import_exclude_matches">.git;*.*~;*.bak;*.tmp;CVS;.#*;*.pyo;*.pyc;.svn;*%*;tmp*.html;.DS_Store;build;tmp</string>
<string id="import_include_matches"></string>
<boolean id="import_live">1</boolean>
<boolean id="import_recursive">1</boolean>
<string id="import_type">useFolders</string>
+ <string id="javascriptExtraPaths"></string>
+ <string id="language">PHP</string>
+ <string id="lastInvocation"></string>
+ <string id="lastTestPlanName_pref">New test plan #1</string>
+ <string id="mappedPaths"></string>
+<preference-set id="testPlans">
+<preference-set id="New test plan #1">
+ <string id="command_line"></string>
+ <string relative="url" id="directory"></string>
+ <string id="language">Perl - TAP (*.t)</string>
+</preference-set>
+</preference-set>
</preference-set>
</project>

0 comments on commit c900900

Please sign in to comment.