Skip to content

Commit

Permalink
Replace pystache package with chevron
Browse files Browse the repository at this point in the history
This replaces the pystache package with the chevron package for rendering
mustache templates.
  • Loading branch information
mcdonnnj committed Aug 5, 2021
1 parent a874684 commit 401802c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_version(version_file):
package_data={"lineage": ["templates/*.md"]},
py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
include_package_data=True,
install_requires=["PyGithub", "pystache", "PyYAML", "setuptools >= 24.2.0"],
install_requires=["chevron", "PyGithub", "PyYAML", "setuptools >= 24.2.0"],
extras_require={
"test": [
"coverage",
Expand Down
6 changes: 3 additions & 3 deletions src/lineage/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
from urllib.parse import ParseResult, urlparse

# Third-Party Libraries
import chevron
from github import Github, PullRequest, Repository
import pkg_resources
import pystache
import requests
import yaml

Expand Down Expand Up @@ -372,13 +372,13 @@ def main() -> None:
}
if conflict_file_list:
title = f"⚠️ CONFLICT! Lineage pull request for: {lineage_id}"
body = pystache.render(conflict_template, template_data)
body = chevron.render(conflict_template, template_data)
create_pull_request(
repo, pr_branch_name, local_branch, title, body, draft=True
)
else:
title = f"Lineage pull request for: {lineage_id}"
body = pystache.render(clean_template, template_data)
body = chevron.render(clean_template, template_data)
create_pull_request(
repo, pr_branch_name, local_branch, title, body, draft=False
)
Expand Down

0 comments on commit 401802c

Please sign in to comment.