Skip to content

Commit f3cfc52

Browse files
jimmodpgeorge
authored andcommitted
unix-ffi: Move more unix-only packages to unix-ffi.
With the dependencies captured in manifest.py, several packages in python-stdlib were still unix-only due to direct or transitive dependencies on unix-only or ffi modules. Or they just make no sense to run on microcontroller targets. In a few cases (e.g. base64) where possible, the unix dependency could be removed. Updates manifest.py to use the `unix_ffi=True` arg to `require()` for these libraries. Rename re-pcre to re now that unix-ffi is effectively its own namespace. Update unix-ffi/README.md, and strengthen the wording that the unix libraries are unmaintained. Signed-off-by: Jim Mussared <[email protected]>
1 parent ce66e70 commit f3cfc52

File tree

74 files changed

+51
-119
lines changed

Some content is hidden

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

74 files changed

+51
-119
lines changed

python-stdlib/base64/base64.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def b64decode(s, altchars=None, validate=False):
9696
altchars = _bytes_from_decode_data(altchars)
9797
assert len(altchars) == 2, repr(altchars)
9898
s = s.translate(bytes.maketrans(altchars, b"+/"))
99-
if validate and not re.match(b"^[A-Za-z0-9+/]*={0,2}$", s):
99+
if validate and not re.match(b"^[A-Za-z0-9+/]*=*$", s):
100100
raise binascii.Error("Non-base64 digit found")
101101
return binascii.a2b_base64(s)
102102

python-stdlib/base64/manifest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
metadata(version="3.3.3-4")
22

33
require("binascii")
4-
require("re-pcre")
54
require("struct")
65

76
module("base64.py")

python-stdlib/email.charset/manifest.py

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

python-stdlib/email.feedparser/manifest.py

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

python-stdlib/email.header/manifest.py

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

python-stdlib/email.internal/manifest.py

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

python-stdlib/email.message/manifest.py

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

python-stdlib/email.parser/manifest.py

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

python-stdlib/glob/manifest.py

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

python-stdlib/html.parser/manifest.py

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

0 commit comments

Comments
 (0)