def commit(version): changelog.main(version) print "Adding and committing files..." addAndCommitReleaseFiles(version) print "Publishing new commit to master..." subprocess.call(('git push origin master').split(), stderr=subprocess.STDOUT, stdout=subprocess.PIPE) print "Publishing new tag..." subprocess.call(('git tag %s' % version).split()) subprocess.call(('git push origin %s' % version).split(), stderr=subprocess.STDOUT, stdout=subprocess.PIPE) print "Release %s created!" % version
def commit(version): changelog.main(version) print "Adding and committing files..." addAndCommitReleaseFiles(version) print "Publishing new commit to master..." subprocess.call(('git push origin master').split(), stderr=subprocess.STDOUT, stdout=subprocess.PIPE) print "Publishing to NPM registry..." subprocess.call(('npm version %s' % version).split()) subprocess.call(('npm publish').split()) print "Push git repository..." subprocess.call(('git push origin %s' % version).split(), stderr=subprocess.STDOUT, stdout=subprocess.PIPE) print "Release %s created!" % version
def changelog_text(): """Creates changelog history text.""" text = 'Changelog:' fmt = '\n{:5} - {}' for version, description in changelog.main(): text += fmt.format(version, description) return text
def details_text(): """Creates the details text, pulling in the altest version.""" text = "SSIS Deployment Checker\n©2016, Paul Lucas\nVersion {}" version = changelog.main()[-1] return text.format(version[0])