Skip to content

Commit 965501f

Browse files
Add CI built packages from commit 6c6fab1 of ruff/unused_assignments
1 parent f7bb7ff commit 965501f

File tree

52 files changed

+83
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+83
-107
lines changed

mip/ruff/unused_assignments/file/ce/ce19ee1b renamed to mip/ruff/unused_assignments/file/00/00f6f102

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,31 @@ def time():
2828
s.close()
2929
val = struct.unpack("!I", msg[40:44])[0]
3030

31+
# 2024-01-01 00:00:00 converted to an NTP timestamp
32+
MIN_NTP_TIMESTAMP = 3913056000
33+
34+
# Y2036 fix
35+
#
36+
# The NTP timestamp has a 32-bit count of seconds, which will wrap back
37+
# to zero on 7 Feb 2036 at 06:28:16.
38+
#
39+
# We know that this software was written during 2024 (or later).
40+
# So we know that timestamps less than MIN_NTP_TIMESTAMP are impossible.
41+
# So if the timestamp is less than MIN_NTP_TIMESTAMP, that probably means
42+
# that the NTP time wrapped at 2^32 seconds. (Or someone set the wrong
43+
# time on their NTP server, but we can't really do anything about that).
44+
#
45+
# So in that case, we need to add in those extra 2^32 seconds, to get the
46+
# correct timestamp.
47+
#
48+
# This means that this code will work until the year 2160. More precisely,
49+
# this code will not work after 7th Feb 2160 at 06:28:15.
50+
#
51+
if val < MIN_NTP_TIMESTAMP:
52+
val += 0x100000000
53+
54+
# Convert timestamp from NTP format to our internal format
55+
3156
EPOCH_YEAR = utime.gmtime(0)[0]
3257
if EPOCH_YEAR == 2000:
3358
# (date(2000, 1, 1) - date(1900, 1, 1)).days * 24*60*60
@@ -50,4 +75,4 @@ def settime():
5075
machine.RTC().datetime((tm[0], tm[1], tm[2], tm[6] + 1, tm[3], tm[4], tm[5], 0))
5176

5277

53-
__version__ = '0.1.0'
78+
__version__ = '0.1.1'

mip/ruff/unused_assignments/file/0e/0ec42647

Lines changed: 0 additions & 39 deletions
This file was deleted.

mip/ruff/unused_assignments/file/1f/1f54fef7 renamed to mip/ruff/unused_assignments/file/10/1069a1aa

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ try:
66
from .defaultdict import defaultdict
77
except ImportError:
88
pass
9-
try:
10-
from .deque import deque
11-
except ImportError:
12-
pass
139

1410

1511
class MutableMapping:
1612
pass
1713

1814

19-
__version__ = '0.1.2'
15+
__version__ = '0.2.0'
-566 Bytes
Binary file not shown.
178 Bytes
Binary file not shown.
603 Bytes
Binary file not shown.
-214 Bytes
Binary file not shown.
-452 Bytes
Binary file not shown.
Binary file not shown.
-1.89 KB
Binary file not shown.

mip/ruff/unused_assignments/file/ee/ee0d60a0 renamed to mip/ruff/unused_assignments/file/f2/f240b412

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ def _rewrite_url(url, branch=None):
7373
+ "/"
7474
+ "/".join(url[2:])
7575
)
76+
elif url.startswith("gitlab:"):
77+
url = url[7:].split("/")
78+
url = (
79+
"https://gitlab.com/"
80+
+ url[0]
81+
+ "/"
82+
+ url[1]
83+
+ "/-/raw/"
84+
+ branch
85+
+ "/"
86+
+ "/".join(url[2:])
87+
)
7688
return url
7789

7890

@@ -128,6 +140,7 @@ def _install_package(package, index, target, version, mpy):
128140
package.startswith("http://")
129141
or package.startswith("https://")
130142
or package.startswith("github:")
143+
or package.startswith("gitlab:")
131144
):
132145
if package.endswith(".py") or package.endswith(".mpy"):
133146
print("Downloading {} to {}".format(package, target))
@@ -173,4 +186,4 @@ def install(package, index=None, target=None, version=None, mpy=True):
173186
print("Package may be partially installed")
174187

175188

176-
__version__ = '0.2.0'
189+
__version__ = '0.3.0'

mip/ruff/unused_assignments/index.json

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -332,16 +332,16 @@
332332
},
333333
{
334334
"name": "collections",
335-
"version": "0.1.2",
335+
"version": "0.2.0",
336336
"author": "",
337337
"description": "",
338338
"license": "MIT",
339339
"versions": {
340340
"py": [
341-
"0.1.2"
341+
"0.2.0"
342342
],
343343
"6": [
344-
"0.1.2"
344+
"0.2.0"
345345
]
346346
}
347347
},
@@ -360,21 +360,6 @@
360360
]
361361
}
362362
},
363-
{
364-
"name": "collections-deque",
365-
"version": "0.1.3",
366-
"author": "",
367-
"description": "",
368-
"license": "MIT",
369-
"versions": {
370-
"py": [
371-
"0.1.3"
372-
],
373-
"6": [
374-
"0.1.3"
375-
]
376-
}
377-
},
378363
{
379364
"name": "contextlib",
380365
"version": "3.4.3",
@@ -977,16 +962,16 @@
977962
},
978963
{
979964
"name": "mip",
980-
"version": "0.2.0",
965+
"version": "0.3.0",
981966
"author": "",
982967
"description": "On-device package installer for network-capable boards",
983968
"license": "MIT",
984969
"versions": {
985970
"py": [
986-
"0.2.0"
971+
"0.3.0"
987972
],
988973
"6": [
989-
"0.2.0"
974+
"0.3.0"
990975
]
991976
}
992977
},
@@ -1037,16 +1022,16 @@
10371022
},
10381023
{
10391024
"name": "ntptime",
1040-
"version": "0.1.0",
1025+
"version": "0.1.1",
10411026
"author": "",
10421027
"description": "NTP client.",
10431028
"license": "MIT",
10441029
"versions": {
10451030
"py": [
1046-
"0.1.0"
1031+
"0.1.1"
10471032
],
10481033
"6": [
1049-
"0.1.0"
1034+
"0.1.1"
10501035
]
10511036
}
10521037
},
@@ -1832,5 +1817,5 @@
18321817
}
18331818
],
18341819
"v": 1,
1835-
"updated": 1715666038
1820+
"updated": 1715760436
18361821
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","ba7ecfd9"],["ntptime.mpy","23a5b6b2"],["ssl.mpy","d53a3211"],["webrepl.mpy","77c59182"],["webrepl_setup.mpy","16c14698"],["urequests.mpy","10db2d45"]],"version":"0.2.0"}
1+
{"v":1,"hashes":[["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","b0b173e6"],["ntptime.mpy","47d5c7c4"],["ssl.mpy","d53a3211"],["webrepl.mpy","77c59182"],["webrepl_setup.mpy","16c14698"],["urequests.mpy","10db2d45"]],"version":"0.2.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","ba7ecfd9"],["ntptime.mpy","23a5b6b2"],["ssl.mpy","d53a3211"],["webrepl.mpy","77c59182"],["webrepl_setup.mpy","16c14698"],["urequests.mpy","10db2d45"]],"version":"0.2.0"}
1+
{"v":1,"hashes":[["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","b0b173e6"],["ntptime.mpy","47d5c7c4"],["ssl.mpy","d53a3211"],["webrepl.mpy","77c59182"],["webrepl_setup.mpy","16c14698"],["urequests.mpy","10db2d45"]],"version":"0.2.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["collections/__init__.mpy","7562eb6e"],["collections/defaultdict.mpy","8edc17d2"]],"version":"0.3.0"}
1+
{"v":1,"hashes":[["collections/__init__.mpy","24683e6a"],["collections/defaultdict.mpy","8edc17d2"]],"version":"0.3.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["collections/__init__.mpy","7562eb6e"],["collections/defaultdict.mpy","8edc17d2"]],"version":"0.3.0"}
1+
{"v":1,"hashes":[["collections/__init__.mpy","24683e6a"],["collections/defaultdict.mpy","8edc17d2"]],"version":"0.3.0"}

mip/ruff/unused_assignments/package/6/collections-deque/0.1.3.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

mip/ruff/unused_assignments/package/6/collections-deque/latest.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

mip/ruff/unused_assignments/package/6/collections/0.1.2.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"v":1,"hashes":[["collections/__init__.mpy","24683e6a"]],"version":"0.2.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["collections/__init__.mpy","7562eb6e"]],"version":"0.1.2"}
1+
{"v":1,"hashes":[["collections/__init__.mpy","24683e6a"]],"version":"0.2.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["ucontextlib.mpy","132fda0d"],["collections/__init__.mpy","7562eb6e"],["contextlib.mpy","b6cb9817"]],"version":"3.4.3"}
1+
{"v":1,"hashes":[["ucontextlib.mpy","132fda0d"],["collections/__init__.mpy","24683e6a"],["contextlib.mpy","b6cb9817"]],"version":"3.4.3"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["ucontextlib.mpy","132fda0d"],["collections/__init__.mpy","7562eb6e"],["contextlib.mpy","b6cb9817"]],"version":"3.4.3"}
1+
{"v":1,"hashes":[["ucontextlib.mpy","132fda0d"],["collections/__init__.mpy","24683e6a"],["contextlib.mpy","b6cb9817"]],"version":"3.4.3"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["argparse.mpy","09af7078"],["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","ba7ecfd9"],["mip/__main__.mpy","09b46b33"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["argparse.mpy","09af7078"],["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","b0b173e6"],["mip/__main__.mpy","09b46b33"]],"version":"0.1.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["argparse.mpy","09af7078"],["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","ba7ecfd9"],["mip/__main__.mpy","09b46b33"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["argparse.mpy","09af7078"],["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","b0b173e6"],["mip/__main__.mpy","09b46b33"]],"version":"0.1.0"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","ba7ecfd9"]],"version":"0.2.0"}
1+
{"v":1,"hashes":[["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","b0b173e6"]],"version":"0.3.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","ba7ecfd9"]],"version":"0.2.0"}
1+
{"v":1,"hashes":[["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","b0b173e6"]],"version":"0.3.0"}

mip/ruff/unused_assignments/package/6/ntptime/0.1.0.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"v":1,"hashes":[["ntptime.mpy","47d5c7c4"]],"version":"0.1.1"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["ntptime.mpy","23a5b6b2"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["ntptime.mpy","47d5c7c4"]],"version":"0.1.1"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["argparse.mpy","09af7078"],["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","ba7ecfd9"],["mip/__main__.mpy","09b46b33"],["venv/__main__.mpy","9480dd50"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["argparse.mpy","09af7078"],["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","b0b173e6"],["mip/__main__.mpy","09b46b33"],["venv/__main__.mpy","9480dd50"]],"version":"0.1.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["argparse.mpy","09af7078"],["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","ba7ecfd9"],["mip/__main__.mpy","09b46b33"],["venv/__main__.mpy","9480dd50"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["argparse.mpy","09af7078"],["requests/__init__.mpy","055bb2da"],["mip/__init__.mpy","b0b173e6"],["mip/__main__.mpy","09b46b33"],["venv/__main__.mpy","9480dd50"]],"version":"0.1.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","ee0d60a0"],["ntptime.py","ce19ee1b"],["ssl.py","89a6e5ef"],["webrepl.py","980f741e"],["webrepl_setup.py","b406557a"],["urequests.py","2bee6a73"]],"version":"0.2.0"}
1+
{"v":1,"hashes":[["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","f240b412"],["ntptime.py","00f6f102"],["ssl.py","89a6e5ef"],["webrepl.py","980f741e"],["webrepl_setup.py","b406557a"],["urequests.py","2bee6a73"]],"version":"0.2.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","ee0d60a0"],["ntptime.py","ce19ee1b"],["ssl.py","89a6e5ef"],["webrepl.py","980f741e"],["webrepl_setup.py","b406557a"],["urequests.py","2bee6a73"]],"version":"0.2.0"}
1+
{"v":1,"hashes":[["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","f240b412"],["ntptime.py","00f6f102"],["ssl.py","89a6e5ef"],["webrepl.py","980f741e"],["webrepl_setup.py","b406557a"],["urequests.py","2bee6a73"]],"version":"0.2.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["collections/__init__.py","1f54fef7"],["collections/defaultdict.py","28ec7c40"]],"version":"0.3.0"}
1+
{"v":1,"hashes":[["collections/__init__.py","1069a1aa"],["collections/defaultdict.py","28ec7c40"]],"version":"0.3.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["collections/__init__.py","1f54fef7"],["collections/defaultdict.py","28ec7c40"]],"version":"0.3.0"}
1+
{"v":1,"hashes":[["collections/__init__.py","1069a1aa"],["collections/defaultdict.py","28ec7c40"]],"version":"0.3.0"}

mip/ruff/unused_assignments/package/py/collections-deque/0.1.3.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

mip/ruff/unused_assignments/package/py/collections-deque/latest.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

mip/ruff/unused_assignments/package/py/collections/0.1.2.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"v":1,"hashes":[["collections/__init__.py","1069a1aa"]],"version":"0.2.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["collections/__init__.py","1f54fef7"]],"version":"0.1.2"}
1+
{"v":1,"hashes":[["collections/__init__.py","1069a1aa"]],"version":"0.2.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["ucontextlib.py","9dd42397"],["collections/__init__.py","1f54fef7"],["contextlib.py","a03ba7d1"]],"version":"3.4.3"}
1+
{"v":1,"hashes":[["ucontextlib.py","9dd42397"],["collections/__init__.py","1069a1aa"],["contextlib.py","a03ba7d1"]],"version":"3.4.3"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["ucontextlib.py","9dd42397"],["collections/__init__.py","1f54fef7"],["contextlib.py","a03ba7d1"]],"version":"3.4.3"}
1+
{"v":1,"hashes":[["ucontextlib.py","9dd42397"],["collections/__init__.py","1069a1aa"],["contextlib.py","a03ba7d1"]],"version":"3.4.3"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["argparse.py","0de5f79e"],["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","ee0d60a0"],["mip/__main__.py","6527ab74"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["argparse.py","0de5f79e"],["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","f240b412"],["mip/__main__.py","6527ab74"]],"version":"0.1.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["argparse.py","0de5f79e"],["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","ee0d60a0"],["mip/__main__.py","6527ab74"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["argparse.py","0de5f79e"],["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","f240b412"],["mip/__main__.py","6527ab74"]],"version":"0.1.0"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","ee0d60a0"]],"version":"0.2.0"}
1+
{"v":1,"hashes":[["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","f240b412"]],"version":"0.3.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","ee0d60a0"]],"version":"0.2.0"}
1+
{"v":1,"hashes":[["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","f240b412"]],"version":"0.3.0"}

mip/ruff/unused_assignments/package/py/ntptime/0.1.0.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"v":1,"hashes":[["ntptime.py","00f6f102"]],"version":"0.1.1"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["ntptime.py","ce19ee1b"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["ntptime.py","00f6f102"]],"version":"0.1.1"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["argparse.py","0de5f79e"],["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","ee0d60a0"],["mip/__main__.py","6527ab74"],["venv/__main__.py","128ff2d3"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["argparse.py","0de5f79e"],["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","f240b412"],["mip/__main__.py","6527ab74"],["venv/__main__.py","128ff2d3"]],"version":"0.1.0"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v":1,"hashes":[["argparse.py","0de5f79e"],["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","ee0d60a0"],["mip/__main__.py","6527ab74"],["venv/__main__.py","128ff2d3"]],"version":"0.1.0"}
1+
{"v":1,"hashes":[["argparse.py","0de5f79e"],["requests/__init__.py","3aa0fa1d"],["mip/__init__.py","f240b412"],["mip/__main__.py","6527ab74"],["venv/__main__.py","128ff2d3"]],"version":"0.1.0"}

0 commit comments

Comments
 (0)