Salvador E. Tropea
78425d7870
Updated mcpyrate and applied "with a:" new feature.
2020-10-23 22:53:53 -03:00
Salvador E. Tropea
b08b1104f1
Modified to use fix_locations instead of a manual loop.
2020-10-23 19:50:13 -03:00
Salvador E. Tropea
d72c4b446b
Adapted _do_wrap_class_register to quasiquotes.
2020-10-23 19:31:48 -03:00
Salvador E. Tropea
cdfb52a569
Added a fallback for the case that colorama isn't available
2020-10-23 19:30:55 -03:00
Salvador E. Tropea
e39acf590d
Updated mcpyrate and the way `document` macro is defined.
...
Also updated the test macro.
2020-10-23 17:28:31 -03:00
Salvador E. Tropea
e4d54813d5
Added working quasiquotes implementation.
2020-10-20 14:20:45 -03:00
Salvador E. Tropea
5ce56b1a05
Updated mcpyrate
2020-10-20 14:20:09 -03:00
Salvador E. Tropea
ae8da88539
Testing the quasiquotes features of mcpyrate.
2020-10-19 12:20:53 -03:00
Salvador E. Tropea
9c876d5783
Removed dead code in macros.py
2020-10-17 16:51:17 -03:00
Salvador E. Tropea
d850bb8ffe
Merge pull request #19 from INTI-CMNB/try_mcpyrate
...
Replace mcpy by mcpyrate
2020-10-17 15:28:40 -03:00
Salvador E. Tropea
1c26dd5f66
Added note about pip installing at system level.
...
Recommended manual cache generation.
2020-10-17 15:19:09 -03:00
Salvador E. Tropea
52a29c26d7
Implemented `de_activate` in mcpyrate.activate
...
This disables macros after loading the plug-ins.
Now the timing is 160 ms, 30% faster than `mcpy` and 4 times faster
than `macropy`
2020-10-17 15:01:21 -03:00
Salvador E. Tropea
a62c3440e3
Disabled the cache related tests, no longer apply.
2020-10-17 14:30:23 -03:00
Salvador E. Tropea
f96f56f0ee
Modified the Debian postint script for mcpyrate.
...
Now we generate the cache files running kibot after installation.
2020-10-17 14:28:14 -03:00
Salvador E. Tropea
307e553534
Added more info to the plug-ins load fail.
...
Trying to see why it fails (not in my docker image?!)
2020-10-17 12:03:33 -03:00
Salvador E. Tropea
2d55859782
Code style fixes (flake8)
2020-10-17 12:03:06 -03:00
Salvador E. Tropea
4538163e7e
Removed all the code related to Python cache.
2020-10-17 12:01:52 -03:00
Salvador E. Tropea
dfc1b8e9be
Added target to run an individual test on the docker image.
2020-10-17 12:01:12 -03:00
Salvador E. Tropea
e3ae5e6284
Restored the disabled test_position
2020-10-17 11:58:58 -03:00
Salvador E. Tropea
7a16f28d70
Adapted cache tests to mcpyrate.
...
Using `mcpyrate` we don't need to worry about cache files.
2020-10-17 11:31:16 -03:00
Salvador E. Tropea
c29b5902c2
Enhanced the document macro coverage info.
...
- Recycled the s.value Str as @Technologicat suggested
- Added line number info to the target Name as I learned from the
experiments test,
2020-10-17 11:11:24 -03:00
Salvador E. Tropea
270816c97f
Added `mcpyrate` test case to experiments.
2020-10-17 11:10:16 -03:00
Salvador E. Tropea
5a24d72772
Updated mcpyrate, now the time is 260 ms, just 13% over mcpy
2020-10-17 10:17:25 -03:00
Salvador E. Tropea
43278717e9
Updated mcpyrate, now the cache can be enabled.
...
This compensates most of the speed penalty:
macropy: ~650 ms (has cache)
mcpyrate no cache: 440 ms
mcpyrate: 290 ms
mcpy: 230 ms (no cache)
2020-10-17 09:48:07 -03:00
Salvador E. Tropea
8dd92022f8
Updated the scripts to meassure the speed.
2020-10-16 20:23:10 -03:00
Salvador E. Tropea
17aafd88a0
Adapted the speed meassurement script
2020-10-16 19:26:07 -03:00
Salvador E. Tropea
087ef2bbb0
Trying to fix coverage details using copy_location
2020-10-16 18:58:51 -03:00
Salvador E. Tropea
17e75236da
KiCad 6 no longer has SetPlotPadsOnSilkLayer
2020-10-16 18:40:20 -03:00
Salvador E. Tropea
fec0091712
Added support for KiCad 6 to drill outputs.
...
I wonder why KiCad 6 doesn't provide a compatibility function for
GetAuxOrigin. The project seems to be trying to reduce the ammount
of code (removing old code) at the cost of breaking every existing
plug-in.
2020-10-16 17:04:37 -03:00
Salvador E. Tropea
92678bf3cc
Adapted all test_bom tests to run with KiCad 5.99.
...
Also simplified the context.TestContextSCH instantiation.
2020-10-16 16:42:17 -03:00
Salvador E. Tropea
ae9e889bc0
Added debug information to out_bom to detect the line numbers issue.
2020-10-16 16:32:24 -03:00
Salvador E. Tropea
7c7549e6d7
Changed mcpy by mcpyrate to test its functionality.
2020-10-16 15:32:00 -03:00
Salvador E. Tropea
e2a00a6f7d
Fixed test_bom_cfg_2, now includes the footprint
2020-10-15 19:37:34 -03:00
Salvador E. Tropea
d4a2d40593
Adapted some `bom` tests to pass with KiCad 5.99.
2020-10-15 18:58:10 -03:00
Salvador E. Tropea
395f2df3f0
Updated to include the footprints.
2020-10-15 18:56:10 -03:00
Salvador E. Tropea
235e4831a8
Avoid loading KiCad 6 schematics.
...
Waiting for the Python bindings.
2020-10-15 18:53:44 -03:00
Salvador E. Tropea
17dd1d1be6
Added support to detect KiCad 6 schematics.
2020-10-15 18:53:15 -03:00
Salvador E. Tropea
b535ebaeb2
Adapted the `test_filter_no_number_2` test
...
Now we expect an `error` not necesarily a `number`.
2020-10-15 17:28:33 -03:00
Salvador E. Tropea
4a97885495
Added support for KiCad 6 error filters.
2020-10-15 17:00:58 -03:00
Salvador E. Tropea
c80fc49b54
Added infraestructure to support KiCad 6 tests.
2020-10-14 18:03:18 -03:00
Salvador E. Tropea
cddf7c807d
Added directory for future KiCad 6 reference tests.
2020-10-14 16:55:55 -03:00
Salvador E. Tropea
9bb42eda9a
Added support for the new EDGE_MODULE name: FP_SHAPE
...
KiCad 6 is renaming part of the API without providing compatibility
aliases.
2020-10-14 16:08:21 -03:00
Salvador E. Tropea
0ebedc398c
Renamed ERC/DRC tests to run them individually.
2020-10-14 16:07:09 -03:00
Salvador E. Tropea
f5d9a69232
Updated the README and generic example
...
New mirror option.
2020-10-14 16:06:14 -03:00
Salvador E. Tropea
d2913f0bb4
Normalized the warning numbers to be 3 digits
2020-10-14 16:05:18 -03:00
Salvador E. Tropea
257a6ff2fa
Added support for --mirror pcbnew_do export option.
...
It currently works only for KiCad 5.99
2020-10-14 12:34:00 -03:00
Salvador E. Tropea
86ead74c27
Added KiBot warning filters.
...
- Closes #15
- This patch also changes the logging initialization, that was broken at
some recent point.
- Also adds tests to ensure the mechanism used to avoid repeated
warnings is working.
2020-10-12 16:31:47 -03:00
Salvador E. Tropea
c8e81a4668
Added numbers to all the warnings
2020-10-09 18:33:51 -03:00
Salvador E. Tropea
8605ccdea4
Moved @nerdyscout changes to README.md to the README.in file.
2020-10-09 18:32:53 -03:00
Salvador E. Tropea
80718531b8
Merge pull request #16 from nerdyscout/ci
...
use github actions
2020-10-09 16:33:35 -03:00