MCPcopy Create free account
hub / github.com/apache/solr / __init__

Method __init__

dev-tools/scripts/releaseWizard.py:312–330  ·  view source on GitHub ↗
(self, config_path, release_version, script_version)

Source from the content-addressed store, hash-verified

310
311class ReleaseState:
312 def __init__(self, config_path, release_version, script_version):
313 self.script_version = script_version
314 self.config_path = config_path
315 self.todo_groups = None
316 self.todos = None
317 self.latest_version = None
318 self.previous_rcs = {}
319 self.rc_number = 1
320 self.start_date = unix_time_millis(datetime.now(UTC))
321 self.script_branch = run("git rev-parse --abbrev-ref HEAD").strip()
322 self.mirrored_versions = None
323 try:
324 self.script_branch_type = scriptutil.find_branch_type()
325 except:
326 print("WARNING: This script shold (ideally) run from the release branch, not a feature branch (%s)" % self.script_branch)
327 self.script_branch_type = 'feature'
328 self.set_release_version(release_version)
329 self.set_latest_version()
330 self.set_latest_lts_version()
331
332
333 def set_release_version(self, version):

Callers

nothing calls this directly

Calls 6

set_release_versionMethod · 0.95
set_latest_versionMethod · 0.95
runFunction · 0.90
unix_time_millisFunction · 0.85
stripMethod · 0.80

Tested by

no test coverage detected