MIT License (packaging code)
Copyright (c) 2026 Ivan Montiel Cardona and the PyMCU Project Authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

-------------------------------------------------------------------------------
Bundled AVR-GCC and AVR-Binutils — GNU General Public License, Version 2.0+
-------------------------------------------------------------------------------

The platform wheels published to PyPI bundle pre-built binaries from the GNU
Compiler Collection (avr-gcc, avr-g++, avr-as, avr-ld, avr-objcopy, etc.)
sourced from the PlatformIO toolchain-atmelavr package. These binaries are NOT
covered by the MIT license above; they are distributed under the GNU General
Public License, Version 2 (or any later version), reproduced below.

Source:  https://registry.platformio.org/packages/platformio/tool/toolchain-atmelavr
License: https://gcc.gnu.org/onlinedocs/gcc/Copying.html

Why this does NOT infect PyMCU user firmware
---------------------------------------------
GCC's "Runtime Library Exception" (Section 7 of GPL-3.0; equivalent clauses
exist in the GPL-2.0 avr-gcc packaging) explicitly exempts compiled output:
firmware produced by PyMCU through these tools carries NO license obligation
from GCC. The GPL applies only to the toolchain binaries themselves.

-------------------------------------------------------------------------------
Bundled AVR-LibC — GNU Lesser General Public License, Version 2.1+
-------------------------------------------------------------------------------

The wheels also bundle AVR-LibC (avr/lib/libm.a, libgcc.a, crt*.o, etc.),
which is distributed under the GNU Lesser General Public License, Version 2.1
(or any later version). Static linking AVR-LibC into user firmware does NOT
require the firmware to be LGPL; Section 6 of LGPL-2.1 permits this.

Source:  https://avr-libc.nongnu.org/
License: https://www.nongnu.org/avr-libc/LICENSE.txt
