(self)
| 360 | class MyBuildPy(build_cmd): |
| 361 | ''' Subclass to write commit data into installation tree ''' |
| 362 | def run(self): |
| 363 | # loose as `.dev` is suppose to be invalid |
| 364 | print("check version number") |
| 365 | loose_pep440re = re.compile(r'^(\d+)\.(\d+)\.(\d+((a|b|rc)\d+)?)(\.post\d+)?(\.dev\d*)?$') |
| 366 | if not loose_pep440re.match(version): |
| 367 | raise ValueError("Version number '%s' is not valid (should match [N!]N(.N)*[{a|b|rc}N][.postN][.devN])" % version) |
| 368 | |
| 369 | |
| 370 | build_cmd.run(self) |
| 371 | # this one will only fire for build commands |
| 372 | if hasattr(self, 'build_lib'): |
| 373 | self._record_commit(self.build_lib) |
| 374 | |
| 375 | def make_release_tree(self, base_dir, files): |
| 376 | # this one will fire for sdist |
nothing calls this directly
no test coverage detected