diff --git a/README.md b/README.md index b219fe83..16908955 100644 --- a/README.md +++ b/README.md @@ -104,17 +104,18 @@ Notes: - Note that on some systems (i.e. Debian) ImageMagick disables PDF manipulation in its `policy.xml` file. Comment or remove lines like this: `` (On Debian: `/etc/ImageMagick-6/policy.xml`) - ![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png) Link to Debian stable package. +- ![PyPi dependency](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/PyPI_logo_simplified-22x22.png) This is a Python dependency from PyPi and will be installed when using `pip` [**Distutils**](https://pypi.org/project/Distutils/) (python module) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-distutils) - Mandatory -[**PyYAML**](https://pypi.org/project/PyYAML/) (python module) (PyPi dependency) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-yaml) +[**PyYAML**](https://pypi.org/project/PyYAML/) (python module) ![PyPi dependency](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/PyPI_logo_simplified-22x22.png) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-yaml) - Mandatory -[**Requests**](https://pypi.org/project/Requests/) (python module) (PyPi dependency) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-requests) +[**Requests**](https://pypi.org/project/Requests/) (python module) ![PyPi dependency](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/PyPI_logo_simplified-22x22.png) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-requests) - Mandatory -[**KiCad Automation tools**](https://github.com/INTI-CMNB/KiAuto) v1.6.13 (tool) (PyPi dependency) (Auto-download) +[**KiCad Automation tools**](https://github.com/INTI-CMNB/KiAuto) v1.6.13 (tool) ![PyPi dependency](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/PyPI_logo_simplified-22x22.png) (Auto-download) - Mandatory for: `gencad`, `netlist`, `pdf_pcb_print`, `pdf_sch_print`, `render_3d`, `run_drc`, `run_erc`, `step`, `svg_pcb_print`, `svg_sch_print`, `update_xml` [**KiCost**](https://github.com/hildogjr/KiCost) v1.1.8 (tool) (Auto-download) @@ -134,10 +135,10 @@ Notes: [**LXML**](https://pypi.org/project/LXML/) (python module) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-lxml) - Mandatory for `pcb_print` -[**QRCodeGen**](https://pypi.org/project/QRCodeGen/) (python module) (PyPi dependency) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-qrcodegen) +[**QRCodeGen**](https://pypi.org/project/QRCodeGen/) (python module) ![PyPi dependency](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/PyPI_logo_simplified-22x22.png) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-qrcodegen) - Mandatory for `qr_lib` -[**Colorama**](https://pypi.org/project/Colorama/) (python module) (PyPi dependency) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-colorama) +[**Colorama**](https://pypi.org/project/Colorama/) (python module) ![PyPi dependency](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/PyPI_logo_simplified-22x22.png) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-colorama) - Optional to get color messages in a portable way for general use [**RSVG tools**](https://gitlab.gnome.org/GNOME/librsvg) v2.40 (tool) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/librsvg2-bin) (Auto-download) @@ -171,7 +172,7 @@ Notes: [**RAR**](https://www.rarlab.com/) (tool) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/rar) (Auto-download) - Optional to compress in RAR format for `compress` -[**XLSXWriter**](https://pypi.org/project/XLSXWriter/) (python module) (PyPi dependency) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-xlsxwriter) +[**XLSXWriter**](https://pypi.org/project/XLSXWriter/) (python module) ![PyPi dependency](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/PyPI_logo_simplified-22x22.png) [![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)](https://packages.debian.org/bullseye/python3-xlsxwriter) - Optional to create XLSX files for `bom` diff --git a/docs/README.in b/docs/README.in index 88fddb60..b13c28e1 100644 --- a/docs/README.in +++ b/docs/README.in @@ -104,6 +104,7 @@ Notes: - Note that on some systems (i.e. Debian) ImageMagick disables PDF manipulation in its `policy.xml` file. Comment or remove lines like this: `` (On Debian: `/etc/ImageMagick-6/policy.xml`) - ![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png) Link to Debian stable package. +- ![PyPi dependency](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/PyPI_logo_simplified-22x22.png) This is a Python dependency from PyPi and will be installed when using `pip` @dependencies@ diff --git a/docs/images/PyPI_logo_simplified-22x22.png b/docs/images/PyPI_logo_simplified-22x22.png new file mode 100644 index 00000000..4cc1e891 Binary files /dev/null and b/docs/images/PyPI_logo_simplified-22x22.png differ diff --git a/docs/images/PyPI_logo_simplified.svg b/docs/images/PyPI_logo_simplified.svg new file mode 100644 index 00000000..e88155d9 --- /dev/null +++ b/docs/images/PyPI_logo_simplified.svg @@ -0,0 +1,239 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/kibot/config_reader.py b/kibot/config_reader.py index 84d99e00..f2a7b446 100644 --- a/kibot/config_reader.py +++ b/kibot/config_reader.py @@ -29,6 +29,9 @@ LOCAL_OPTIONAL = 1 GLOBAL_OPTIONAL = LOCAL_OPTIONAL*100 LOCAL_MANDATORY = GLOBAL_OPTIONAL*100 GLOBAL_MANDATORY = LOCAL_MANDATORY*100 +DEB_LOGO = '![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/docs/images/debian-openlogo-22x22.png)' +PYPI_LOGO = ('![PyPi dependency](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/' + 'docs/images/PyPI_logo_simplified-22x22.png)') try: @@ -736,7 +739,7 @@ def print_dependencies(markdown=True, jsn=False): for name, dep in sorted(sorted(RegDependency.get_registered().items(), key=lambda x: x[0].lower()), # noqa C414 key=lambda x: x[1].importance, reverse=True): dtype = 'python module' if dep.is_python else 'tool' - is_pypi_dep = ' (PyPi dependency)' if dep.pypi_name.lower() in __pypi_deps__ else '' + is_pypi_dep = ' '+PYPI_LOGO if dep.pypi_name.lower() in __pypi_deps__ else '' has_dowloader = ' (Auto-download)' if dep.downloader is not None else '' deb = '' if markdown: @@ -746,9 +749,7 @@ def print_dependencies(markdown=True, jsn=False): url = dep.url name = '[**{}**]({})'.format(name, url) if dep.in_debian: - img = ('![Debian](https://raw.githubusercontent.com/INTI-CMNB/KiBot/master/' - 'docs/images/debian-openlogo-22x22.png)') - deb = ' [{}](https://packages.debian.org/bullseye/{})'.format(img, dep.deb_package) + deb = ' [{}](https://packages.debian.org/bullseye/{})'.format(DEB_LOGO, dep.deb_package) needed = [] optional = [] version = None