Skip to content

Commit

Permalink
use new rocker syntax for dual empy compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Dec 10, 2023
1 parent 556b965 commit 01e2cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
license='Apache 2.0',
install_requires=[
'empy',
'rocker',
'rocker>=0.2.13',
],
install_package_data=True,
zip_safe=False,
Expand Down
4 changes: 2 additions & 2 deletions src/ghrocker/ghpages_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


from rocker.extensions import RockerExtension

from rocker.em import empy_expand

class GHPages(RockerExtension):

Expand All @@ -41,7 +41,7 @@ def get_preamble(self, cli_args):

def get_snippet(self, cliargs):
snippet = pkgutil.get_data('ghrocker', 'templates/%s_snippet.Dockerfile.em' % self.name).decode('utf-8')
return em.expand(snippet, {})
return empy_expand(snippet, {})

def get_docker_args(self, cli_args):
args = ' -w /tmp/jekyll'
Expand Down

0 comments on commit 01e2cb1

Please sign in to comment.