_version.py 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. # This file helps to compute a version number in source trees obtained from
  2. # git-archive tarball (such as those provided by githubs download-from-tag
  3. # feature). Distribution tarballs (built by setup.py sdist) and build
  4. # directories (produced by setup.py build) will contain a much shorter file
  5. # that just contains the computed version number.
  6. # This file is released into the public domain. Generated by
  7. # versioneer-0.20 (https://github.com/python-versioneer/python-versioneer)
  8. """Git implementation of _version.py."""
  9. import errno
  10. import os
  11. import re
  12. import subprocess
  13. import sys
  14. def get_keywords():
  15. """Get the keywords needed to look up the version information."""
  16. # these strings will be replaced by git during git-archive.
  17. # setup.py/versioneer.py will grep for the variable names, so they must
  18. # each be defined on a line of their own. _version.py will just call
  19. # get_keywords().
  20. git_refnames = "$Format:%d$"
  21. git_full = "$Format:%H$"
  22. git_date = "$Format:%ci$"
  23. keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}
  24. return keywords
  25. class VersioneerConfig: # pylint: disable=too-few-public-methods
  26. """Container for Versioneer configuration parameters."""
  27. def get_config():
  28. """Create, populate and return the VersioneerConfig() object."""
  29. # these strings are filled in when 'setup.py versioneer' creates
  30. # _version.py
  31. cfg = VersioneerConfig()
  32. cfg.VCS = "git"
  33. cfg.style = "pep440"
  34. cfg.tag_prefix = ""
  35. cfg.parentdir_prefix = ""
  36. cfg.versionfile_source = "dataladmetadatamodel/_version.py"
  37. cfg.verbose = False
  38. return cfg
  39. class NotThisMethod(Exception):
  40. """Exception raised if a method is not valid for the current scenario."""
  41. LONG_VERSION_PY = {}
  42. HANDLERS = {}
  43. def register_vcs_handler(vcs, method): # decorator
  44. """Create decorator to mark a method as the handler of a VCS."""
  45. def decorate(f):
  46. """Store f in HANDLERS[vcs][method]."""
  47. if vcs not in HANDLERS:
  48. HANDLERS[vcs] = {}
  49. HANDLERS[vcs][method] = f
  50. return f
  51. return decorate
  52. # pylint:disable=too-many-arguments,consider-using-with # noqa
  53. def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False,
  54. env=None):
  55. """Call the given command(s)."""
  56. assert isinstance(commands, list)
  57. process = None
  58. for command in commands:
  59. try:
  60. dispcmd = str([command] + args)
  61. # remember shell=False, so use git.cmd on windows, not just git
  62. process = subprocess.Popen([command] + args, cwd=cwd, env=env,
  63. stdout=subprocess.PIPE,
  64. stderr=(subprocess.PIPE if hide_stderr
  65. else None))
  66. break
  67. except EnvironmentError:
  68. e = sys.exc_info()[1]
  69. if e.errno == errno.ENOENT:
  70. continue
  71. if verbose:
  72. print("unable to run %s" % dispcmd)
  73. print(e)
  74. return None, None
  75. else:
  76. if verbose:
  77. print("unable to find command, tried %s" % (commands,))
  78. return None, None
  79. stdout = process.communicate()[0].strip().decode()
  80. if process.returncode != 0:
  81. if verbose:
  82. print("unable to run %s (error)" % dispcmd)
  83. print("stdout was %s" % stdout)
  84. return None, process.returncode
  85. return stdout, process.returncode
  86. def versions_from_parentdir(parentdir_prefix, root, verbose):
  87. """Try to determine the version from the parent directory name.
  88. Source tarballs conventionally unpack into a directory that includes both
  89. the project name and a version string. We will also support searching up
  90. two directory levels for an appropriately named parent directory
  91. """
  92. rootdirs = []
  93. for _ in range(3):
  94. dirname = os.path.basename(root)
  95. if dirname.startswith(parentdir_prefix):
  96. return {"version": dirname[len(parentdir_prefix):],
  97. "full-revisionid": None,
  98. "dirty": False, "error": None, "date": None}
  99. rootdirs.append(root)
  100. root = os.path.dirname(root) # up a level
  101. if verbose:
  102. print("Tried directories %s but none started with prefix %s" %
  103. (str(rootdirs), parentdir_prefix))
  104. raise NotThisMethod("rootdir doesn't start with parentdir_prefix")
  105. @register_vcs_handler("git", "get_keywords")
  106. def git_get_keywords(versionfile_abs):
  107. """Extract version information from the given file."""
  108. # the code embedded in _version.py can just fetch the value of these
  109. # keywords. When used from setup.py, we don't want to import _version.py,
  110. # so we do it with a regexp instead. This function is not used from
  111. # _version.py.
  112. keywords = {}
  113. try:
  114. with open(versionfile_abs, "r") as fobj:
  115. for line in fobj:
  116. if line.strip().startswith("git_refnames ="):
  117. mo = re.search(r'=\s*"(.*)"', line)
  118. if mo:
  119. keywords["refnames"] = mo.group(1)
  120. if line.strip().startswith("git_full ="):
  121. mo = re.search(r'=\s*"(.*)"', line)
  122. if mo:
  123. keywords["full"] = mo.group(1)
  124. if line.strip().startswith("git_date ="):
  125. mo = re.search(r'=\s*"(.*)"', line)
  126. if mo:
  127. keywords["date"] = mo.group(1)
  128. except EnvironmentError:
  129. pass
  130. return keywords
  131. @register_vcs_handler("git", "keywords")
  132. def git_versions_from_keywords(keywords, tag_prefix, verbose):
  133. """Get version information from git keywords."""
  134. if "refnames" not in keywords:
  135. raise NotThisMethod("Short version file found")
  136. date = keywords.get("date")
  137. if date is not None:
  138. # Use only the last line. Previous lines may contain GPG signature
  139. # information.
  140. date = date.splitlines()[-1]
  141. # git-2.2.0 added "%cI", which expands to an ISO-8601 -compliant
  142. # datestamp. However we prefer "%ci" (which expands to an "ISO-8601
  143. # -like" string, which we must then edit to make compliant), because
  144. # it's been around since git-1.5.3, and it's too difficult to
  145. # discover which version we're using, or to work around using an
  146. # older one.
  147. date = date.strip().replace(" ", "T", 1).replace(" ", "", 1)
  148. refnames = keywords["refnames"].strip()
  149. if refnames.startswith("$Format"):
  150. if verbose:
  151. print("keywords are unexpanded, not using")
  152. raise NotThisMethod("unexpanded keywords, not a git-archive tarball")
  153. refs = {r.strip() for r in refnames.strip("()").split(",")}
  154. # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of
  155. # just "foo-1.0". If we see a "tag: " prefix, prefer those.
  156. TAG = "tag: "
  157. tags = {r[len(TAG):] for r in refs if r.startswith(TAG)}
  158. if not tags:
  159. # Either we're using git < 1.8.3, or there really are no tags. We use
  160. # a heuristic: assume all version tags have a digit. The old git %d
  161. # expansion behaves like git log --decorate=short and strips out the
  162. # refs/heads/ and refs/tags/ prefixes that would let us distinguish
  163. # between branches and tags. By ignoring refnames without digits, we
  164. # filter out many common branch names like "release" and
  165. # "stabilization", as well as "HEAD" and "master".
  166. tags = {r for r in refs if re.search(r'\d', r)}
  167. if verbose:
  168. print("discarding '%s', no digits" % ",".join(refs - tags))
  169. if verbose:
  170. print("likely tags: %s" % ",".join(sorted(tags)))
  171. for ref in sorted(tags):
  172. # sorting will prefer e.g. "2.0" over "2.0rc1"
  173. if ref.startswith(tag_prefix):
  174. r = ref[len(tag_prefix):]
  175. # Filter out refs that exactly match prefix or that don't start
  176. # with a number once the prefix is stripped (mostly a concern
  177. # when prefix is '')
  178. if not re.match(r'\d', r):
  179. continue
  180. if verbose:
  181. print("picking %s" % r)
  182. return {"version": r,
  183. "full-revisionid": keywords["full"].strip(),
  184. "dirty": False, "error": None,
  185. "date": date}
  186. # no suitable tags, so version is "0+unknown", but full hex is still there
  187. if verbose:
  188. print("no suitable tags, using unknown + full revision id")
  189. return {"version": "0+unknown",
  190. "full-revisionid": keywords["full"].strip(),
  191. "dirty": False, "error": "no suitable tags", "date": None}
  192. @register_vcs_handler("git", "pieces_from_vcs")
  193. def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command):
  194. """Get version from 'git describe' in the root of the source tree.
  195. This only gets called if the git-archive 'subst' keywords were *not*
  196. expanded, and _version.py hasn't already been rewritten with a short
  197. version string, meaning we're inside a checked out source tree.
  198. """
  199. GITS = ["git"]
  200. if sys.platform == "win32":
  201. GITS = ["git.cmd", "git.exe"]
  202. _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root,
  203. hide_stderr=True)
  204. if rc != 0:
  205. if verbose:
  206. print("Directory %s not under git control" % root)
  207. raise NotThisMethod("'git rev-parse --git-dir' returned error")
  208. # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty]
  209. # if there isn't one, this yields HEX[-dirty] (no NUM)
  210. describe_out, rc = runner(GITS, ["describe", "--tags", "--dirty",
  211. "--always", "--long",
  212. "--match", "%s*" % tag_prefix],
  213. cwd=root)
  214. # --long was added in git-1.5.5
  215. if describe_out is None:
  216. raise NotThisMethod("'git describe' failed")
  217. describe_out = describe_out.strip()
  218. full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root)
  219. if full_out is None:
  220. raise NotThisMethod("'git rev-parse' failed")
  221. full_out = full_out.strip()
  222. pieces = {}
  223. pieces["long"] = full_out
  224. pieces["short"] = full_out[:7] # maybe improved later
  225. pieces["error"] = None
  226. branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"],
  227. cwd=root)
  228. # --abbrev-ref was added in git-1.6.3
  229. if rc != 0 or branch_name is None:
  230. raise NotThisMethod("'git rev-parse --abbrev-ref' returned error")
  231. branch_name = branch_name.strip()
  232. if branch_name == "HEAD":
  233. # If we aren't exactly on a branch, pick a branch which represents
  234. # the current commit. If all else fails, we are on a branchless
  235. # commit.
  236. branches, rc = runner(GITS, ["branch", "--contains"], cwd=root)
  237. # --contains was added in git-1.5.4
  238. if rc != 0 or branches is None:
  239. raise NotThisMethod("'git branch --contains' returned error")
  240. branches = branches.split("\n")
  241. # Remove the first line if we're running detached
  242. if "(" in branches[0]:
  243. branches.pop(0)
  244. # Strip off the leading "* " from the list of branches.
  245. branches = [branch[2:] for branch in branches]
  246. if "master" in branches:
  247. branch_name = "master"
  248. elif not branches:
  249. branch_name = None
  250. else:
  251. # Pick the first branch that is returned. Good or bad.
  252. branch_name = branches[0]
  253. pieces["branch"] = branch_name
  254. # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty]
  255. # TAG might have hyphens.
  256. git_describe = describe_out
  257. # look for -dirty suffix
  258. dirty = git_describe.endswith("-dirty")
  259. pieces["dirty"] = dirty
  260. if dirty:
  261. git_describe = git_describe[:git_describe.rindex("-dirty")]
  262. # now we have TAG-NUM-gHEX or HEX
  263. if "-" in git_describe:
  264. # TAG-NUM-gHEX
  265. mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe)
  266. if not mo:
  267. # unparseable. Maybe git-describe is misbehaving?
  268. pieces["error"] = ("unable to parse git-describe output: '%s'"
  269. % describe_out)
  270. return pieces
  271. # tag
  272. full_tag = mo.group(1)
  273. if not full_tag.startswith(tag_prefix):
  274. if verbose:
  275. fmt = "tag '%s' doesn't start with prefix '%s'"
  276. print(fmt % (full_tag, tag_prefix))
  277. pieces["error"] = ("tag '%s' doesn't start with prefix '%s'"
  278. % (full_tag, tag_prefix))
  279. return pieces
  280. pieces["closest-tag"] = full_tag[len(tag_prefix):]
  281. # distance: number of commits since tag
  282. pieces["distance"] = int(mo.group(2))
  283. # commit: short hex revision ID
  284. pieces["short"] = mo.group(3)
  285. else:
  286. # HEX: no tags
  287. pieces["closest-tag"] = None
  288. count_out, rc = runner(GITS, ["rev-list", "HEAD", "--count"], cwd=root)
  289. pieces["distance"] = int(count_out) # total number of commits
  290. # commit date: see ISO-8601 comment in git_versions_from_keywords()
  291. date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[0].strip()
  292. # Use only the last line. Previous lines may contain GPG signature
  293. # information.
  294. date = date.splitlines()[-1]
  295. pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1)
  296. return pieces
  297. def plus_or_dot(pieces):
  298. """Return a + if we don't already have one, else return a ."""
  299. if "+" in pieces.get("closest-tag", ""):
  300. return "."
  301. return "+"
  302. def render_pep440(pieces):
  303. """Build up version string, with post-release "local version identifier".
  304. Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you
  305. get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty
  306. Exceptions:
  307. 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty]
  308. """
  309. if pieces["closest-tag"]:
  310. rendered = pieces["closest-tag"]
  311. if pieces["distance"] or pieces["dirty"]:
  312. rendered += plus_or_dot(pieces)
  313. rendered += "%d.g%s" % (pieces["distance"], pieces["short"])
  314. if pieces["dirty"]:
  315. rendered += ".dirty"
  316. else:
  317. # exception #1
  318. rendered = "0+untagged.%d.g%s" % (pieces["distance"],
  319. pieces["short"])
  320. if pieces["dirty"]:
  321. rendered += ".dirty"
  322. return rendered
  323. def render_pep440_branch(pieces):
  324. """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] .
  325. The ".dev0" means not master branch. Note that .dev0 sorts backwards
  326. (a feature branch will appear "older" than the master branch).
  327. Exceptions:
  328. 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty]
  329. """
  330. if pieces["closest-tag"]:
  331. rendered = pieces["closest-tag"]
  332. if pieces["distance"] or pieces["dirty"]:
  333. if pieces["branch"] != "master":
  334. rendered += ".dev0"
  335. rendered += plus_or_dot(pieces)
  336. rendered += "%d.g%s" % (pieces["distance"], pieces["short"])
  337. if pieces["dirty"]:
  338. rendered += ".dirty"
  339. else:
  340. # exception #1
  341. rendered = "0"
  342. if pieces["branch"] != "master":
  343. rendered += ".dev0"
  344. rendered += "+untagged.%d.g%s" % (pieces["distance"],
  345. pieces["short"])
  346. if pieces["dirty"]:
  347. rendered += ".dirty"
  348. return rendered
  349. def render_pep440_pre(pieces):
  350. """TAG[.post0.devDISTANCE] -- No -dirty.
  351. Exceptions:
  352. 1: no tags. 0.post0.devDISTANCE
  353. """
  354. if pieces["closest-tag"]:
  355. rendered = pieces["closest-tag"]
  356. if pieces["distance"]:
  357. rendered += ".post0.dev%d" % pieces["distance"]
  358. else:
  359. # exception #1
  360. rendered = "0.post0.dev%d" % pieces["distance"]
  361. return rendered
  362. def render_pep440_post(pieces):
  363. """TAG[.postDISTANCE[.dev0]+gHEX] .
  364. The ".dev0" means dirty. Note that .dev0 sorts backwards
  365. (a dirty tree will appear "older" than the corresponding clean one),
  366. but you shouldn't be releasing software with -dirty anyways.
  367. Exceptions:
  368. 1: no tags. 0.postDISTANCE[.dev0]
  369. """
  370. if pieces["closest-tag"]:
  371. rendered = pieces["closest-tag"]
  372. if pieces["distance"] or pieces["dirty"]:
  373. rendered += ".post%d" % pieces["distance"]
  374. if pieces["dirty"]:
  375. rendered += ".dev0"
  376. rendered += plus_or_dot(pieces)
  377. rendered += "g%s" % pieces["short"]
  378. else:
  379. # exception #1
  380. rendered = "0.post%d" % pieces["distance"]
  381. if pieces["dirty"]:
  382. rendered += ".dev0"
  383. rendered += "+g%s" % pieces["short"]
  384. return rendered
  385. def render_pep440_post_branch(pieces):
  386. """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] .
  387. The ".dev0" means not master branch.
  388. Exceptions:
  389. 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty]
  390. """
  391. if pieces["closest-tag"]:
  392. rendered = pieces["closest-tag"]
  393. if pieces["distance"] or pieces["dirty"]:
  394. rendered += ".post%d" % pieces["distance"]
  395. if pieces["branch"] != "master":
  396. rendered += ".dev0"
  397. rendered += plus_or_dot(pieces)
  398. rendered += "g%s" % pieces["short"]
  399. if pieces["dirty"]:
  400. rendered += ".dirty"
  401. else:
  402. # exception #1
  403. rendered = "0.post%d" % pieces["distance"]
  404. if pieces["branch"] != "master":
  405. rendered += ".dev0"
  406. rendered += "+g%s" % pieces["short"]
  407. if pieces["dirty"]:
  408. rendered += ".dirty"
  409. return rendered
  410. def render_pep440_old(pieces):
  411. """TAG[.postDISTANCE[.dev0]] .
  412. The ".dev0" means dirty.
  413. Exceptions:
  414. 1: no tags. 0.postDISTANCE[.dev0]
  415. """
  416. if pieces["closest-tag"]:
  417. rendered = pieces["closest-tag"]
  418. if pieces["distance"] or pieces["dirty"]:
  419. rendered += ".post%d" % pieces["distance"]
  420. if pieces["dirty"]:
  421. rendered += ".dev0"
  422. else:
  423. # exception #1
  424. rendered = "0.post%d" % pieces["distance"]
  425. if pieces["dirty"]:
  426. rendered += ".dev0"
  427. return rendered
  428. def render_git_describe(pieces):
  429. """TAG[-DISTANCE-gHEX][-dirty].
  430. Like 'git describe --tags --dirty --always'.
  431. Exceptions:
  432. 1: no tags. HEX[-dirty] (note: no 'g' prefix)
  433. """
  434. if pieces["closest-tag"]:
  435. rendered = pieces["closest-tag"]
  436. if pieces["distance"]:
  437. rendered += "-%d-g%s" % (pieces["distance"], pieces["short"])
  438. else:
  439. # exception #1
  440. rendered = pieces["short"]
  441. if pieces["dirty"]:
  442. rendered += "-dirty"
  443. return rendered
  444. def render_git_describe_long(pieces):
  445. """TAG-DISTANCE-gHEX[-dirty].
  446. Like 'git describe --tags --dirty --always -long'.
  447. The distance/hash is unconditional.
  448. Exceptions:
  449. 1: no tags. HEX[-dirty] (note: no 'g' prefix)
  450. """
  451. if pieces["closest-tag"]:
  452. rendered = pieces["closest-tag"]
  453. rendered += "-%d-g%s" % (pieces["distance"], pieces["short"])
  454. else:
  455. # exception #1
  456. rendered = pieces["short"]
  457. if pieces["dirty"]:
  458. rendered += "-dirty"
  459. return rendered
  460. def render(pieces, style):
  461. """Render the given version pieces into the requested style."""
  462. if pieces["error"]:
  463. return {"version": "unknown",
  464. "full-revisionid": pieces.get("long"),
  465. "dirty": None,
  466. "error": pieces["error"],
  467. "date": None}
  468. if not style or style == "default":
  469. style = "pep440" # the default
  470. if style == "pep440":
  471. rendered = render_pep440(pieces)
  472. elif style == "pep440-branch":
  473. rendered = render_pep440_branch(pieces)
  474. elif style == "pep440-pre":
  475. rendered = render_pep440_pre(pieces)
  476. elif style == "pep440-post":
  477. rendered = render_pep440_post(pieces)
  478. elif style == "pep440-post-branch":
  479. rendered = render_pep440_post_branch(pieces)
  480. elif style == "pep440-old":
  481. rendered = render_pep440_old(pieces)
  482. elif style == "git-describe":
  483. rendered = render_git_describe(pieces)
  484. elif style == "git-describe-long":
  485. rendered = render_git_describe_long(pieces)
  486. else:
  487. raise ValueError("unknown style '%s'" % style)
  488. return {"version": rendered, "full-revisionid": pieces["long"],
  489. "dirty": pieces["dirty"], "error": None,
  490. "date": pieces.get("date")}
  491. def get_versions():
  492. """Get version information or return default if unable to do so."""
  493. # I am in _version.py, which lives at ROOT/VERSIONFILE_SOURCE. If we have
  494. # __file__, we can work backwards from there to the root. Some
  495. # py2exe/bbfreeze/non-CPython implementations don't do __file__, in which
  496. # case we can only use expanded keywords.
  497. cfg = get_config()
  498. verbose = cfg.verbose
  499. try:
  500. return git_versions_from_keywords(get_keywords(), cfg.tag_prefix,
  501. verbose)
  502. except NotThisMethod:
  503. pass
  504. try:
  505. root = os.path.realpath(__file__)
  506. # versionfile_source is the relative path from the top of the source
  507. # tree (where the .git directory might live) to this file. Invert
  508. # this to find the root from __file__.
  509. for _ in cfg.versionfile_source.split('/'):
  510. root = os.path.dirname(root)
  511. except NameError:
  512. return {"version": "0+unknown", "full-revisionid": None,
  513. "dirty": None,
  514. "error": "unable to find root of source tree",
  515. "date": None}
  516. try:
  517. pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose)
  518. return render(pieces, cfg.style)
  519. except NotThisMethod:
  520. pass
  521. try:
  522. if cfg.parentdir_prefix:
  523. return versions_from_parentdir(cfg.parentdir_prefix, root, verbose)
  524. except NotThisMethod:
  525. pass
  526. return {"version": "0+unknown", "full-revisionid": None,
  527. "dirty": None,
  528. "error": "unable to compute version", "date": None}