Skip to content

Commit

Permalink
[AIRFLOW-6727] Fix minor bugs in Release Management scripts (#7355)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxil authored Feb 4, 2020
1 parent 94fccca commit e681d3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
click>=6.6,<7
click~=7.0
jira>=2.0.0
keyring==10.1
gitpython
Expand Down
3 changes: 2 additions & 1 deletion dev/send_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def render_template(template_file: str, **kwargs) -> str:
:kwargs: Named parameters to use when rendering the template
:return: Rendered template
"""
template = jinja2.Template(open(template_file).read())
dir_path = os.path.dirname(os.path.realpath(__file__))
template = jinja2.Template(open(os.path.join(dir_path, template_file)).read())
return template.render(kwargs)


Expand Down
2 changes: 1 addition & 1 deletion dev/templates/vote_email.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ with INSTALL instructions.
Public keys are available at: https://www.apache.org/dist/{{ project_module }}/KEYS

The Change Log for the release:
https://github.com/apache/{{ project_module }}/blob/{{ version_rc }}/CHANGELOG.md
https://github.com/apache/{{ project_module }}/blob/{{ version_rc }}/CHANGELOG.txt

The vote will be open for at least 72 hours or until the necessary number
of votes are reached.
Expand Down

0 comments on commit e681d3a

Please sign in to comment.