Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package micropython for openSUSE:Factory checked in at 2025-02-06 22:08:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/micropython (Old) and /work/SRC/openSUSE:Factory/.micropython.new.2316 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "micropython" Thu Feb 6 22:08:30 2025 rev:15 rq:1243566 version:1.24.1 Changes: -------- --- /work/SRC/openSUSE:Factory/micropython/micropython.changes 2024-12-02 16:59:53.375102416 +0100 +++ /work/SRC/openSUSE:Factory/.micropython.new.2316/micropython.changes 2025-02-06 22:09:41.916682247 +0100 @@ -1,0 +2,5 @@ +Wed Feb 5 23:17:33 UTC 2025 - Dominik Heidler <dheid...@suse.de> + +- Build mpremote tool + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ micropython.spec ++++++ --- /var/tmp/diff_new_pack.Ix2A96/_old 2025-02-06 22:09:44.636794329 +0100 +++ /var/tmp/diff_new_pack.Ix2A96/_new 2025-02-06 22:09:44.636794329 +0100 @@ -1,7 +1,7 @@ # # spec file for package micropython # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,8 @@ # +%define pythons python3 + Name: micropython Version: 1.24.1 Release: 0 @@ -28,12 +30,29 @@ BuildRequires: python3 BuildRequires: readline-devel BuildRequires: pkgconfig(libffi) + Recommends: micropython-lib ExcludeArch: %{ix86} %{arm} ppc64 ppc64le +%package -n mpremote +Summary: MicroPython remote control +BuildArch: noarch +BuildRequires: python3-hatch-requirements-txt +BuildRequires: python3-hatchling +Requires: python3-pyserial >= 3.3 +BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros + %description A lean and efficient Python implementation for microcontrollers and constrained systems +%description -n mpremote +This CLI tool provides an integrated set of utilities to remotely interact with +and automate a MicroPython device over a serial connection. + %prep %autosetup -p1 @@ -45,10 +64,23 @@ export CFLAGS="%optflags -Wno-dangling-pointer" %make_build -C mpy-cross %make_build -C ports/unix STRIP=true +pushd tools/mpremote +# inject version info as there is no git checkout to get tags from +echo "VERSION = '%{version}'" > version.py +sed -i -e 's/source = "vcs"/path = "version.py"/' pyproject.toml +# remove useless shebang lines +sed -i -e 's_#!/usr/bin/env python3__' mpremote/{__main__,transport,transport_serial}.py +%pyproject_wheel +popd %install install -d %{buildroot}%{_bindir} install -t %{buildroot}%{_bindir} ports/unix/build-standard/micropython +pushd tools/mpremote +%pyproject_install +%python3_fix_shebang +%fdupes %{buildroot}%{python3_sitelib} +popd %check %ifnarch x86_64 @@ -65,3 +97,10 @@ %doc docs/unix/* %{_bindir}/micropython +%files -n mpremote +%license tools/mpremote/LICENSE +%doc tools/mpremote/README.md +%{python3_sitelib}/mpremote +%{python3_sitelib}/mpremote-%{version}.dist-info +%{_bindir}/mpremote +