Skip to content

Commit

Permalink
correct the way coffee is installed in poetry and where the templates…
Browse files Browse the repository at this point in the history
… are discovered.
  • Loading branch information
dhosterman committed Dec 8, 2023
1 parent 8444d68 commit 138d69f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = ""
authors = ["Your Name <[email protected]>"]
readme = "README.md"
packages = [
{ include = "src" }
{ include = "coffee", from = "src" }
]


Expand Down
4 changes: 2 additions & 2 deletions src/coffee/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def quantize_stars(raw_score):
class StaticSiteGenerator:
def __init__(self) -> None:
self.env = Environment(
loader=PackageLoader("src.coffee"), autoescape=select_autoescape()
loader=PackageLoader("coffee"), autoescape=select_autoescape()
)

# todo: Dedupe this, I mostly just stole it from CliHelmRunner.
Expand Down Expand Up @@ -252,4 +252,4 @@ def generate(self, benchmarks: list[Benchmark]) -> None:
)

static_site_generator = StaticSiteGenerator()
static_site_generator.generate(benchmarks)
static_site_generator.generate([benchmark])

0 comments on commit 138d69f

Please sign in to comment.