MCPcopy Create free account
hub / github.com/ipython/ipython / run

Method run

setupbase.py:362–373  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_record_commitMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected