Salvador E. Tropea
661677608e
[Internal BoM] Added CSV aggregate
...
Related to #248
2022-09-13 09:25:14 -03:00
Salvador E. Tropea
553d47f533
[BoM] Added support for text variables expansion
...
- Is done using a filter, the expansion is done at the end, but
the filter can be applied at any point in the filter/variant
chain.
Fixes #247
2022-08-12 09:09:09 -03:00
Salvador E. Tropea
3a5042ea96
Simplified the tests
2022-06-10 19:55:13 -03:00
Salvador E. Tropea
e15f18de2c
Simplified the tests initialization
...
- Now output dirs are named after the test function
2022-06-10 14:01:56 -03:00
Salvador E. Tropea
bb6e962f3d
Internal BoM: Added customizable extra info after the title
...
Closes #199
2022-05-20 19:08:20 -03:00
Salvador E. Tropea
5bcedf4c7a
Fixed: missing adapted test in last commit
2022-05-20 07:56:20 -03:00
Salvador E. Tropea
15b2075c96
Fixed B011 Do not call assert False
2022-02-17 16:37:01 -03:00
Salvador E. Tropea
c8d131fe11
Fixed C416 Unnecessary list comprehension - rewrite using list().
2022-02-17 16:32:16 -03:00
Salvador E. Tropea
6281a40335
Fixed spelling
2022-02-16 19:56:04 -03:00
Salvador E. Tropea
24ba23d203
Separated YAML tests that makes reference to SCH files
...
- Avoiding KiCad 5 and 6 mixes
2022-01-10 20:48:11 -03:00
Diego Capusotto
e70172c83f
Skipped `test_int_bom_missing_lib` test for v6
...
- Schematics are self-cointained now, there is no point in checking
libs
2021-12-17 15:44:53 -03:00
Diego Capusotto
71c7150baa
Added support for \n and \t to text* options of join
...
Related to #108
2021-12-14 17:45:10 -03:00
Salvador E. Tropea
995219a8ea
Added option to add text to the `join` in the internal BoM
...
Related to #104
2021-12-01 18:07:41 -03:00
Salvador E. Tropea
49ea1bb62a
Internal BoM: `count_smd_tht` option to compute SMD/THT stats.
...
Closes #113
2021-11-22 14:34:07 -03:00
Salvador E. Tropea
55277a550f
More KiCost integration in KiBoM.
...
- Also added level and comment to columns in the XLSX BoM output.
- Now user columns can be added to the KiCost sheet.
- The "Colors" sheet now includes KiCost colors
- The KiCost column names are more coherent with our names
- Style colors affects the KiCost colors
- About message includes KiBot version
- Header layout is also more coherent
- use_alt, number, max_col_width and ref_separator options are passed
to KiCost
2021-04-25 09:29:56 -03:00
Salvador E. Tropea
1290bb6995
New KiCost variant style.
...
- New internal filters `_var_rename_kicost` and `_kicost_dnp`.
- New `skip_if_no_field` and `invert` options to the regex used in the
generic filter.
2021-03-30 09:37:36 -03:00
Salvador E. Tropea
afe80052b4
Added a new filter `var_rename_kicost`
...
Is very similar to `var_rename` with a few differences that makes it
suitable to emulate the KiCost field rename mechanism.
2021-03-25 12:57:26 -03:00
Salvador E. Tropea
01291ebe63
Added field rename filter.
...
Including an internal version to emulate KiCost behavior.
2021-03-23 13:20:26 -03:00
Salvador E. Tropea
40bd7c24f2
Added support for KiCost's subparts
2021-03-19 19:41:46 -03:00
Salvador E. Tropea
48b1eafafc
Added test for debug stats in BoM output.
2021-02-03 12:49:57 -03:00
Salvador E. Tropea
3d5547f6c6
Changed the way we get the target test directory.
...
- Pytest 6 removed the old global mechanism.
- Now using a `fixture`
2021-02-01 11:16:33 -03:00
Salvador E. Tropea
c4c33af680
Added some compress tests.
...
Covers zip, tr.bz2 and rar creation for internal BoM, position and
gerber files.
2021-01-27 16:12:46 -03:00
Salvador E. Tropea
01459ce85e
Added tests for merged BoMs for HTML, XML and XLSX formats.
2021-01-27 12:22:03 -03:00
Salvador E. Tropea
f279e7319e
Added test for a BoM from multiple projects.
2021-01-27 11:51:26 -03:00
Salvador E. Tropea
86b1c13790
Now information messages go to stdout (not stderr).
...
Debug, warning and error messages still use stderr.
2021-01-22 17:17:41 -03:00
Salvador E. Tropea
65833dc333
Internal BoM: The "Quantity" column no longer includes the DNF/C status.
...
- This status was moved to a separated column named `Status`.
- You can join both columns if you want.
Some people pointed out that adding characters to the qty column prevents
computations applied to the CSV files.
2021-01-12 15:21:34 -03:00
Salvador E. Tropea
9a1e1f39e7
Internal BoM: added `no_conflict` option.
...
Used to exclude fields from conflict detection.
2021-01-05 12:09:29 -03:00
Salvador E. Tropea
007fc36d1e
Fixed the components fields reset mechanism.
...
My previous approach was incomplete.
2020-12-23 18:47:11 -03:00
Salvador E. Tropea
9f8ecff5d1
Added support to rename fields matching the variant to value.
2020-12-23 12:11:39 -03:00
Salvador E. Tropea
204ad189de
Changed how variant field renamer is implemented.
...
- Now is a separated filter type (`var_rename`).
- Now all variants support a `pre_transform` filter list.
- An internal `_var_rename` filter is defined (default).
2020-12-23 10:19:23 -03:00
Salvador E. Tropea
986f0c7157
KiBoM variants: support to field overwrite according to variant
2020-12-18 15:39:58 -03:00
Salvador E. Tropea
351e734dd6
Fixed long line (flake8)
2020-12-09 13:02:51 -03:00
Salvador E. Tropea
1248e92b95
Fixed Internal BoM separator wasn't applied when using `use_alt`
...
From the SchrodingersGat/KiBoM#145 PR.
2020-11-11 14:32:20 -03:00
Salvador E. Tropea
adf6c7a5b1
Modified tests to keep kibom-variant_3.pro
2020-10-24 17:22:08 -03:00
Salvador E. Tropea
1aee407cb9
Fixed KiBom variants special cases.
...
When using multiple variants and a components used more than one,
specifying oposite rules.
2020-10-09 16:00:52 -03:00
Salvador E. Tropea
27e4c23236
Added support for reference separator in BoMs.
...
So you can get things like "R1, R2, R3"
From the following PR: SchrodingersGat/KiBoM#139
by @n0dyjeff
2020-09-19 17:35:31 -03:00
Salvador E. Tropea
257b9fdd3f
Added tests for global and command line variant selection.
2020-09-12 08:24:47 -03:00
Salvador E. Tropea
b03b56ae5d
Added more coherence to the variants/filters.
...
- Now they behave more coherently across outputs.
- Component status is explicitly reset, so having a variant + filter
behaves in a more consistent way. Even when this isn't the
recommended use.
- Virtual components are handled by the exclude filter.
- Moved code to modify the PCB to VariantOptions.
- Added a real virtual component to the tests, not a ridiculous case.
2020-09-08 20:01:16 -03:00
Salvador E. Tropea
9558f7cf45
Added test for rogue component in PCB.
2020-09-02 15:16:23 -03:00
Salvador E. Tropea
42562185ea
Added filter options using PCB attributes.
...
KiCad 6 will break this, we'll see how to adapt.
2020-09-02 14:48:26 -03:00
Salvador E. Tropea
e0de652105
Added more tests for the filters and variants.
2020-09-01 18:49:38 -03:00
Salvador E. Tropea
0f0aa71baa
Added more tests for the filters and variants
2020-08-30 11:55:35 -03:00
Salvador E. Tropea
c0a1867dd5
Added support for filters to the internal BoM generator.
...
- Now we can configure more details, like the DNC.
- We can also mix KiBoM and IBoM strategies.
- Adapted the test examples that used filtering.
2020-08-29 17:41:57 -03:00
Salvador E. Tropea
249caad348
Implemented the IBoM variants styles.
...
The core functionality is now tested in the internal BoM.
The IBoM output needs adjust to allow using the variants with it.
2020-08-28 20:12:21 -03:00
Salvador E. Tropea
0bdce78004
Implemented the new variants mechanism in the internal BoM.
2020-08-28 16:49:20 -03:00
Salvador E. Tropea
45fde666be
Added test for the warning about extra spaces in fields.
2020-08-27 18:04:22 -03:00
Salvador E. Tropea
140a45fdc6
Fixed variants BoM logic.
...
The variants logic for BoMs when a component resquested to be only
added to more than one variant.
This is related to SchrodingersGat/KiBoM#136 issue.
2020-08-24 10:53:56 -03:00
SET
89914443f0
Renamed the kiplot module as kibot.
...
Also added src/kibot script.
Updated the documentation and Debian packaging.
The default extension for config files now is .kibot.yaml
2020-08-16 22:04:03 -03:00
SET
991f070e9f
Added variants test.
2020-08-15 20:33:09 -03:00
SET
9681064093
Fixed flake8 details
2020-08-15 11:06:45 -03:00