diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-05 21:16:54 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-05 21:16:54 +0200 |
commit | 13032164ccfb479b432c0a2e8085c09983349fea (patch) | |
tree | 88c790385e942d862f388de30aa7a6d23ae25971 /demo/doit | |
parent | 46695e31f2535fbb0c8b0d3989fb365f8e3456ed (diff) | |
download | ee-python-fact.tar.gz ee-python-fact.tar.bz2 ee-python-fact.tar.xz ee-python-fact.zip |
o Starting on some code for building reports from the project.fact
Diffstat (limited to 'demo/doit')
-rw-r--r-- | demo/doit/dodo.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/demo/doit/dodo.py b/demo/doit/dodo.py index 780f2b9..74b621b 100644 --- a/demo/doit/dodo.py +++ b/demo/doit/dodo.py @@ -1,8 +1,10 @@ from ee.bom.doit import * from ee.digikey.doit import * -from ee.doit import configure_logging +from ee.doit import configure_logging, ReportCollection from ee.ds import DataSetManager from ee.kicad.doit import * +# noinspection PyUnresolvedReferences +from ee.report.doit import * def configure_kicad(): @@ -22,6 +24,11 @@ def configure_digikey(): doit_config.configure(data_set_manager=dsm) +def configure_report(): + from ee.report.doit import doit_config + doit_config.configure(data_set_manager=dsm, report_collection=report_collection, extra_config=extra_config) + + # Configure DoIt configure_logging() @@ -31,7 +38,10 @@ prj = "demo" sch = "{}.sch".format(prj) kicad_pcb = "{}.kicad_pcb".format(prj) +extra_config = dict(report_dir="docs/report") + dsm = DataSetManager("ee") +report_collection = ReportCollection() kicad_footprint = "kicad-footprint" dsm.register_ds("csv", kicad_footprint, "kicad-footprint-mapping", path="ee/kicad-footprint.csv") @@ -39,6 +49,7 @@ dsm.register_ds("csv", kicad_footprint, "kicad-footprint-mapping", path="ee/kica configure_kicad() configure_bom() configure_digikey() +configure_report() def task_orders(): |