push.py 236 B

123456789
  1. import subprocess
  2. dch = open("debian/changelog").read().split("\n")
  3. ver = dch[0].split(") UNRELEASED")[0].split(" (")[1]
  4. print(ver)
  5. tag = "upstream/"+ver;
  6. subprocess.call(["git","tag",tag])
  7. subprocess.call(["git","push","origin",tag])