From de24005e66eef37bcc55f9ac2a247a9017d4cb0a Mon Sep 17 00:00:00 2001 From: Jos Verlinde Date: Sun, 8 Dec 2024 01:18:00 +0100 Subject: [PATCH 01/10] Tests: Fix version retrieval in quality tests. Signed-off-by: Jos Verlinde --- test_publish.ps1 | 14 -------------- tests/quality_tests/test_snippets.py | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 test_publish.ps1 diff --git a/test_publish.ps1 b/test_publish.ps1 deleted file mode 100644 index 4c4ff5ab5..000000000 --- a/test_publish.ps1 +++ /dev/null @@ -1,14 +0,0 @@ -# test script for publish process -$versions = @("v1.19.1") -$versions = @("v1.18","v1.19","v1.19.1") - -# stubber clone --no-stubs -foreach ($version in $versions){ - stubber switch --tag $version - # stubber get-frozen - # stubber get-docstubs - # stubber merge --version $version - # stubber publish --test-pypi --version $version - stubber publish --pypi --version $version -} -# # run the build steps for this mpy version diff --git a/tests/quality_tests/test_snippets.py b/tests/quality_tests/test_snippets.py index 7d5eae973..caf073f58 100644 --- a/tests/quality_tests/test_snippets.py +++ b/tests/quality_tests/test_snippets.py @@ -85,7 +85,7 @@ def major_minor(versions): sys.path.append(str(HERE.parent.parent / ".github/workflows")) -VERSIONS = sorted(major_minor(micropython_versions(cache_it=False)), reverse=True)[:5] +VERSIONS = sorted(major_minor(micropython_versions()), reverse=True)[:5] def pytest_generate_tests(metafunc: pytest.Metafunc): From fb184bf75e8914cfae78e3c500c336c09af0d5cd Mon Sep 17 00:00:00 2001 From: Jos Verlinde Date: Mon, 9 Dec 2024 22:48:55 +0100 Subject: [PATCH 02/10] Packages published to pypi-test Signed-off-by: Jos Verlinde --- data/all_packages_test.db | Bin 0 -> 86016 bytes scripts/Update to database-2.ipynb | 400 +++++++++++++---------------- 2 files changed, 179 insertions(+), 221 deletions(-) create mode 100644 data/all_packages_test.db diff --git a/data/all_packages_test.db b/data/all_packages_test.db new file mode 100644 index 0000000000000000000000000000000000000000..c937e44d08cc3165f4c2b46ead1fe45052a26827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Kps1HKbFyp;jiK>~88r56hykJiH{9ennSnXC;aNvJwko_KSfbClotqX?Sh zVWgiX!7J55gF<#+a#)xI^nG0rpLyVL%dOMVbtjjMtz_$*Ls5tDHh9FlbXn z6E+2-`q;*qZ%sM$G19XrfDK#ED9n&5x%EtAI0DifO;BWAWx-}imQ)pn=tiY0vD|3rF{5I#lc4yk|$S#8)1gt+v`31{`J{>yh+^Y4} zU&M2aTs8(X9Im?HTXY9$dyrEERs*4+CI~X^kbG7n~}OXPGn?gZr52} z;Z%X-1Ypn*0`#_PG6T?zs!}9PGqwc1PHGfmI|$1Wu(uiww*)l_{tL^WZOG@T7(2X#@nKEMafr0}*yAZ5n)df;sjK z@EIeU&AetdE)f#XJabpi?tg%qUU=tSDuV1`@VrauH}k&Qx#!ZMcaahE-v8tZ$uNcE z7+)_r@huL?kZ~$)yfSX-`yYSsihtvT^v6p zz~WufizZ`wG`{rAp_-{{7hRFjaf!)X{{MFEsX)gA`D^m3b4PUe_nbe%%k)=T0%-}PC6Jat zS^{Yaq$S{z0Fb1{51D-M;=0{K?L5!t$}SXjVOCvI0jqM-yc}cPk!xpmtUfT;iAz0C zher~^tbc~_YcFZAyEL3wDxNFN3*!R?#@LyQSI?XA;cw&78-x!;^%um(PErdVFvhHT zZTY6H=L|=0JP&$B*d?ZfQUbdS8e={jf2sb|(ol1XFH{$?pD>}zlo&t|G)7^t921y1}XHr5k1;(hID~IpfvIca<}0b18q7gt;L0Oz3) JvSd|^|35+M{uBTJ literal 0 HcmV?d00001 diff --git a/scripts/Update to database-2.ipynb b/scripts/Update to database-2.ipynb index a5ab35b61..fe67e03be 100644 --- a/scripts/Update to database-2.ipynb +++ b/scripts/Update to database-2.ipynb @@ -2,21 +2,24 @@ "cells": [ { "cell_type": "code", - "execution_count": 2, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "import sqlite3\n", "import json\n", + "from pathlib import Path\n", "\n", "# Load data from JSON file\n", - "with open(\"../publish/package_data.jsondb\", \"r\") as file:\n", - " data = json.load(file)" + "with open(\"../publish/package_data_test.jsondb\", \"r\") as file:\n", + " data = json.load(file)\n", + "\n", + "db_path = Path(\"../data/package_data_test.db\")" ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -33,7 +36,7 @@ " 'stub_sources']" ] }, - "execution_count": 3, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -47,18 +50,25 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 7, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "DANGER: Dropping table\n" + ] + } + ], "source": [ "# Connect to SQLite database (or create it if it doesn't exist)\n", - "DANGER = False\n", + "DANGER = True\n", "\n", "if DANGER:\n", - " conn = sqlite3.connect(\"../data/package_data.db\")\n", + " conn = sqlite3.connect(db_path)\n", " cursor = conn.cursor()\n", "\n", - "\n", " CREATE_TABLE = \"\"\"\n", "\n", " CREATE TABLE IF NOT EXISTS packages (\n", @@ -92,7 +102,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -100,219 +110,216 @@ "output_type": "stream", "text": [ "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", - "micropython-rp2-stubs, port='rp2', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", - "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-stm32-stubs, port='stm32', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", - "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", - "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", - "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", + "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-rp2-pico_w-stubs, port='rp2', board='pico_w'\n", - "micropython-rp2-pico-stubs, port='rp2', board='pico'\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-ota-stubs, port='esp32', board='ota'\n", - "micropython-rp2-pimoroni_picolipo_16mb-stubs, port='rp2', board='pimoroni_picolipo_16mb'\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-ota-stubs, port='esp32', board='ota'\n", - "micropython-esp32-s3-stubs, port='esp32', board='s3'\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-pico-stubs, port='rp2', board='pico'\n", - "micropython-rp2-pico_w-stubs, port='rp2', board='pico_w'\n", - "micropython-rp2-pimoroni_picolipo_16mb-stubs, port='rp2', board='pimoroni_picolipo_16mb'\n", - "micropython-samd-adafruit_feather_m4_express-stubs, port='samd', board='adafruit_feather_m4_express'\n", - "micropython-samd-adafruit_itsybitsy_m4_express-stubs, port='samd', board='adafruit_itsybitsy_m4_express'\n", - "micropython-samd-minisam_m4-stubs, port='samd', board='minisam_m4'\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-s3-stubs, port='esp32', board='s3'\n", - "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-stm32-stubs, port='stm32', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-stubs, port='esp32', board=''\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-samd-adafruit_feather_m4_express-stubs, port='samd', board='adafruit_feather_m4_express'\n", - "micropython-samd-adafruit_itsybitsy_m4_express-stubs, port='samd', board='adafruit_itsybitsy_m4_express'\n", - "micropython-samd-minisam_m4-stubs, port='samd', board='minisam_m4'\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", - "micropython-rp2-pico-stubs, port='rp2', board='pico'\n", - "micropython-rp2-pico_w-stubs, port='rp2', board='pico_w'\n", - "micropython-rp2-pimoroni_picolipo_16mb-stubs, port='rp2', board='pimoroni_picolipo_16mb'\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", - "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-rp2-rpi_pico-stubs, port='rp2', board='rpi_pico'\n", - "micropython-rp2-rpi_pico_w-stubs, port='rp2', board='rpi_pico_w'\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", - "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-esp32_generic-stubs, port='esp32', board='esp32_generic'\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-rpi_pico-stubs, port='rp2', board='rpi_pico'\n", - "micropython-rp2-rpi_pico_w-stubs, port='rp2', board='rpi_pico_w'\n", - "micropython-samd-stubs, port='samd', board=''\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", - "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-generic_ota-stubs, port='esp32', board='generic_ota'\n", - "micropython-esp32-generic_s3-stubs, port='esp32', board='generic_s3'\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-pico-stubs, port='rp2', board='pico'\n", - "micropython-rp2-pico_w-stubs, port='rp2', board='pico_w'\n", - "micropython-samd-stubs, port='samd', board=''\n", - "micropython-samd-adafruit_feather_m4_express-stubs, port='samd', board='adafruit_feather_m4_express'\n", - "micropython-samd-adafruit_itsybitsy_m4_express-stubs, port='samd', board='adafruit_itsybitsy_m4_express'\n", - "micropython-samd-minisam_m4-stubs, port='samd', board='minisam_m4'\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-generic_s3-stubs, port='esp32', board='generic_s3'\n", - "micropython-esp32-generic_spiram-stubs, port='esp32', board='generic_spiram'\n", - "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-webassembly-stubs, port='webassembly', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-esp32_generic-stubs, port='esp32', board='esp32_generic'\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-rpi_pico-stubs, port='rp2', board='rpi_pico'\n", - "micropython-rp2-rpi_pico_w-stubs, port='rp2', board='rpi_pico_w'\n", - "micropython-samd-stubs, port='samd', board=''\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", - "micropython-webassembly-stubs, port='webassembly', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-generic_ota-stubs, port='esp32', board='generic_ota'\n", - "micropython-esp32-generic_s3-stubs, port='esp32', board='generic_s3'\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-pico-stubs, port='rp2', board='pico'\n", - "micropython-rp2-pico_w-stubs, port='rp2', board='pico_w'\n", - "micropython-samd-stubs, port='samd', board=''\n", - "micropython-samd-adafruit_feather_m4_express-stubs, port='samd', board='adafruit_feather_m4_express'\n", - "micropython-samd-adafruit_itsybitsy_m4_express-stubs, port='samd', board='adafruit_itsybitsy_m4_express'\n", - "micropython-samd-minisam_m4-stubs, port='samd', board='minisam_m4'\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-esp32_generic-stubs, port='esp32', board='esp32_generic'\n", - "micropython-esp32-esp32_generic_s3-stubs, port='esp32', board='esp32_generic_s3'\n", + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-arduino_nano_rp2040_connect-stubs, port='rp2', board='arduino_nano_rp2040_connect'\n", - "micropython-rp2-pimoroni_picolipo_16mb-stubs, port='rp2', board='pimoroni_picolipo_16mb'\n", - "micropython-rp2-rpi_pico-stubs, port='rp2', board='rpi_pico'\n", - "micropython-rp2-rpi_pico_w-stubs, port='rp2', board='rpi_pico_w'\n", - "micropython-samd-stubs, port='samd', board=''\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-samd-stubs, port='samd', board=''\n", - "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-arduino_nano_rp2040_connect-stubs, port='rp2', board='arduino_nano_rp2040_connect'\n", - "micropython-rp2-rpi_pico-stubs, port='rp2', board='rpi_pico'\n", - "micropython-rp2-rpi_pico_w-stubs, port='rp2', board='rpi_pico_w'\n", - "micropython-samd-stubs, port='samd', board=''\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", - "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-arduino_nano_rp2040_connect-stubs, port='rp2', board='arduino_nano_rp2040_connect'\n", - "micropython-rp2-rpi_pico-stubs, port='rp2', board='rpi_pico'\n", - "micropython-rp2-rpi_pico_w-stubs, port='rp2', board='rpi_pico_w'\n", - "micropython-unix-stubs, port='unix', board=''\n", - "micropython-unix-stubs, port='unix', board=''\n", - "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-rpi_pico_w-stubs, port='rp2', board='rpi_pico_w'\n", - "micropython-rp2-rpi_pico-stubs, port='rp2', board='rpi_pico'\n", - "micropython-samd-stubs, port='samd', board=''\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", - "micropython-esp8266-esp8266_generic-stubs, port='esp8266', board='esp8266_generic'\n", + "micropython-rp2-stubs, port='rp2', board=''\n", + "micropython-stm32-stubs, port='stm32', board=''\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-esp32_generic_s3-stubs, port='esp32', board='esp32_generic_s3'\n", - "micropython-esp32-esp32_generic-stubs, port='esp32', board='esp32_generic'\n", - "micropython-esp32-esp32_generic_c3-stubs, port='esp32', board='esp32_generic_c3'\n", + "micropython-esp8266-stubs, port='esp8266', board=''\n", + "micropython-rp2-stubs, port='rp2', board=''\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n", "micropython-esp32-stubs, port='esp32', board=''\n", - "micropython-esp32-esp32_generic-stubs, port='esp32', board='esp32_generic'\n", - "micropython-esp32-esp32_generic_c3-stubs, port='esp32', board='esp32_generic_c3'\n", - "micropython-esp32-esp32_generic_s3-stubs, port='esp32', board='esp32_generic_s3'\n", "micropython-esp8266-stubs, port='esp8266', board=''\n", - "micropython-esp8266-esp8266_generic-stubs, port='esp8266', board='esp8266_generic'\n", "micropython-rp2-stubs, port='rp2', board=''\n", - "micropython-rp2-rpi_pico-stubs, port='rp2', board='rpi_pico'\n", - "micropython-rp2-rpi_pico_w-stubs, port='rp2', board='rpi_pico_w'\n", - "micropython-samd-stubs, port='samd', board=''\n", - "micropython-samd-seeed_wio_terminal-stubs, port='samd', board='seeed_wio_terminal'\n", "micropython-stm32-stubs, port='stm32', board=''\n", - "micropython-stm32-pybv11-stubs, port='stm32', board='pybv11'\n" + "micropython-esp32-stubs, port='esp32', board=''\n", + "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", + "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", + "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", + "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", + "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n", + "micropython-esp32-um_tinypico-stubs, port='esp32', board='um_tinypico'\n" ] } ], "source": [ "import json\n", "\n", - "conn = sqlite3.connect(\"../data/package_data.db\")\n", + "conn = sqlite3.connect(db_path)\n", "cursor = conn.cursor()\n", "\n", "# Insert data into table\n", @@ -345,7 +352,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -364,16 +371,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 6, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -381,12 +388,12 @@ "source": [ "SHORT_LIST = \"\"\"\n", "SELECT DISTINCT name, mpy_version FROM packages \n", - " where published == TRUE\n", + " where publish == TRUE\n", " order by mpy_version DESC, name\n", "\"\"\"\n", "\n", "\n", - "conn = sqlite3.connect(\"package_data.db\")\n", + "conn = sqlite3.connect(db_path)\n", "cursor = conn.cursor()\n", "\n", "cursor.execute(SHORT_LIST)" @@ -394,77 +401,13 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[('micropython-esp32-stubs', '1.23.0-preview'),\n", - " ('micropython-samd-stubs', '1.23.0-preview'),\n", - " ('micropython-esp32-esp32_generic-stubs', '1.23.0'),\n", - " ('micropython-esp32-esp32_generic_c3-stubs', '1.23.0'),\n", - " ('micropython-esp32-esp32_generic_s3-stubs', '1.23.0'),\n", - " ('micropython-esp32-stubs', '1.23.0'),\n", - " ('micropython-esp8266-esp8266_generic-stubs', '1.23.0'),\n", - " ('micropython-esp8266-stubs', '1.23.0'),\n", - " ('micropython-rp2-rpi_pico-stubs', '1.23.0'),\n", - " ('micropython-rp2-rpi_pico_w-stubs', '1.23.0'),\n", - " ('micropython-rp2-stubs', '1.23.0'),\n", - " ('micropython-samd-seeed_wio_terminal-stubs', '1.23.0'),\n", - " ('micropython-samd-stubs', '1.23.0'),\n", - " ('micropython-stm32-pybv11-stubs', '1.23.0'),\n", - " ('micropython-stm32-stubs', '1.23.0'),\n", - " ('micropython-rp2-arduino_nano_rp2040_connect-stubs', '1.22.1'),\n", - " ('micropython-rp2-rpi_pico-stubs', '1.22.1'),\n", - " ('micropython-rp2-rpi_pico_w-stubs', '1.22.1'),\n", - " ('micropython-rp2-stubs', '1.22.1'),\n", - " ('micropython-samd-seeed_wio_terminal-stubs', '1.22.1'),\n", - " ('micropython-samd-stubs', '1.22.1'),\n", - " ('micropython-esp32-esp32_generic-stubs', '1.22.0'),\n", - " ('micropython-esp32-esp32_generic_s3-stubs', '1.22.0'),\n", - " ('micropython-esp32-stubs', '1.22.0'),\n", - " ('micropython-rp2-arduino_nano_rp2040_connect-stubs', '1.22.0'),\n", - " ('micropython-rp2-pimoroni_picolipo_16mb-stubs', '1.22.0'),\n", - " ('micropython-rp2-rpi_pico-stubs', '1.22.0'),\n", - " ('micropython-rp2-rpi_pico_w-stubs', '1.22.0'),\n", - " ('micropython-rp2-stubs', '1.22.0'),\n", - " ('micropython-samd-seeed_wio_terminal-stubs', '1.22.0'),\n", - " ('micropython-samd-stubs', '1.22.0'),\n", - " ('micropython-stm32-pybv11-stubs', '1.22.0'),\n", - " ('micropython-stm32-stubs', '1.22.0'),\n", - " ('micropython-esp32-esp32_generic-stubs', '1.21.0'),\n", - " ('micropython-esp32-stubs', '1.21.0'),\n", - " ('micropython-rp2-rpi_pico-stubs', '1.21.0'),\n", - " ('micropython-rp2-rpi_pico_w-stubs', '1.21.0'),\n", - " ('micropython-rp2-stubs', '1.21.0'),\n", - " ('micropython-samd-seeed_wio_terminal-stubs', '1.21.0'),\n", - " ('micropython-samd-stubs', '1.21.0'),\n", - " ('micropython-stm32-pybv11-stubs', '1.21.0'),\n", - " ('micropython-stm32-stubs', '1.21.0'),\n", - " ('micropython-unix-stubs', '1.21.0'),\n", - " ('micropython-webassembly-stubs', '1.21.0'),\n", - " ('micropython-esp32-generic_ota-stubs', '1.20.0'),\n", - " ('micropython-esp32-generic_s3-stubs', '1.20.0'),\n", - " ('micropython-esp32-ota-stubs', '1.20.0'),\n", - " ('micropython-esp32-s3-stubs', '1.20.0'),\n", - " ('micropython-esp32-stubs', '1.20.0'),\n", - " ('micropython-rp2-pico-stubs', '1.20.0'),\n", - " ('micropython-rp2-pico_w-stubs', '1.20.0'),\n", - " ('micropython-rp2-pimoroni_picolipo_16mb-stubs', '1.20.0'),\n", - " ('micropython-rp2-stubs', '1.20.0'),\n", - " ('micropython-samd-adafruit_feather_m4_express-stubs', '1.20.0'),\n", - " ('micropython-samd-adafruit_itsybitsy_m4_express-stubs', '1.20.0'),\n", - " ('micropython-samd-minisam_m4-stubs', '1.20.0'),\n", - " ('micropython-samd-seeed_wio_terminal-stubs', '1.20.0'),\n", - " ('micropython-samd-stubs', '1.20.0'),\n", - " ('micropython-stm32-pybv11-stubs', '1.20.0'),\n", - " ('micropython-stm32-stubs', '1.20.0'),\n", - " ('micropython-unix-stubs', '1.20.0'),\n", - " ('micropython-esp32-generic_s3-stubs', '1.19.1'),\n", - " ('micropython-esp32-generic_spiram-stubs', '1.19.1'),\n", - " ('micropython-esp32-s3-stubs', '1.19.1'),\n", - " ('micropython-esp32-stubs', '1.19.1'),\n", + "[('micropython-esp32-stubs', '1.19.1'),\n", " ('micropython-esp32-um_tinypico-stubs', '1.19.1'),\n", " ('micropython-esp8266-stubs', '1.19.1'),\n", " ('micropython-rp2-stubs', '1.19.1'),\n", @@ -476,10 +419,16 @@ " ('micropython-esp32-stubs', '1.17'),\n", " ('micropython-esp8266-stubs', '1.17'),\n", " ('micropython-rp2-stubs', '1.17'),\n", - " ('micropython-stm32-stubs', '1.17')]" + " ('micropython-stm32-stubs', '1.17'),\n", + " ('micropython-esp32-stubs', '1.16'),\n", + " ('micropython-esp8266-stubs', '1.16'),\n", + " ('micropython-esp32-stubs', '1.15'),\n", + " ('micropython-esp8266-stubs', '1.15'),\n", + " ('micropython-esp32-stubs', '1.14'),\n", + " ('micropython-esp8266-stubs', '1.14')]" ] }, - "execution_count": 7, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -487,6 +436,15 @@ "source": [ "cursor.fetchall()" ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [], + "source": [ + "conn.close()" + ] } ], "metadata": { From e5d7cd127ebd6acbe97e46c705373853b5a2b7d4 Mon Sep 17 00:00:00 2001 From: Josverl Date: Tue, 10 Dec 2024 22:02:58 +0000 Subject: [PATCH 03/10] Update docstubs stubs for preview --- stubs/micropython-v1_25_0_preview-docstubs/machine.pyi | 5 ++++- stubs/micropython-v1_25_0_preview-docstubs/modules.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stubs/micropython-v1_25_0_preview-docstubs/machine.pyi b/stubs/micropython-v1_25_0_preview-docstubs/machine.pyi index 16267f16e..dc8019631 100644 --- a/stubs/micropython-v1_25_0_preview-docstubs/machine.pyi +++ b/stubs/micropython-v1_25_0_preview-docstubs/machine.pyi @@ -1228,9 +1228,12 @@ class RTC: """ ... - def cancel(self, alarm_id=0) -> None: + def alarm_cancel(self, alarm_id=0) -> None: """ Cancel a running alarm. + + The mimxrt port also exposes this function as ``RTC.cancel(alarm_id=0)``, but this is + scheduled to be removed in MicroPython 2.0. """ ... diff --git a/stubs/micropython-v1_25_0_preview-docstubs/modules.json b/stubs/micropython-v1_25_0_preview-docstubs/modules.json index 6d1ae9ece..00f0f826b 100644 --- a/stubs/micropython-v1_25_0_preview-docstubs/modules.json +++ b/stubs/micropython-v1_25_0_preview-docstubs/modules.json @@ -8,7 +8,7 @@ "firmware": "micropython-v1_25_0_preview", "nodename": "micropython", "version": "v1.25.0-preview", - "release": "v1.25.0-preview-81-g2c80d3699", + "release": "v1.25.0-preview-112-gd4d1d4798", "sysname": "micropython" }, "stubber": { From 231175b8f9c2e8f661fc04ca81aa5dc64b1877f5 Mon Sep 17 00:00:00 2001 From: Jos Verlinde Date: Tue, 10 Dec 2024 23:36:34 +0100 Subject: [PATCH 04/10] Package databases: Set ID to AUTOINCREMENT. Signed-off-by: Jos Verlinde --- data/all_packages.db | Bin 94208 -> 184320 bytes data/all_packages_test.db | Bin 86016 -> 159744 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/data/all_packages.db b/data/all_packages.db index 061f77ef3cc7ffa0162416f6d5e58815dfc55b87..53c62a1c9eb9d37ee1c6385843dc10e53a83164f 100644 GIT binary patch delta 2477 zcm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>$Dh*f(o9eT zw_D|}SjB3Y0$K;zlz-P|y56{`XfEK5IcW@bMN0vX&prTn)8o&9H;0=}WY)Cj)LMt5 ztbHflumB<`YWyrPf|BZ=K5^P?JU1_`HS zHpp;GM(7*GtLO689cw;yLJVdh3`LyMi-Q!v;0qf9WZ2JA3Rs~+LX7HKq69JzpnGbl~ zw()>(899auz<#@vp~G5Kjbm9KK1}tQvKM<@9!6Kn ze5e|mp%huGrire7!3Vugl8d)#SdVMIdj$B0D$)p#PUZr}wW9%N)XC)1mH_xs*6Gz` zN*k?S%}-X{S6UT8ayvuG&Oox=5CM3}P2$A8mjeMO*9X)1PJ^1k=Wh{jJ-B9~N!K!c zcxol36*Z}R6E{!!K#|9eVlL4s@Pt}vGsH+Y06t{6SabHnEm?;S79uouRXB=>)S{T{ z`rOxWODfeuG)Ti(NK$qty_C{sXgv6v+!x9QMYQ}TQ$)wflvJtBV8t$j=YrJT17-m? z#Jv6ZSEdu^_U}dAD zzyQASttU~6OSjZqYcrRZxr!wp!6a-QrUT6W^|A~bhY+Wi3@2C5^^x8Tz7t4nQZgu{ ztMG}GHbKMl=eRj4SH((J$Ar*wI6x)Z4DaL0w;s*U~IU zvjy?ZT&8M>VmrG)9zYjD9hGG>ES55y$dU1bdx^aePulZe6IWET0s$x@bxGBx*34=j8+6PJ<|04`Xs{<+R1x=1R&~ETn KOZ_ImS^9S&JYQ}A delta 172 zcmZozz}@hGb%L~@5(5K+I1s}C>qH%6ekBIIszP3%5F=j-17FH^!3M@}yr#{PjO^mF zvW#u4C5cHnsRfD2*@@|?#W0%5Imp#9#8n~0(aFbE0VX>6J&)pMIbJ=+$uIaN*ja&Q zitzo}%r5YgUj}3W7sD3@=97GC3}1LAaZ7M+XMfGKlr5aqcw*z_=JyKQ-zzW*`U3#0 C;w_#4 diff --git a/data/all_packages_test.db b/data/all_packages_test.db index c937e44d08cc3165f4c2b46ead1fe45052a26827..c61dc6426807a49149eb0251edcfaeb1ee78cf94 100644 GIT binary patch delta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cvrNfk6nX1E)s^uJxdb+teoXCw60}m5-oW>pEP#zakO9-&KLhYf sk1&gaACe-o6khqq&VPM-sO5~?ITY;5?vvq4WYuQu>W!sv$%D1et3rsQlaH$cOmuQRkLu<&zA8p`R-kc0{9>Eg r1%C2RD`1pkV{l~bU~HP`D8bs~*zl@*drKgr2V--m;`UBO#&SIX)UGNP From f3802ca3dd2da196034a066f4f1a753d4c63ba92 Mon Sep 17 00:00:00 2001 From: Josverl Date: Wed, 11 Dec 2024 22:03:05 +0000 Subject: [PATCH 05/10] Update docstubs stubs for preview --- stubs/micropython-v1_25_0_preview-docstubs/modules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/micropython-v1_25_0_preview-docstubs/modules.json b/stubs/micropython-v1_25_0_preview-docstubs/modules.json index 00f0f826b..369c83dd4 100644 --- a/stubs/micropython-v1_25_0_preview-docstubs/modules.json +++ b/stubs/micropython-v1_25_0_preview-docstubs/modules.json @@ -8,7 +8,7 @@ "firmware": "micropython-v1_25_0_preview", "nodename": "micropython", "version": "v1.25.0-preview", - "release": "v1.25.0-preview-112-gd4d1d4798", + "release": "v1.25.0-preview-114-gbdda91fe7", "sysname": "micropython" }, "stubber": { From c0fb2c6506fca3a66d48e70762deefd926bfa3ff Mon Sep 17 00:00:00 2001 From: Josverl Date: Mon, 16 Dec 2024 22:03:04 +0000 Subject: [PATCH 06/10] Update docstubs stubs for preview --- stubs/micropython-v1_25_0_preview-docstubs/modules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/micropython-v1_25_0_preview-docstubs/modules.json b/stubs/micropython-v1_25_0_preview-docstubs/modules.json index 369c83dd4..5d7608c89 100644 --- a/stubs/micropython-v1_25_0_preview-docstubs/modules.json +++ b/stubs/micropython-v1_25_0_preview-docstubs/modules.json @@ -8,7 +8,7 @@ "firmware": "micropython-v1_25_0_preview", "nodename": "micropython", "version": "v1.25.0-preview", - "release": "v1.25.0-preview-114-gbdda91fe7", + "release": "v1.25.0-preview-117-gee8d8b344", "sysname": "micropython" }, "stubber": { From db34e9810473b5c26aa5e77f0b5ac709ec22bc58 Mon Sep 17 00:00:00 2001 From: Josverl Date: Tue, 17 Dec 2024 22:03:02 +0000 Subject: [PATCH 07/10] Update docstubs stubs for preview --- stubs/micropython-v1_25_0_preview-docstubs/modules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/micropython-v1_25_0_preview-docstubs/modules.json b/stubs/micropython-v1_25_0_preview-docstubs/modules.json index 5d7608c89..9cc81aeef 100644 --- a/stubs/micropython-v1_25_0_preview-docstubs/modules.json +++ b/stubs/micropython-v1_25_0_preview-docstubs/modules.json @@ -8,7 +8,7 @@ "firmware": "micropython-v1_25_0_preview", "nodename": "micropython", "version": "v1.25.0-preview", - "release": "v1.25.0-preview-117-gee8d8b344", + "release": "v1.25.0-preview-123-g23bfa95d3", "sysname": "micropython" }, "stubber": { From f946968ad24c3b3eb924af9728d18d816873eaf2 Mon Sep 17 00:00:00 2001 From: Josverl Date: Wed, 18 Dec 2024 22:02:55 +0000 Subject: [PATCH 08/10] Update docstubs stubs for preview --- stubs/micropython-v1_25_0_preview-docstubs/modules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/micropython-v1_25_0_preview-docstubs/modules.json b/stubs/micropython-v1_25_0_preview-docstubs/modules.json index 9cc81aeef..04bd238e6 100644 --- a/stubs/micropython-v1_25_0_preview-docstubs/modules.json +++ b/stubs/micropython-v1_25_0_preview-docstubs/modules.json @@ -8,7 +8,7 @@ "firmware": "micropython-v1_25_0_preview", "nodename": "micropython", "version": "v1.25.0-preview", - "release": "v1.25.0-preview-123-g23bfa95d3", + "release": "v1.25.0-preview-130-g7924b3105", "sysname": "micropython" }, "stubber": { From 0fa21f1c7fc2f724a97cc0c31ff61d8eb0cf603e Mon Sep 17 00:00:00 2001 From: Josverl Date: Thu, 19 Dec 2024 22:02:47 +0000 Subject: [PATCH 09/10] Update docstubs stubs for preview --- .../micropython-v1_25_0_preview-docstubs/machine.pyi | 11 ++++++++++- .../micropython-v1_25_0_preview-docstubs/modules.json | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/stubs/micropython-v1_25_0_preview-docstubs/machine.pyi b/stubs/micropython-v1_25_0_preview-docstubs/machine.pyi index dc8019631..b2678c24e 100644 --- a/stubs/micropython-v1_25_0_preview-docstubs/machine.pyi +++ b/stubs/micropython-v1_25_0_preview-docstubs/machine.pyi @@ -1198,13 +1198,22 @@ class RTC: """ Initialise the RTC. Datetime is a tuple of the form: - ``(year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]])`` + ``(year, month, day, hour, minute, second, microsecond, tzinfo)`` + + All eight arguments must be present. The ``microsecond`` and ``tzinfo`` + values are currently ignored but might be used in the future. + + Availability: CC3200, ESP32, MIMXRT, SAMD. The rtc.init() method on + the stm32 and renesas-ra ports just (re-)starts the RTC and does not + accept arguments. """ ... def now(self) -> Tuple: """ Get get the current datetime tuple. + + Availability: WiPy. """ ... diff --git a/stubs/micropython-v1_25_0_preview-docstubs/modules.json b/stubs/micropython-v1_25_0_preview-docstubs/modules.json index 04bd238e6..0ab34d111 100644 --- a/stubs/micropython-v1_25_0_preview-docstubs/modules.json +++ b/stubs/micropython-v1_25_0_preview-docstubs/modules.json @@ -8,7 +8,7 @@ "firmware": "micropython-v1_25_0_preview", "nodename": "micropython", "version": "v1.25.0-preview", - "release": "v1.25.0-preview-130-g7924b3105", + "release": "v1.25.0-preview-143-g39538e4c9", "sysname": "micropython" }, "stubber": { From 2d4f2028e8db3fe76de9f3d32645760bf70d4e25 Mon Sep 17 00:00:00 2001 From: Josverl Date: Fri, 20 Dec 2024 22:02:47 +0000 Subject: [PATCH 10/10] Update docstubs stubs for preview --- stubs/micropython-v1_25_0_preview-docstubs/modules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/micropython-v1_25_0_preview-docstubs/modules.json b/stubs/micropython-v1_25_0_preview-docstubs/modules.json index 0ab34d111..40c305456 100644 --- a/stubs/micropython-v1_25_0_preview-docstubs/modules.json +++ b/stubs/micropython-v1_25_0_preview-docstubs/modules.json @@ -8,7 +8,7 @@ "firmware": "micropython-v1_25_0_preview", "nodename": "micropython", "version": "v1.25.0-preview", - "release": "v1.25.0-preview-143-g39538e4c9", + "release": "v1.25.0-preview-147-g136058496", "sysname": "micropython" }, "stubber": {