- Include *.gvpr files in package_data so wv_gvpr.gvpr ships
in the wheel distribution (reported by web-ui integration agent)
- Guard generate_html_output() against empty BOM list to prevent
IndexError when YAML has no connectors/cables
Major refactor from upstream PR #455 adding jumper wires as a first-class
component type. Includes renamed modules (DataClasses→wv_dataclasses,
Harness→wv_harness), new color system, and updated BOM generation.
Preserved Jinja2 preprocessor (PR #382) in wv_cli.py alongside jumper changes.
Refactor connector node generation
Further refactor connector node generation
Rebuild demos
Generate gauge string inside Cable object
WIP: refactor cable node generation
Implement HTML indentation
WIP
More WIP
Remove old stuff, slightly simplify code
Outsource `gv_pin_table()`, simplify padding
Add TODOs
Outsource `set_dot_basics()` and `apply_dot_tweaks()`
Make setting HTML tag attributes easier through `kwargs`
Fix and simplify bgcolor logic
Reactivate cable edge generation
Outsource `gv_edge_wire()`
Make connecting things more object-oriented
Alphabetize HTML tags, improve bgcolor rendering
Make mates object-oriented
Run `autoflake -i`
Run `autoflake -i --remove-all-unused-imports`
Streamline assignment of ports to simple connectors
Implement color objects
Use color objects in WireViz
Re-sort `wv_colors.py`
Make green color darker
Break longer lines not caught by `black`
because they were unbroken strings or comments
Make variable name more expressive
Apply dot tweaks last
Remove unused line
Improve subclassing of components, prepare for BOM refactoring
Clean up
Include nested additional components in BOM
do not add autogenerated designators to BOM
Improve BOM generation (TODO: wires from a bundle)
Prepare `harness.populate_bom()`
Change `description` to `type` in additional BOM item YAML
Define CLI epilog str in single statement
Rename modules, adjust imports, move `build_examples.py`
Restructure and update `.gitignore`
Clarify `wireviz.parse()` input types
Implement BOM population (missing: qty multipliers)
Make `pin_objects` and `wire_objects` dictionaries
Compute qty's of additional components (WIP)
Add qty test file
Adapt `tutorial08.yml` (remove `unit` field)
Add `tabulate` to dependency list (might remove later if not needed)
Sort BOM by category, assign BOM IDs
Rename `Options.color_mode` to `.color_output_mod` for consistency
Change BOM output file extension from `.bom.tsv` to `.tsv`
Implement BOM bubbles
Stop recursive nesting of additional components
Add BOM bubble to additional component list (WIP)
Fix gauge conversion
Fix line breaks in code
Optimize BOM bubble geometry
Implement pin color output
Small issue: GraphViz warning
```
Warning: table size too small for content
```
Add some test files to `tests/` directory
Update test files
Allow multiple colors for components
Implement multiple colors for components, improve multicolor table rendering
Fix color cell implementation
Fix node background color rendering
Add test file for node and title bgcolors
WIP: BOM modes
Add TODO for empty connector pin tables
Comment out BOM modes (WIP) and BOM bubbles
Resume work on BOM
Include part number info in BOM table
Fix BOM output in TSV and HTML
Add bundles' wires' part number info to BOM
Add TODOs
Implement bundle part number rendering
Improve conductor table rendering
Fix additional component BOM table layout
Disable CLI BOM output
Add suggestions from #246
Add suggestions from #186
Add .vscode/ to .gitignore
Fix PyLance problems
Update interim version number
Fix zero-size cell for simple connectors without type
Implement additional parameters dict for components
Implement note for additional components
Thicken additional component table
Add placeholder for add.comp. PN info
Apply black
no diff should ocurr as a result of the refactoring
Add `metadata.title` to `demo01.yml`
to avoid diffs later when calling via CLI
Add temporary loop to `demo01`
for debugging purposes
Add `cleanup.sh` (maybe move/delete later? or add commit hook?)
Deprecate Python 3.7, add Python 3.10
Add `devtools.txt`
Add `pyan` to `devtools.txt`
Add sample use to `devtools.txt`
This allows users to leverage jinja to include other files but also
loops, conditions, and other templating features.
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
The application name and URL was defined several places in the code,
and the name was not written exactly the same everywhere.
By using the same constants everywhere, consistency is obtained.
This image, with an optional caption below, is displayed in the lower
section of the connector/cable node in the diagram - just above the
notes if present.
This solves the basic part of issue #27, and is a continuation of
PR #137 that was closed due to changes in the base branch.
Add -V command line option (and --version as an alias) to
both wireviz.py and build_examples.py that show version number.
Move the version number from setup.py into __init__.py to access
the same version number specification from all files needing it.
This solves part 4 of issue #167.
- Remove modified background color -> should be discusses as a separate feature
- Render shields as thin tinned wire with black border, safer for b&w priting than single light-gray line
- Remove PE as color definition, since it is not, and should be called with GNYE
- Clean up minor things
There are hard copies of the graphviz and pyyaml dependencies included
in the repo. Remove these.
Sort out installation and dependency handling by writing a functional
setup.py script. Rename top level documentation. Refactor wireviz.py
slightly to allow it to run as an installed script.
# Conflicts:
# src/batch.py
# src/wireviz/batch.py
# src/wireviz/build_examples.py