Commit Graph

936 Commits

Author SHA1 Message Date
Salvador E. Tropea 0a817bfc60 [Diff] Added two mechanisms to compare PCB variants in one output
- Taking pairs
- Using a reference

Related to #278
2022-09-09 10:57:36 -03:00
Salvador E. Tropea 584ef5354b [Diff] Added mechanism to compare using a variant
Related to #278
2022-09-09 09:42:06 -03:00
Salvador E. Tropea 2111eaf6d2 [PCB Variant] Options for title and conditional project copy 2022-09-09 09:08:26 -03:00
Salvador E. Tropea 4dc93da42b [PCB Variant] Implemented the 3D filtering
- The PCB filtering code was moved to make it, some errors could be
  introduced
2022-09-09 08:57:05 -03:00
Salvador E. Tropea b0b7c6c041 [Netlist] Problems to compress
Fixes #287
2022-09-09 06:51:38 -03:00
Salvador E. Tropea 409640c681 Starting to add an output to create PCB variants
- WIP, some part is working
2022-09-08 13:54:37 -03:00
Salvador E. Tropea 42aa142a56 [Report] Added support for Eurocircuits drill adjust to fix small OARs.
Closes #227
2022-09-08 11:37:58 -03:00
Salvador E. Tropea 9fdbfa5411 Bumped version to 1.3.0 2022-09-08 09:05:59 -03:00
Salvador E. Tropea 241eca63ff [PCB Print] Added option to customize the page numbers
Related to #283
2022-09-08 07:24:56 -03:00
Salvador E. Tropea 2f37a5c6b4 [3D models] Various small details about missing models
- Fail to expand a VAR is reported once. Not for every model.
- Warnings no longer printed if the model is missing but we can
  download it. It confuses people when the problem is solved.
- When we fail to expand a VAR and the result is "${VAR}..."
  we tried to make it an absolute path creating a path that was
  confusing. Now we keep the original name.
2022-09-07 14:15:31 -03:00
Salvador E. Tropea 99bfaec4dc [Tests] Make the logger tollerant to wrong init sequence 2022-09-07 14:05:02 -03:00
Salvador E. Tropea f127312b27 [Diff] Added example for quick start 2022-09-07 13:26:48 -03:00
Salvador E. Tropea 33dda2c3ac [Quick Start] Avoid starting a browser when no index is generated 2022-09-07 13:26:06 -03:00
Salvador E. Tropea f156a23f3f [Info] Added environment vars, KiBot paths and KiAuto info. 2022-09-07 12:45:56 -03:00
Salvador E. Tropea 6354ccdd7d [Diff] More changes to the link name
- Adding the tag to branches
2022-09-07 10:52:51 -03:00
Salvador E. Tropea ba5164ffa4 [PCB Print] Added option to move the page number to the extension
- page_number_as_extension
- Can be used to easily create custom output names

Related to #283
2022-09-07 09:46:57 -03:00
Salvador E. Tropea 9cd284a9c0 [Quick Start][PCB Print] Fixed tools check
- Changes in the toolchain
2022-09-07 09:11:27 -03:00
Salvador E. Tropea e177ed1079 [DOCs] Added note about DXF output and dimensions
Related to #284
2022-09-07 09:01:55 -03:00
Salvador E. Tropea 3684889060 [PCB Print] Changed the conversion strategy
- Now we can control the resolution
- Added option for this

Related to #259
2022-09-07 08:40:18 -03:00
Salvador E. Tropea 22d618a425 [PCB Print] Added option to configure the forced edge color.
Closes #281
2022-09-06 11:06:44 -03:00
Salvador E. Tropea 43aae8b0fe [Diff] Give priority to a tag if we are exactly at the tag 2022-09-06 10:37:48 -03:00
Salvador E. Tropea 947542747f [Diff] Added some logic to support new=''
- Pretends to be HEAD
- Detects if we have a dirty state

Related to #276
2022-09-06 10:12:10 -03:00
Salvador E. Tropea f603301d59 [Diff] Changed the name of the link
- It now tries with the branch, then the tag and finally what the user
  named.

Related to #276
2022-09-06 08:56:28 -03:00
Salvador E. Tropea b704c2ab41 [DOCs] `pcb_print` added all extensions for %i reference 2022-09-06 08:54:00 -03:00
Salvador E. Tropea 460ffca49b [Diff] Better `copy_instead_of_link` description
Related to #275
2022-09-05 13:56:56 -03:00
Salvador E. Tropea e34d4a01e0 [Diff] Added option to force the checkouts 2022-09-05 13:48:14 -03:00
Salvador E. Tropea a4abb65ef3 [Diff] Added support for stashing submodules
Related to #265
2022-09-05 13:35:04 -03:00
Salvador E. Tropea 11d1b7ffcb [Diff] Now the link contains the git point name and the hash
Related to #276
2022-09-05 10:58:27 -03:00
Salvador E. Tropea 40526ed012 [Fixed] Avoid reloading the project is none loaded 2022-09-05 10:30:29 -03:00
Salvador E. Tropea 795e56b6d7 [PCB_Print] Text vars generated in the same run didn't show up
Fixes #280
2022-09-05 10:05:05 -03:00
Salvador E. Tropea 01536726a1 New output "Info": collects info about the environment.
Related to #209
2022-09-05 09:07:08 -03:00
Salvador E. Tropea 0631836f29 When restoring the project now we maintain the original EOLs
- Not doing it in KiAuto raised problems, so now we also do it in
  KiBot

Related to #265
2022-09-02 09:38:16 -03:00
Salvador E. Tropea 560ce80c7d [Debug] Logged executed command in a cut & paste friendly way
Closes #269
2022-09-02 08:49:39 -03:00
Salvador E. Tropea de4d6c0714 [Diff] Added error message when KIBOT_LAST doesn't point to a hash 2022-09-02 08:14:55 -03:00
Salvador E. Tropea d834ba5075 [Diff][Fixed] Problems with overwriting the symlink 2022-09-02 08:14:15 -03:00
Salvador E. Tropea e9e4225b16 [Diff] Added option to copy instead of link
Closes #272
2022-09-02 07:16:16 -03:00
Salvador E. Tropea cabf14ec07 [Diff][Fixed] Always comparing the PCB
- Added regression test

Fixes #273
2022-09-02 07:03:57 -03:00
Salvador E. Tropea 2b54d8320a [Diff] Added check for the old/new files specified. 2022-09-02 07:00:01 -03:00
Salvador E. Tropea d8d8552883 [Diff] Now the %i is diff_pcb for the PCB and diff_sch for the sch
Related to #265
2022-09-01 14:13:28 -03:00
Salvador E. Tropea 61bee6e9cc [QR_Lib][Fixed] Problems when moving the footprint to the bottom.
- The updated drawings always used the top layer

Fixes #271
2022-09-01 10:29:28 -03:00
Salvador E. Tropea 75f79b1a72 [DOCs] Added advice on how to compress links 2022-08-31 13:41:06 -03:00
Salvador E. Tropea 6393ee3319 [Diff] Made the symlink relative
- So it can be included in an archive
2022-08-31 13:37:44 -03:00
Salvador E. Tropea a0075d12c7 [Compress] Added option to store symlinks. 2022-08-31 13:36:20 -03:00
Salvador E. Tropea 651f3890d5 [Diff] Added KiAuto as dependency
Related to #265
2022-08-31 12:59:52 -03:00
Salvador E. Tropea 49d20fdeeb [Fixed][Text variables] when using an empty text
Fixes #268
2022-08-31 09:18:19 -03:00
Salvador E. Tropea 10ee73feeb [Diff] Added option to create a link to the output
- This link contains the git hashes involved in the comparison.

Related to #265
2022-08-31 08:47:15 -03:00
Salvador E. Tropea 1557dfea77 [Diff][Fixed] Problems with git submodules
- Now we force a submodules update during checkout

Related to #265
2022-08-31 08:10:27 -03:00
Salvador E. Tropea 6b344a094b [Diff][Fixed] Problems when no changes to stash
- "git stash push" always returns 0, even if nothing was stashed.
- But "git stash pop" returns 1 if nothing stashed.
- So now we check using "git stash list".

Related to #265
2022-08-31 07:50:09 -03:00
Salvador E. Tropea bc793c8637 [Fixed] Internal netlist generation when no lib
Related to #242
2022-08-29 08:37:12 -03:00
Salvador E. Tropea 464b72e8f1 New output to compute differences between PCBs and SCHs.
Fixes INTI-CMNB/KiAuto#14
2022-08-25 13:02:02 -03:00
Salvador E. Tropea bc0011470b [Fixed][PCB_Print] Problems with `hide_excluded: true`
- For components not in the SCH
Fixes #258
2022-08-23 07:18:12 -03:00
Salvador E. Tropea 396d701a0d [DOCs] Added some extra clarifications about the internal BoM filters
Related to #257 and #251
2022-08-22 08:08:01 -03:00
Salvador E. Tropea 85538b0b27 [Global options] Restore the project at exit
Related to #250
2022-08-19 09:39:25 -03:00
Salvador E. Tropea 0180136fd6 [DRC] Another workaround for KiCad lack of exclusions support in Python
- Saving the project can remove them, so `fill_zones` removed them

Fixes #250
2022-08-17 13:33:57 -03:00
Salvador E. Tropea 8fa4f985d3 [Dependencies] Boosted PcbDraw version to 0.9.0.3
- The upstream is currently undergoing a major rewrite and isn't
  usable. It has problems with KiCad 5 and 6.
2022-08-16 09:47:15 -03:00
Salvador E. Tropea f1c6913449 [Debug] Added KiBot version and verbose level to the logs 2022-08-16 09:24:13 -03:00
Salvador E. Tropea f0783576ec [Dependencies][Debug][Fixed] pip install error log
- Now should be able to capture the error from pip

Related to #209
2022-08-16 09:16:42 -03:00
Salvador E. Tropea 91185ca56a [Dependencies] Added more local share plug-in dirs
- Also added the current iBoM plug-in path
2022-08-12 12:59:44 -03:00
Salvador E. Tropea 699b2f4d16 [Dependencies] Switched to gs (from ghostscript)
- The short name is more common

Related to #209
2022-08-12 10:24:58 -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 fcdedad360 [SCH][KiCad 6][Fixed] Instance data partially applied
- The component instance information was applied to the component,
  but not to the "basic" fields.
2022-08-12 09:03:31 -03:00
Salvador E. Tropea 5785fd3e0f [SCH Print][Netlist][Fixed] Problems with name collisions
- When the name chosen by KiCad was an alredy existing file (from
  another output) it was removed by KiAuto. So then KiCad created
  the file, we renamed it to what the user selected and ... well,
  the original file was lost. Now KiAuto takes care of this.
Fixes #244
2022-08-11 13:31:26 -03:00
Salvador E. Tropea 99d35922c6 [DEBUG] log KiAuto commands that we can copy & paste 2022-08-11 13:26:41 -03:00
Salvador E. Tropea c5a6d894c9 [DRC] Added Workaround for problems with DRC exclusions
- Global option: `drc_exclusions_workaround`
- KiCad bug [11562](https://gitlab.com/kicad/code/kicad/-/issues/11562)
Fixes INTI-CMNB/KiAuto#26
2022-08-10 14:01:32 -03:00
Salvador E. Tropea 0c2e1b823f Fixed missing changes in out_render_3d.py 2022-08-01 18:40:00 -03:00
Salvador E. Tropea 6c7e0cebe0 Now GS.ki5() and GS.ki6() are just GS.ki5 and GS.ki6
- The version doesn't change during execution ;-)
2022-07-31 17:45:55 -03:00
Salvador E. Tropea 320f1a38ff [iBoM] Fixed: G/SetFPIDAsString needs KiCad 6.0.6+ 2022-07-30 11:05:43 -03:00
Salvador E. Tropea 3b6c9e7d8b [iBoM] Added support for variants that change component fields
Closes #242
2022-07-30 10:39:48 -03:00
Salvador E. Tropea 3bc4bd51c6
Merge pull request #239 from hkleen/datasheet_download_ssl_error
catch possible SSLError when downloading datasheets
2022-07-26 06:23:19 -03:00
Henning Kleen 95f3ccb773 Update user agent string to pretend being a recent version of Firefox 2022-07-26 10:27:01 +02:00
Henning Kleen 44d3eac6e2 catch possible SSLError when downloading datasheets to prevent KiBot crash. 2022-07-26 09:28:46 +02:00
Salvador E. Tropea b5fc7e8c55 [Report] Fixed converted file wasn't stored at `dir`
Closes #238
2022-07-25 11:40:24 -03:00
Salvador E. Tropea 674c4899f6
Merge pull request #237 from kevin-dong-nai-jia/feature/suppress-info
Suppress an excessive info message to console
2022-07-25 11:07:02 -03:00
Kevin Dong d5e5585dd6
Suppress an excessive info message to console 2022-07-25 04:08:06 +08:00
Kevin Dong c5703360d5
Added in SCH PDF Print: An all_pages option. 2022-07-22 23:48:30 +08:00
Salvador E. Tropea 95a48a8922 Added `--dont-stop` command line option
- To try to continue even on errors

Related to #209
2022-07-21 13:54:42 -03:00
Salvador E. Tropea 9d7e3b91f4 Removed debug message 2022-07-21 13:46:09 -03:00
Salvador E. Tropea 0e7121dc3d Now configuration sections are parsed in a fixed order
- This allows a predictable behavior, the YAML is converted to a dict,
  so you can't trust in the order of the keys.
- It avoids misstakes
- Allows using %V/v in preflights, even if globals are declared latter.

Fixes #234
2022-07-21 13:11:24 -03:00
Salvador E. Tropea b9bd5368c9 Now %V/%v can be expanded in preflights
Related to #234
2022-07-21 13:07:24 -03:00
Salvador E. Tropea 1b9c734401 [KiCad 6 SCH] Fixed problems with title block on variants
- The title block wasn't saved if the title wasn't defined.
- In the first versions of v6 it was stored empy, now skipped.
2022-07-21 12:58:46 -03:00
Salvador E. Tropea 513b6526ff [PCB Print] Fixed problems with zones on multiple layers
- Now we remove them from the layer set
Closes #226
2022-07-18 09:52:41 -03:00
Salvador E. Tropea 8a47bdee83 [Install Checker] Instruct to install pip when needed
- Python tools can't be autodownloaded without pip
2022-07-18 08:49:02 -03:00
Salvador E. Tropea 0726a3c2d5 Merge branch 'master' of https://github.com/INTI-CMNB/KiBot 2022-07-15 06:23:08 -03:00
Salvador E. Tropea 3e922b6009 [PCB_Print] Fixed problems with filtered/modified PCBs 2022-07-14 18:52:31 -03:00
Salvador E. Tropea c4b1d6b8ad [Position] Fixed problems with repeated references
- Happens when doing manual panelization

Closes #224
2022-07-14 18:11:56 -03:00
Henning Kleen b4ed680d9c fix OAR calculation for design report 2022-07-14 15:56:40 +02:00
Salvador E. Tropea 882999edf4 [DOCs] Added a note about the importance of %i
- When using position output and separate files

Related to #222
2022-07-14 08:28:31 -03:00
Salvador E. Tropea ba7bebd980 [Position] Added an error message for wrong file names
- If a user asks for separated files and doesn't use %i to
  differentiate the names now we inform it as an error.

Related to #222
2022-07-13 11:33:43 -03:00
Salvador E. Tropea 8c690bfb3f Switched to v1.2.1 to identify git code 2022-07-13 10:38:26 -03:00
Salvador E. Tropea 3e05ab8b6a [Import] Preflights now can be imported
- Also fixed the filters and variants configuration, now delayed.

Fixes #221
Related to #181
2022-07-12 13:39:43 -03:00
Salvador E. Tropea 9ce18ae39b Fixed filter and variants import 2022-07-12 11:10:35 -03:00
Salvador E. Tropea 6c118b73fa Imports can be nested now
- import stuff that was imported ...
- Is the first approach, works for a simple case

Related to #218
2022-07-12 10:55:00 -03:00
Salvador E. Tropea 42503a909a [SCH][Print] A global option to cross components without a body.
- Only for KiCad 6

Closes #219
2022-07-12 08:44:05 -03:00
Salvador E. Tropea 68c96385d3 [KiCad 6][Variants] Fixed problems crossing alternative drawings
- Units with DeMorgan alternative drawing got only one crossed

Related to #219
2022-07-12 07:39:15 -03:00
Salvador E. Tropea 139ee82bdc Documented the added features. 2022-07-11 12:41:23 -03:00
Henning Kleen 209248ae8d also expand environment variables in design report template path 2022-07-11 15:22:43 +02:00
Henning Kleen 7ba7794a14 Allow expansion of environment variables in paths 2022-07-11 11:22:31 +02:00
Salvador E. Tropea 15d5f90a27 [Tests] Fixed fil_test.py assertions
- PyTest 6 failed to catch the assert, but 7 does
2022-07-09 19:44:02 -03:00
Salvador E. Tropea e8a20ef362 [Dependencies] Fixed repeated dependencies when plug-in dir available 2022-07-09 16:28:20 -03:00
Salvador E. Tropea 18bf8d9b78 [Dependencies] Added support for partially uninstalled modules. 2022-07-08 11:50:18 -03:00