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

Function create_ical

dev-tools/scripts/releaseWizard.py:1952–1964  ·  view source on GitHub ↗
(todo)

Source from the content-addressed store, hash-verified

1950
1951
1952def create_ical(todo): # pylint: disable=unused-argument
1953 if ask_yes_no("Do you want to add a Calendar reminder for the close vote time?"):
1954 c = Calendar()
1955 e = Event()
1956 e.name = "Solr %s vote ends" % state.release_version
1957 e.begin = vote_close_72h_date()
1958 e.description = "Remember to sum up votes and continue release :)"
1959 c.events.add(e)
1960 ics_file = os.path.join(state.get_rc_folder(), 'vote_end.ics')
1961 with open(ics_file, 'w') as my_file:
1962 my_file.writelines(c)
1963 open_file(ics_file)
1964 return True
1965
1966
1967today = datetime.now(UTC).date()

Callers

nothing calls this directly

Calls 6

ask_yes_noFunction · 0.85
vote_close_72h_dateFunction · 0.85
open_fileFunction · 0.85
get_rc_folderMethod · 0.80
addMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…