Skip to content

Commit

Permalink
Fixed broken wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
miek770 committed Nov 19, 2024
1 parent e2ad79b commit 1a54de8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions eznbtemplater/eznbtemplater.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ def render_pdf(

# Write the modified notebook to a transition file
transit_filename: Path = output_path.with_suffix(".ipynb")
with open(transit_filename, mode="w", encoding="utf-8") as output_file:
with open(transit_filename.as_posix(), mode="w", encoding="utf-8") as output_file:
nbf.write(nb, output_file)

# Use nbconvert to convert the temporary notebook to a PDF
pdf_exporter = PDFExporter()
pdf_exporter.exclude_input = True # Example option to exclude input cells
pdf_body, resources = pdf_exporter.from_filename(transit_filename.as_posix())
pdf_body, _ = pdf_exporter.from_filename(transit_filename.as_posix())

# Save the generated PDF to the output path
with open(output_path, "wb") as output_file:
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "eznbtemplater"
version = "0.1.3"
version = "0.1.4"
authors = [
{ name="Michel Lavoie", email="[email protected]" },
]
Expand All @@ -16,6 +16,10 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
packages = [
{ include = "eznbtemplater" },
]
include = ["eznbtemplater/templates/*"]

[project.urls]
homepage = "https://github.com/miek770/eznbtemplater"
Expand All @@ -25,9 +29,6 @@ issues = "https://github.com/miek770/eznbtemplater/issues"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build]
include = ["eznbtemplater/templates/*"]

[tool.uv]
dev-dependencies = [
"black>=24.10.0",
Expand Down

0 comments on commit 1a54de8

Please sign in to comment.