commit f8ec2702f5a50247ef91bc8e9d0c79449d8642439a2e2ad32bf8280cfd43e469 Author: Matej Cepl Date: Tue Feb 2 22:43:49 2021 +0000 Accepting request 868539 from home:Guillaume_G:RPiPico Add micropython package OBS-URL: https://build.opensuse.org/request/show/868539 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/micropython-1.13.tar.xz b/micropython-1.13.tar.xz new file mode 100644 index 0000000..fc83717 --- /dev/null +++ b/micropython-1.13.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb5434ec1fd2f7d06733696b020a992e69005532bcb97a9b4158ec1fffbc9c1e +size 56099500 diff --git a/micropython.changes b/micropython.changes new file mode 100644 index 0000000..e83ccb0 --- /dev/null +++ b/micropython.changes @@ -0,0 +1,46 @@ +------------------------------------------------------------------- +Fri Jan 29 10:59:00 UTC 2021 - Guillaume GARDET + +- Drop _service file +- Exclude %{arm} as lots of tests fail + +------------------------------------------------------------------- +Wed Jan 27 10:36:36 UTC 2021 - Guillaume GARDET + +- Cleanup package and enable tests + +------------------------------------------------------------------- +Sun Sep 6 13:30:02 UTC 2020 - Jaime Marquínez Ferrándiz + +- Update to 1.13: full changelog available at https://github.com/micropython/micropython/releases/tag/v1.13 + +------------------------------------------------------------------- +Thu Dec 26 15:28:38 UTC 2019 - Jaime Marquínez Ferrándiz + +- Update to 1.12: full changelog available at https://github.com/micropython/micropython/releases/tag/v1.12 +- Build mpy-cross + +------------------------------------------------------------------- +Sun Jun 23 12:41:06 UTC 2019 - Jaime Marquínez Ferrándiz + +- Update to 1.11: full changelog at https://github.com/micropython/micropython/releases/tag/v1.11 + +------------------------------------------------------------------- +Sat Jan 26 12:54:53 UTC 2019 - Jaime Marquínez Ferrándiz + +- Update to 1.10: full changelog at https://github.com/micropython/micropython/releases/tag/v1.10 + +------------------------------------------------------------------- +Thu Dec 6 10:16:28 UTC 2018 - Jaime Marquínez Ferrándiz + +- Use _service + +------------------------------------------------------------------- +Fri May 11 21:36:23 UTC 2018 - jaime.marquinez.ferrandiz@fastmail.net + +- Update to 1.9.4: full changelog at https://github.com/micropython/micropython/releases/tag/v1.9.4 + +------------------------------------------------------------------- +Fri Jan 12 16:03:26 UTC 2018 - jaime.marquinez.ferrandiz@fastmail.net + +- Update to 1.9.3: full changelog at https://github.com/micropython/micropython/releases/tag/v1.9.3 diff --git a/micropython.spec b/micropython.spec new file mode 100644 index 0000000..b9c9808 --- /dev/null +++ b/micropython.spec @@ -0,0 +1,71 @@ +# +# spec file for package micropython +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +Name: micropython +Version: 1.13 +Release: 0 +Summary: Implementation of Python 3 with very low memory footprint +License: MIT +Group: Development/Languages/Python +Url: https://micropython.org/ +Source: https://micropython.org/resources/source/%{name}-%{version}.tar.xz +BuildRequires: readline-devel +BuildRequires: pkgconfig(libffi) +BuildRequires: python3 +BuildRequires: python +BuildRequires: openssl +Recommends: micropython-lib +ExcludeArch: %{ix86} %{arm} + +%description +A lean and efficient Python implementation for microcontrollers and constrained systems + +%prep +%setup -q +sed -i -e "s:/usr/lib/micropython:%{_prefix}/lib/micropython:g" "ports/unix/main.c" + +%define make_flags V=1 MICROPY_PY_BTREE=0 MICROPY_PY_USSL=0 + +%build +pushd mpy-cross +%make_build +popd +pushd ports/unix +%make_build micropython +popd + +%install +install -d %{buildroot}%{_bindir} +install -t %{buildroot}%{_bindir} ports/unix/micropython + +%ifnarch aarch64 +# aarch64: 2 tests failed: float_parse float_parse_doubleprec +# https://github.com/micropython/micropython/issues/4176 +%check +pushd ports/unix +export MICROPY_CPYTHON3=python3 +make PYTHON=%{__python3} V=1 test +popd +%endif + +%files +%defattr(-,root,root) +%doc LICENSE +%{_bindir}/micropython + +%changelog +