from source package), leave it alone.
"""
- """def git_timestamp_tag(self):
+ def git_timestamp_tag(self):
gitinfo = subprocess.check_output(
['git', 'log', '--first-parent', '--max-count=1',
'--format=format:%ct', choose_version_from()]).strip()
return time.strftime('.%Y%m%d%H%M%S', time.gmtime(int(gitinfo)))
- """
- def git_latest_tag(self):
+
+ """def git_latest_tag(self):
gitinfo = subprocess.check_output(
['git', 'describe', '--abbrev=0']).strip()
return (gitinfo)
if self.tag_build is None:
self.tag_build = self.git_latest_tag()
return egg_info.tags(self)
+ """
\ No newline at end of file
If a build tag has already been set (e.g., "egg_info -b", building
from source package), leave it alone.
"""
- """def git_timestamp_tag(self):
+ def git_timestamp_tag(self):
gitinfo = subprocess.check_output(
['git', 'log', '--first-parent', '--max-count=1',
'--format=format:%ct', '.']).strip()
if self.tag_build is None:
self.tag_build = self.git_timestamp_tag()
return egg_info.tags(self)
- """
+
- def git_latest_tag(self):
+ """def git_latest_tag(self):
gitinfo = subprocess.check_output(
['git', 'describe', '--abbrev=0']).strip()
return str(gitinfo)
if self.tag_build is None:
self.tag_build = self.git_latest_tag()
return egg_info.tags(self)
+ """
\ No newline at end of file