Commit Graph

1695 Commits

Author SHA1 Message Date
Salvador E. Tropea ebf4d363a3 [KiRi][Added] SVG icon 2024-01-25 09:22:06 -03:00
Edward Longman 08b0c488f4
Add extra backticks to basename and filename to prevent tex recognition 2024-01-24 15:37:53 +00:00
Salvador E. Tropea 2ff4035c94 [Dependencies] Added message about KiBot repo
For packages that aren't official
2024-01-24 11:17:33 -03:00
Salvador E. Tropea f5a0231fb4 [Dependencies][Changed] The roles member
- Each dependency can really have 1 role (even when plural)
- The registered dependency can have multiple roles
- The code assumed the general case, but is impossible
2024-01-24 10:35:24 -03:00
Salvador E. Tropea 9c449f3893 [KiKit Present] Removed dead code 2024-01-23 13:13:30 -03:00
Salvador E. Tropea 1763f809c7 [KiKit Present][Fixed] Problems using pcb from output and no prj 2024-01-23 13:12:23 -03:00
Salvador E. Tropea 122cc945d7 [Rotation Filter][Added] More debug for level 2+
The list of offsets and rotations after processing all
2024-01-22 11:14:06 -03:00
Salvador E. Tropea bac3c8cd16 [3D models][Download][Fixed] Name of the other model
Whe using a suffix

See #567
2024-01-22 09:58:43 -03:00
Salvador E. Tropea 4d7847e145 [Copy Files][Project][Fixed] Check for the schematic
To inform if it isn't there
2024-01-19 13:01:14 -03:00
Salvador E. Tropea bb936aedaa [KiKit][DOCs] Mentioned 1.4.0 release 2024-01-19 10:55:32 -03:00
Salvador E. Tropea 8deb71ccea [Config Reader] Just moved code to make it easier to maintain
To ensure VALID_IMPORT is in sync
2024-01-19 10:40:01 -03:00
Salvador E. Tropea 8cdd6aa0be [Tests][Import][Added] Various errors checks
- Fixed one of the messages
- Added potential fix for a typo
2024-01-19 10:19:37 -03:00
Salvador E. Tropea 3d8146b075 [PCB Print][Fixed] Realistic solder mask
- The scaled computed center for current tools needs values without
  rounding
2024-01-18 13:35:55 -03:00
Salvador E. Tropea 2385013bdd [DRC/ERC][Added] Individual directory for reports
- Also joined ignore_unconnected and erc_warnings options
- Deprecated separated options

Closes #562
2024-01-18 13:06:13 -03:00
Salvador E. Tropea c04f7e52c8 [PCB Print][Added] Options to mirror the text
In the user layers when creating a mirrored page

Closes #561
2024-01-18 10:15:11 -03:00
Salvador E. Tropea c04067d603 [Added] More information about wrong configs
When trying to use more than one YAML document for definitions

See #559
2024-01-18 07:40:30 -03:00
Salvador E. Tropea 1475b5894c [Update XML] Fixed missing import and added test case
For the "board only" check
2024-01-17 12:58:05 -03:00
Olliver Schinagl 3fc1947fcf
pre_update: Honor 'board_only' (Not in schematic) footprint property.
It is quite common, to add footprints to a PCB, without adding it to the
schematic. Think Logo's or 'duplicate' connectors etc. KiCad has a flag
called 'Not in schematic' for this purpose. Lets check if this flag is
set in the PCB, and ignore any errors from this if applicable.

Fixes: #558.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-01-17 13:03:46 +01:00
Salvador E. Tropea bc697dc19b [Populate][Fixed] Use of Blender as renderer 2024-01-16 08:39:58 -03:00
Salvador E. Tropea 0c38aa2c64 [Fixed] Config can also raise PlotError
So now is catched
2024-01-16 07:31:59 -03:00
Salvador E. Tropea dedf2970aa [Templates][Modified] P-Ban gerbers to use *copper*
- There is no difference for modern KiCad (just for KiCad 5)
- Avoids warnings about extra inner layers
- Enables the use of more than  8 layers

Closes #554
2024-01-16 07:22:47 -03:00
Salvador E. Tropea 0ecb546a8c [Blende Export][Fixed] Issues with animations
Missing order computation in some steps, like auto-crop
2024-01-15 13:38:37 -03:00
Olliver Schinagl 8b58759f3d
[Diff][Fixed] Worktree's can leave junk branches
When kibot creates a worktree, which in some cases creates a new branch
or uses an existing branch. This branch may be old and stale, and often
not what is expected.

Instead, avoid the issue entirely, by never creating anything that could
need cleaning up, by creating a detached worktree.

Fixes #556

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-01-15 16:42:05 +01:00
Salvador E. Tropea db8acd1258 [Quick Start][Fixed] Problems scanning dirs without enough privileges 2024-01-15 11:17:39 -03:00
Salvador E. Tropea 0edf374670 [Quick Start][Fixed] Problems with KiCad 6+ files using KiCad 5 names for layers 2024-01-15 11:15:45 -03:00
Salvador E. Tropea 10b9850517 [Colored resistors][Fixed] Problems when no cache is there
Fixes #553
2024-01-15 10:39:27 -03:00
Salvador E. Tropea b78c659141 [Layers][Added] Mechanism to specify inner/outer copper layers 2024-01-15 10:29:30 -03:00
Salvador E. Tropea 8a69f0349c [Diff][Fixed] Problems when trying to use an already existent worktree
Fixes #555
2024-01-15 09:46:25 -03:00
Salvador E. Tropea b752882091 [Tests][Add] Simple test for EasyEDA download 2024-01-12 12:51:59 -03:00
Salvador E. Tropea 2c91fd79bc [3D][Fixed] THT resistors
Problem introduced by pre-commit tests
2024-01-11 09:44:57 -03:00
Salvador E. Tropea 7bfd46e9d6 [PCB_Print] Changed searchable text strategy
Moved the text to the top of the SVG

Fixes #552
2024-01-11 09:19:51 -03:00
Salvador E. Tropea 58641e2bb4 [PDF_Print][Fixed] Text not searchable
- When using newer rsvg-convert tools i.e. 2.54.7
- Previous versions discarded 100% transparent text
- New versions discards text with any level of transparency

Fixes #552
2024-01-10 13:45:48 -03:00
Salvador E. Tropea 2ccb54b04e [Diff][Added] New mode where we can control the added/removed colors
Also fixed the "zones" options help message, altered while creating
a base class
Closes #551
2024-01-10 10:30:27 -03:00
Salvador E. Tropea 9ea3e39481 [Diff][Fixed] The new logic to check for SCH/PCB 2024-01-09 11:20:10 -03:00
Salvador E. Tropea edafc47d0b [KiRi] Check we have the SCH and PCB in the repo
- At least one commit
2024-01-09 10:53:55 -03:00
Salvador E. Tropea 957968fe58 [Tests] Don't cover windows code 2024-01-09 09:13:47 -03:00
Salvador E. Tropea 0af0f93a71 [Diff/KiRi] Moved common code to a base class 2024-01-09 08:14:05 -03:00
Salvador E. Tropea e64b3864b4 Unified the "run_command" mechanism
- Now most code calls kiplot.run_command
2024-01-08 11:25:48 -03:00
Salvador E. Tropea 7c7d3aff0b [CLI][Added] defs-from-env allows using environment vars for substitution
Closes #549
2024-01-08 10:31:15 -03:00
Salvador E. Tropea 2ba5b7101c Unified some *dont_stop* cases 2024-01-05 13:18:03 -03:00
Salvador E. Tropea 190dc0a389 Unified the exit point for errors running external commands 2024-01-05 12:52:46 -03:00
Salvador E. Tropea e9733d9559 [DOCs] Made the *type* more explicit in outputs help 2024-01-05 11:06:18 -03:00
Salvador E. Tropea 6f7d425ee1 [flake8] Fixed reported issues 2024-01-05 09:33:42 -03:00
Salvador E. Tropea d7392d59ec [Fixed] Spell errors 2024-01-05 09:09:58 -03:00
Salvador E. Tropea 950a875c33 [flake8] Optimized use of map+lambda 2024-01-05 09:02:01 -03:00
Salvador E. Tropea 39e9d5c28c [Fixed] Line commented for tests 2024-01-05 08:34:32 -03:00
Salvador E. Tropea 568510ecd7 [Fixed] Support list of errors (not just tuple) 2024-01-05 08:17:04 -03:00
Salvador E. Tropea 9b87aabd9b [Fixed] KiPlotConfigurationError is more specific than KiPlotError 2024-01-05 07:59:10 -03:00
Salvador E. Tropea d5fa776dbf [Blender Export][Fixed] Make sure output subdirs exists
- Blender seems to be able to create just 1 level
2024-01-05 07:28:40 -03:00
Salvador E. Tropea ab17559a29 [Blender export][Fixed] Problems when no point of view was defined
- The default view wasn't translated.
- Now translated
- Now the render script defaults to 0 rotation if the view is unknown
Fixes #546
2024-01-05 07:04:58 -03:00
Salvador E. Tropea 7ec3a1379c Unified some errors details
- Non-critical errors will stop when using -W
- More stack traces on error
- More centralized exit
2024-01-04 13:58:13 -03:00
Salvador E. Tropea 6e914b0959 [CLI][Fixed] Made -D and -W mutually exclusive 2024-01-04 12:40:58 -03:00
Salvador E. Tropea 2ea50114ea Removed log debug "error" 2024-01-04 12:40:38 -03:00
Salvador E. Tropea 5bf6ae7c5d [CLI] Added option to stop on warnings
Closes #545
2024-01-04 11:16:55 -03:00
Salvador E. Tropea e9ddb02889 [Diff][Fixed] We need to also pass --zone to the diff stage 2024-01-04 11:15:51 -03:00
Salvador E. Tropea d1e6018c14 [KiRi] Bumped KiDiff version dep to 2.5.1
Needed for zones stuff
2024-01-04 11:15:01 -03:00
Salvador E. Tropea ed84808566 [Diff][Added] Option to un/fill zones before doing the comparison
See #391
2024-01-03 13:17:18 -03:00
Salvador E. Tropea db6dc95acb [KiRi] Reserved one position for the legacy "txt_icon" 2024-01-03 13:14:23 -03:00
Salvador E. Tropea c4f8b1cc33 [KiRi][Fixed] Description
Was a copy and paste from Diff
2024-01-03 08:11:23 -03:00
Salvador E. Tropea cad31ee240 [KiRi][Added] Test for KiAuto 2024-01-03 08:10:50 -03:00
Salvador E. Tropea af2aad1659 [Added] Autodetection of .kibot.yml files
- So people using CI/CD can name all YAML files `.yml` (DOS legacy?)
2024-01-02 13:33:55 -03:00
Salvador E. Tropea a48d014541 [Blender Export][Adde] Option to disable the denoiser
- Enables the use of old hardware and Debian packages
- You must be extremelly patient

Closes #539
2024-01-02 13:30:49 -03:00
Salvador E. Tropea d074294ea6 [Blender Export][Added] Subdirectory for each output
Closes #541
2024-01-02 12:51:43 -03:00
Olliver Schinagl 493c74abff kiplot: Allow output dir to exist
When running kibot with `--out-dir /my_path/reports`, contrary to other
means of running kibot, we check if a path exists. However, this seems
to fail with for example symlinks, resulting in the following error.

Using SCH file: 1.kicad_sch
- 'Records information about the current run.' (info) [info]
Traceback (most recent call last):
  File "/usr/bin/kibot", line 33, in <module>
    sys.exit(load_entry_point('kibot==1.6.3', 'console_scripts', 'kibot')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/kibot/__main__.py", line 520, in main
    generate_outputs(outputs, args.target, args.invert_sel, args.skip_pre, args.cli_order, args.no_priority,
  File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 527, in generate_outputs
    _generate_outputs(outputs, targets, invert, skip_pre, cli_order, no_priority, dont_stop)
  File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 517, in _generate_outputs
    run_output(out, dont_stop)
  File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 418, in run_output
    out.run(get_output_dir(out.dir, out))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 366, in get_output_dir
    os.makedirs(outdir)
  File "<frozen os>", line 225, in makedirs
FileExistsError: [Errno 17] File exists: '/my_path/reports'

Instead of manually determining things, lets just use os.makedirs to
handle this with the `exists_ok` argument, as we do elsewhere.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-01-02 10:53:27 -03:00
Salvador E. Tropea e4614e7603 Now we use the realpath instead of the user provided name
Helps to avoid unpleasant surprises like in the #544 case

Closes #544
2024-01-02 10:48:06 -03:00
Salvador E. Tropea 0feb739edf [Quick Start][Changed] To use only projects
- This avoids problems for sub-sheets in separated dirs.
2024-01-02 10:19:20 -03:00
Salvador E. Tropea e4b855e410 [KiRi] Implemented the quick-start example 2024-01-02 09:56:54 -03:00
Salvador E. Tropea 33bd72073b [KiRi] Renamed the branch option
- Now called revision
- It is in fact a *revision-range*
2023-12-29 13:19:32 -03:00
Salvador E. Tropea 2a8c699908 [KiRi] Implemented the "all" layers case 2023-12-29 13:07:36 -03:00
Salvador E. Tropea 1f62308b8b [KiRi] Implemented the targets
For Makefiles and Compress
2023-12-29 11:27:20 -03:00
Salvador E. Tropea 23427f75e1 [Compress][Added] Better subdirs support for outputs
- Multiple dirs
- Recursive subdirs
2023-12-29 11:25:17 -03:00
Salvador E. Tropea 0e37d40d2f [KiRi][Added] Now we can choose the branch
Also added check to see if we have at least 2 commits
2023-12-29 10:50:21 -03:00
Salvador E. Tropea 7f8828ad3f [KiRi][Fixed] Missing icon for not modified commits 2023-12-29 10:49:30 -03:00
Salvador E. Tropea 303bedb88f [KiRi] Restored damaged code-branch-solid.svg 2023-12-29 10:47:41 -03:00
Salvador E. Tropea 708b9aeb65 [KiRi] Implemented the maximum commits option 2023-12-29 09:36:26 -03:00
Salvador E. Tropea 75697ec9c5 [KiRi] Added message when server is offline 2023-12-29 09:26:11 -03:00
Salvador E. Tropea af8e0d6618 [KiRi] Diff canvas background configurable 2023-12-29 08:56:44 -03:00
Salvador E. Tropea 8f8ca67458 [KiRi] Simplified the layout
- No more web/ and redirect.html
- No more favicon.ico (embedded)
- Now we check for blank.svg, that now is simplified
2023-12-28 14:06:50 -03:00
Salvador E. Tropea c95d6a47c4 [KiRi] Now we generate a self contained page
- Only the real data (and the blank.svg) are outside.
- Failed to also include the blank.svg
2023-12-28 13:59:17 -03:00
Salvador E. Tropea 1ca7c9d94c [KiRi] Moved the commit point icon to a separated file 2023-12-28 11:28:03 -03:00
Salvador E. Tropea 28417a8501 [KiRi] Compacted the CSS
Avoiding to repeat the SVG to icon trick
2023-12-28 10:58:34 -03:00
Salvador E. Tropea 6f57d5d0d4 [KiRi] Moved the commits list style to the CSS 2023-12-28 10:04:03 -03:00
Salvador E. Tropea 80f44e21b9 [KiRi] Avoid downloading utils, now included
- Removed fontawesome, really needed?
- Added copies for:
  - jquery (needed by bootstrap :-(
  - bootstrap (JS and CSS)
  - svg-pan-zoom
2023-12-26 13:57:47 -03:00
Salvador E. Tropea cf2a0ab495 [KiRi] Removed the use of iconify
- Now the icons are included in the images folder
2023-12-26 13:46:11 -03:00
Salvador E. Tropea 7b520924e8 [KiRi] Remove the use of mouse trap 2023-12-26 12:33:42 -03:00
Salvador E. Tropea b6b5bd7af8 [KiRi] Refactorized the JS code
- Avoid scaning the DOM all the time
- Rely on status in JS vars
- Remove the jQuery dependency
2023-12-22 13:39:58 -03:00
Salvador E. Tropea 341dc9e6e9 Merge branch 'dev' into kiri_integration 2023-12-22 08:29:17 -03:00
Salvador E. Tropea 8c1fafa9b9 [Added] Warning about KiCad Bug #16418
See #533
2023-12-21 13:04:51 -03:00
Salvador E. Tropea e1ccc99563 [EasyEDA][Fixed] Problems with some step files
- With custom encodings, not UTF-8
- Now handled as binary objects
2023-12-20 12:27:39 -03:00
Salvador E. Tropea 97f67e5bca [DOCs][PCB Print] Added remainder about alpha channel
See #531
2023-12-20 10:28:10 -03:00
Salvador E. Tropea b432a64709 [Fabrication Templates] Move files to the archive
- Is the most common case, so now we move (instead of copy)
- Can be configured using _KIBOT_COMPRESS_MOVE
- Left the JLCPCB BoM and Position outside, they must be uploaded
  separately

Closes #537
2023-12-18 20:54:26 -03:00
Salvador E. Tropea c49c509523 [Worksheet] Avoid warnings for v20220228
- Seems to be fully supported
- We added plenty of undocumented stuff on 2022/04/15
- They still undocumented today

See #532
2023-12-18 19:09:19 -03:00
Salvador E. Tropea bf5e37bc13 [PCB Print][Fixed] Regression issue
- Reverts 8194760
- Adds 0972914f to the removed code
2023-12-18 19:03:09 -03:00
Salvador E. Tropea 0972914f08 [PCB Print][Fixed] Missing edge cuts in the list of visible layers
- When forced
- This is needed and helps to avoid hitting a bug in KiCad

Fixes #532
2023-12-18 18:48:03 -03:00
Salvador E. Tropea 8194760ff6 [PCB Print] Removed redundant code 2023-12-18 18:47:34 -03:00
Salvador E. Tropea 53aa79c29b [PCB Print] Avoid warnings about SHEETPATH
- Not used for PCBs
- KiCad defines it as empty

See #532
2023-12-18 18:46:05 -03:00
Salvador E. Tropea e72bbd08a3 [Blender Export] Removed the "experimental" warning 2023-12-18 18:45:12 -03:00
Salvador E. Tropea 6c336371bd [Diff][Fixed] Problems with `current` mode
- didn't apply global variants
- didn't honor KiCad native DNP flags, they need a filter
2023-12-18 10:36:51 -03:00
Salvador E. Tropea 4745baccc4 [ERC][KiCad 7][Fixed] Problems when creating a report without ext
- Workaround for KiCad 7 explicitly creating a different file

Fixes #529
2023-12-14 08:06:31 -03:00
Salvador E. Tropea 7578ee4ab8 [KiRi] Moved style from the JS to the CSS
- Most of the style was moved
- Colors aren't hard coded anymore, fetched from the page
2023-12-12 13:10:31 -03:00