Skip to content

Commit

Permalink
Merge pull request #98 from LondonBiofoundry/img_not_included
Browse files Browse the repository at this point in the history
Img not included - Needed for PDF
  • Loading branch information
hainesm6 authored Mar 3, 2021
2 parents b2866ce + 019bfaa commit 018e888
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include ./basicsynbio/parts_linkers/*.gb
include ./basicsynbio/static/*.png
include basicsynbio/parts_linkers/*.gb
include basicsynbio/static/*
4 changes: 3 additions & 1 deletion basicsynbio/functions/pdf_instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pandas as pd
from pathlib import Path
from datetime import datetime
from importlib import resources
from reportlab.platypus import (
SimpleDocTemplate,
ListFlowable,
Expand Down Expand Up @@ -119,7 +120,8 @@ def calculate_clip_num(assemblies: list):
pdf = SimpleDocTemplate(pdf_filename, pagesizes=A4)

elems = []
elems.append(Image("basicsynbio/static/introimg.png", 12 * cm, 4 * cm))
with resources.path("basicsynbio.static", "introimg.png") as image_path:
elems.append(Image(image_path, 12 * cm, 4 * cm))
elems.append(Paragraph("Materials", styles["Heading1"]))
elems.append(Table(PROCESSED_MATERIALS, colWidths=[10.5 * cm, 5 * cm], style=style))
elems.append(PageBreak())
Expand Down
Empty file added basicsynbio/static/__init__.py
Empty file.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
description="An open-source Python package to facilitate BASIC DNA Assembly workflows",
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(
exclude=("tests")
),
packages=setuptools.find_packages(exclude=("tests")),
include_package_data=True,
classifiers=[
"Intended Audience :: Science/Research",
Expand Down

0 comments on commit 018e888

Please sign in to comment.