"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dev-tools/scripts/releaseWizard.py" between
solr-8.4.0-src.tgz and solr-8.4.1-src.tgz

About: Solr is the search platform from the Apache Lucene project. Its major features include full-text search, hit highlighting, faceted search, caching, replication, and a web admin interface.

releaseWizard.py  (solr-8.4.0-src.tgz):releaseWizard.py  (solr-8.4.1-src.tgz)
skipping to change at line 107 skipping to change at line 107
'release_version_bugfix': state.release_version_bugfix, 'release_version_bugfix': state.release_version_bugfix,
'state': state, 'state': state,
'epoch': unix_time_millis(datetime.utcnow()), 'epoch': unix_time_millis(datetime.utcnow()),
'get_next_version': state.get_next_version(), 'get_next_version': state.get_next_version(),
'current_git_rev': state.get_current_git_rev(), 'current_git_rev': state.get_current_git_rev(),
'keys_downloaded': keys_downloaded(), 'keys_downloaded': keys_downloaded(),
'editor': get_editor(), 'editor': get_editor(),
'rename_cmd': 'ren' if is_windows() else 'mv', 'rename_cmd': 'ren' if is_windows() else 'mv',
'vote_close_72h': vote_close_72h_date().strftime("%Y-%m-%d %H:00 UTC"), 'vote_close_72h': vote_close_72h_date().strftime("%Y-%m-%d %H:00 UTC"),
'vote_close_72h_epoch': unix_time_millis(vote_close_72h_date()), 'vote_close_72h_epoch': unix_time_millis(vote_close_72h_date()),
'vote_close_72h_holidays': vote_close_72h_holidays(),
'lucene_highlights_file': lucene_highlights_file, 'lucene_highlights_file': lucene_highlights_file,
'solr_highlights_file': solr_highlights_file, 'solr_highlights_file': solr_highlights_file,
'tlp_news_draft': tlp_news_draft, 'tlp_news_draft': tlp_news_draft,
'lucene_news_draft': lucene_news_draft, 'lucene_news_draft': lucene_news_draft,
'solr_news_draft': solr_news_draft, 'solr_news_draft': solr_news_draft,
'tlp_news_file': tlp_news_file, 'tlp_news_file': tlp_news_file,
'lucene_news_file': lucene_news_file, 'lucene_news_file': lucene_news_file,
'solr_news_file': solr_news_file, 'solr_news_file': solr_news_file,
'load_lines': load_lines, 'load_lines': load_lines,
'set_java_home': set_java_home, 'set_java_home': set_java_home,
skipping to change at line 1837 skipping to change at line 1838
e.begin = vote_close_72h_date() e.begin = vote_close_72h_date()
e.description = "Remember to sum up votes and continue release :)" e.description = "Remember to sum up votes and continue release :)"
c.events.add(e) c.events.add(e)
ics_file = os.path.join(state.get_rc_folder(), 'vote_end.ics') ics_file = os.path.join(state.get_rc_folder(), 'vote_end.ics')
with open(ics_file, 'w') as my_file: with open(ics_file, 'w') as my_file:
my_file.writelines(c) my_file.writelines(c)
open_file(ics_file) open_file(ics_file)
return True return True
today = datetime.utcnow().date() today = datetime.utcnow().date()
weekends = {(today + timedelta(days=x)): 'Saturday' for x in range(10) if (today sundays = {(today + timedelta(days=x)): 'Sunday' for x in range(10) if (today +
+ timedelta(days=x)).weekday() == 5} timedelta(days=x)).weekday() == 6}
weekends.update({(today + timedelta(days=x)): 'Sunday' for x in range(10) if (to
day + timedelta(days=x)).weekday() == 6})
y = datetime.utcnow().year y = datetime.utcnow().year
years = [y, y+1] years = [y, y+1]
non_working = holidays.CA(years=years) + holidays.US(years=years) + holidays.Eng land(years=years) \ non_working = holidays.CA(years=years) + holidays.US(years=years) + holidays.Eng land(years=years) \
+ holidays.DE(years=years) + holidays.NO(years=years) + holidays.S E(years=years) + holidays.RU(years=years) + holidays.DE(years=years) + holidays.NO(years=years) + holidays.I ND(years=years) + holidays.RU(years=years)
def vote_close_72h_date(): def vote_close_72h_date():
working_days = 0 # Voting open at least 72 hours according to ASF policy
return datetime.utcnow() + timedelta(hours=73)
def vote_close_72h_holidays():
days = 0
day_offset = -1 day_offset = -1
# Require voting open for 3 working days, not counting todays date holidays = []
# Working day is defined as saturday, sunday or a public holiday observed by # Warn RM about major holidays coming up that should perhaps extend the voti
3 or more [CA, US, EN, DE, NO, SE, RU] ng deadline
while working_days < 4: # Warning will be given for Sunday or a public holiday observed by 3 or more
[CA, US, EN, DE, NO, IND, RU]
while days < 3:
day_offset += 1 day_offset += 1
d = today + timedelta(days=day_offset) d = today + timedelta(days=day_offset)
if not (d in weekends or (d in non_working and len(non_working[d]) >= 3) if not (d in sundays or (d in non_working and len(non_working[d]) >= 2))
): :
working_days += 1 days += 1
return datetime.utcnow() + timedelta(days=day_offset) + timedelta(hours=1) else:
if d in sundays:
holidays.append("%s (Sunday)" % d)
else:
holidays.append("%s (%s)" % (d, non_working[d]))
return holidays if len(holidays) > 0 else None
def website_javadoc_redirect(todo): def website_javadoc_redirect(todo):
htfile = os.path.join(website_folder, 'content', '.htaccess') htfile = os.path.join(website_folder, 'content', '.htaccess')
latest = state.get_latest_version() latest = state.get_latest_version()
if Version.parse(state.release_version).gt(Version.parse(latest)): if Version.parse(state.release_version).gt(Version.parse(latest)):
print("We are releasing the latest version ") print("We are releasing the latest version ")
htaccess = file_to_string(htfile) htaccess = file_to_string(htfile)
print("NOT YET IMPLEMENTED") print("NOT YET IMPLEMENTED")
return False return False
else: else:
 End of changes. 6 change blocks. 
14 lines changed or deleted 24 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)