Olliver Schinagl
aa11e95b0b
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>
2023-12-25 12:33:08 +01: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
454557a089
[DOCs] Linked the GitHub actions readme to the main docs
...
- Also adjusted some small details
2023-12-20 10:38:26 -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
3724680c1e
Merge pull request #467 from sethkaz/sk/github-actions-guide
...
Add github actions readme
2023-12-20 10:04:59 -03:00
Salvador E. Tropea
25771e0449
[Tests] Forced
2023-12-20 08:36:50 -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
d341db0e78
[DOCs] Blender export no longer experimental
2023-12-18 20:53:53 -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
Salvador E. Tropea
5b64e55239
[KiRi][Fixed] icon-commit2/3 style
...
- Was in the ID
2023-12-12 13:09:45 -03:00
Salvador E. Tropea
5abf286c8b
[KiRi] Removed "text changed icon", not used
2023-12-12 11:18:03 -03:00
Salvador E. Tropea
c6c1e075dc
[KiRi] Removed layer colors from the CSS
...
- Not used
2023-12-12 11:14:35 -03:00
Salvador E. Tropea
6a380e3ddb
[KiRi] Moved style from HTML to CSS
2023-12-12 11:08:31 -03:00
Salvador E. Tropea
d073b155ef
[KiRi] Moved project data to a file
...
- No more need to touch the index.html
2023-12-12 09:41:50 -03:00
Salvador E. Tropea
ad3f8bb7d7
[KiRi] Moved commits HTML generation to the JS
...
- So we have a simpler and more reusable index.html
2023-12-12 09:02:11 -03:00
Salvador E. Tropea
9d9294fe76
[KiRi][Fixed] List of pages/sheets update
...
- Now the list also contains some status (added/removed) so we must
check the list AND the status remains to decide if the list must
be updated.
- Also removed the extra "onclick" for the layers.
2023-12-11 13:01:59 -03:00
Salvador E. Tropea
901c76b189
[KiRi][Added] Colors for added/removed sheets/layers
2023-12-11 12:30:00 -03:00
Salvador E. Tropea
1b23887c5a
[KiRi] Changed the used sheets to be a set
...
- Faster than using an array
2023-12-11 09:41:14 -03:00
Salvador E. Tropea
24e9aa700f
[KiRi][Fixed] Issues with added/removed layers
...
- Similar to the sheets fix
2023-12-11 09:37:51 -03:00
Salvador E. Tropea
0cad908dee
[KiRi][Fixed] Problems when comparing to missing sheet
...
- We avoid fetching it and use the blank.svg file
2023-12-11 08:58:48 -03:00
Salvador E. Tropea
e35fb669a2
[KiRi][Fixed] Problems with subsheets sharing the same file name
...
- Needs important changes in the generation of the SVGs
2023-12-11 08:39:30 -03:00
Salvador E. Tropea
4ead489e2f
[KiRi] Reverted timestamp removal
...
- Needs more work, should be removed from other places too
2023-12-11 08:38:26 -03:00
Salvador E. Tropea
8101c885a0
[KiRi] Moved style from JS to CSS
...
- Sheet page icon margins
2023-12-11 08:05:23 -03:00
Salvador E. Tropea
81ebf36720
[KiRi] Moved style from JS to CSS
...
- For items in the list of pages/layers
2023-12-11 08:00:40 -03:00
Salvador E. Tropea
a7ad89c8d7
[KiRi] Simplified the sheet page selection
...
- Avoid reloading the list of pages when selecting another page
- Avoid using invalid index when the selection fails
- Remove extra "timestamp" info in the URL
- Avoid 2 events for the same input (onchange + onclick)
2023-12-11 07:44:07 -03:00
Salvador E. Tropea
f0c62c6f20
[KiRi][Fixed] Sub-dirs removal in the first run
2023-12-06 13:51:01 -03:00
Salvador E. Tropea
eaccce2f1d
[KiRi][DOCs] Added generated docs and deps
2023-12-06 13:50:33 -03:00
Salvador E. Tropea
a3ec9c36f7
[KiRi] Darker canvas for the SVGs
2023-12-06 13:48:41 -03:00
Salvador E. Tropea
889a8323f5
Merge branch 'dev' into kiri_integration
2023-12-06 13:40:31 -03:00
Salvador E. Tropea
89365a8d5d
[CI/CD][Added] Experimental meta data to the dev images
...
See #527
2023-12-06 12:31:10 -03:00
Salvador E. Tropea
f343df8512
[Copy Files][Project][Added] Page layout
...
See #491
2023-12-06 09:21:20 -03:00
Salvador E. Tropea
163027bff7
[Copy Files][Fixed] Excluded locally_edited from the targets
2023-12-06 09:20:39 -03:00
Salvador E. Tropea
b91c24b28e
Operations that copies the project now also copies the DRU
...
See #491
2023-12-06 08:21:25 -03:00
Salvador E. Tropea
d9f0324e39
[QR Lib][Fixed] Bottom QRs should be mirrored in the Y axis
2023-12-06 07:52:36 -03:00
Salvador E. Tropea
d8f3b45d7c
Merge branch 'dev' into kiri_integration
2023-12-05 13:23:08 -03:00
Salvador E. Tropea
c60d420719
[Copy Files][Project][Fixed] Problems with locally edited syms
...
See #491
2023-12-05 12:39:30 -03:00
Salvador E. Tropea
02a23345dc
[Fixed] GS.copy_project return value when no project
...
Introduced in last patch
2023-12-05 08:58:10 -03:00
Salvador E. Tropea
e1cdfcc712
[QR lib][Fixed] Project options not preserved
...
i.e. set_text_variables failing
2023-12-05 08:42:27 -03:00
Salvador E. Tropea
110053dca1
Operations that copies the project now also copies the PRL
2023-12-05 08:40:14 -03:00