Salvador E. Tropea
a066887744
Modified the macros examples to make them as similar as possible.
...
So a diff between them is minimal.
2020-06-23 11:16:58 -03:00
Salvador E. Tropea
bcb35e90ef
Renamed test_mymacros.py to try_mymacros.py for pytest
...
They aren't regression tests.
2020-06-23 10:36:10 -03:00
Salvador E. Tropea
458d4ba0a9
Removed flake8 issues
2020-06-23 10:27:11 -03:00
Salvador E. Tropea
d68376ba2e
Added a small test to gerbers output.
...
Currently commented.
2020-06-23 10:26:29 -03:00
Salvador E. Tropea
6859f89c9c
Copied the experiments implementation to the macros file
...
Is more robust
2020-06-23 10:25:29 -03:00
Salvador E. Tropea
2bb2bd2034
Added preliminary tests to add "automagic" documenation for the output options
2020-06-22 19:47:37 -03:00
Salvador E. Tropea
20d79d58ad
Restricted the YAML support to safe features.
...
I think it doesn't change anything important, but looks sensitive.
2020-06-21 11:58:35 -03:00
Salvador E. Tropea
734d2b9c35
Added an evaluation of "Strict YAML" to replace "PyYAML".
...
Conclusion: not worth the effort
2020-06-21 11:57:03 -03:00
Salvador E. Tropea
19023ef4e6
Added tests to cover 100% of kiplot/config_reader.py
...
Mostly parser errors.
2020-06-19 23:38:09 -03:00
Salvador E. Tropea
6ed99d8515
Tests adapted to the new error message strings.
2020-06-19 16:00:16 -03:00
Salvador E. Tropea
7679604646
Major code refactor
...
Pro:
- Much easier to add new outputs and pre-flights
- All options are optional
- Much better configuration syntax check
- Access to data is simpler
Cons:
- Much more source code files
- I focused on one application, not multiple instances running on the same
process.
2020-06-19 15:54:55 -03:00
Salvador E. Tropea
e34952a2a2
Fixed HPGL YAML example
...
Used an option that doesn't really apply to HPGL.
2020-06-19 15:51:08 -03:00
Salvador E. Tropea
9dccf7113f
Generic config example update and cleanup
2020-06-19 15:48:16 -03:00
Salvador E. Tropea
c2c221151b
Bumped version to 0.4.0.
2020-06-17 15:38:49 -03:00
Salvador E. Tropea
b8f8ed53bd
Added a mechanism to avoid problems with ibom
...
This new mechanism should be accepted in the upstream.
So we will be able to use unpatched ibom.
2020-06-17 15:34:43 -03:00
Salvador E. Tropea
7136662cb3
Merge pull request #2 from INTI-CMNB/step_output
...
3D STEP output added
2020-06-15 16:36:39 -03:00
Salvador E. Tropea
7df1e9fe87
Added documentatio for the new output
2020-06-15 16:18:40 -03:00
Salvador E. Tropea
3382b4fe7b
Fixed the way options with arguments are passed to kicad2step.
2020-06-15 15:58:08 -03:00
Salvador E. Tropea
48fcb39f8d
Added more variety to STEP options.
...
To cover more core during the tests.
2020-06-15 15:18:23 -03:00
Salvador E. Tropea
ef64a57697
Documented the fact that current kicad2step program never fails.
...
Well, it fails, but returns 0.
2020-06-15 15:17:09 -03:00
Salvador E. Tropea
c2a735e9a6
For some reason Python sys.path vector has a limit and I was abusing it.
...
Each test module setups the path to find the needed modules, but didn't check
if it was necesary. Creating a long path that finally started to fail.
2020-06-15 15:14:53 -03:00
Salvador E. Tropea
fc19d2c6c0
Added tests for errors parsing STEP files generation.
2020-06-15 13:40:30 -03:00
Salvador E. Tropea
685fef2ef6
Added test for STEP files generation
2020-06-15 13:39:59 -03:00
Salvador E. Tropea
8374238b6d
Added STEP configuration examples.
2020-06-15 13:23:41 -03:00
Salvador E. Tropea
ceb25aa1e1
Added an auxiliar axis to bom.kicad_pcb example
...
To test the 3D STEP file generation.
2020-06-15 13:21:58 -03:00
Salvador E. Tropea
2766b5afcb
Added STEP file output
2020-06-15 13:21:24 -03:00
Salvador E. Tropea
8fbcffba0f
Bumped version to 0.3.0
2020-06-14 15:28:25 -03:00
Salvador E. Tropea
0d9256fb24
The 'check_zone_fills' option is now independent of 'run_drc'
...
Implemented in a different way.
For all internal commands now we use Python bindings to fill the zones as
suggested by @arikrupnik in johnbeard/kiplot#11
For 'print_pcb' now we ask KiCad to do it before printing (needs v1.4.1)
2020-06-14 15:12:56 -03:00
Salvador E. Tropea
406a9ab374
Fixed gzip exception name.
2020-06-14 12:02:15 -03:00
Salvador E. Tropea
4101f69cd4
Added support for compressed YAML files.
2020-06-14 11:05:08 -03:00
Salvador E. Tropea
61f1ebbab2
Better debug info, fixed errors and no .kicad_pcb dependency
...
- When a BoM operation fails now we show the output of the child process.
(Only enabled when using debug verbosity)
- The error levels 1 and 2 were overlapped with internal Python codes.
- Now we delay the PCB load until we really need it. Which could be never.
2020-06-12 15:10:56 -03:00
Salvador E. Tropea
aef19e31c7
Bumped version to 0.2.5
2020-06-11 13:10:45 -03:00
Salvador E. Tropea
cef002b7a3
Merge pull request #1 from INTI-CMNB/drc_errors
...
DRC/ERC error filters closes johnbeard/kiplot#18
2020-06-11 13:01:06 -03:00
Salvador E. Tropea
157e23c998
Documented some regex tips from the discussion here: johnbeard/kiplot#18
2020-06-11 12:51:58 -03:00
Salvador E. Tropea
a403e1b13b
Documented the filters option.
2020-06-10 10:57:22 -03:00
Salvador E. Tropea
fc4aff380f
Now pythonapp.yml is also triggered for the tags
2020-06-09 14:10:50 -03:00
Salvador E. Tropea
16e587f7c6
Added new feature to the changelog.
2020-06-09 14:07:21 -03:00
Salvador E. Tropea
2ab3748575
Removed master filter for pythonapp.yml workflow
2020-06-09 13:59:45 -03:00
Salvador E. Tropea
9983bc05bf
Added test for the filters feature
2020-06-09 13:56:17 -03:00
Salvador E. Tropea
c390ec3cb8
Added support for kicad-automation-tools v1.4.0 DRC/ERC filters
2020-06-09 13:49:04 -03:00
Salvador E. Tropea
9e3865d881
Removed another redundant makedirs.
2020-05-26 19:28:14 -03:00
Salvador E. Tropea
46248a6e2e
Removed redundant checks to create the output dir.
...
They became useless after adding it to _configure_output_dir
2020-05-26 19:15:10 -03:00
Salvador E. Tropea
be7a613fc8
Removed os import on plot_config.py. No longer used.
2020-05-26 19:14:10 -03:00
Salvador E. Tropea
831b6e3418
Added test and covergage badges to README.md
2020-05-26 15:03:40 -03:00
Salvador E. Tropea
ee7de07ee4
Removed impossible error condition
2020-05-26 14:55:04 -03:00
Salvador E. Tropea
6c5c33be12
Excluded from coverage an internal error.
...
Is code that gets executed only if we are in the middle of an
implementation.
2020-05-26 14:52:54 -03:00
Salvador E. Tropea
9f60eca419
Removed two PlotConfig members formerly used for testing.
2020-05-26 14:45:19 -03:00
Salvador E. Tropea
3b7bfe40f7
Set the domain for log messages so we get "kiplot..." and not "kilog...."
2020-05-26 14:33:34 -03:00
Salvador E. Tropea
5883b1a616
Added test for command line -q (quite)
2020-05-26 14:22:58 -03:00
Salvador E. Tropea
ee6238a2ce
Added test for iBoM without options.
2020-05-26 14:01:52 -03:00