Skip to content

Commit 2dca35f

Browse files
committed
ports/unix: Enable enum package in coverage and standard variants.
Adds enum package from micropython-lib to unix port variants: - coverage variant: For testing metaclass and enum features - standard variant: For general enum availability The enum package provides Enum, IntEnum, Flag, IntFlag, StrEnum, and auto() compatible with CPython's enum module. Signed-off-by: Andrew Leech <[email protected]>
1 parent df02766 commit 2dca35f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ports/unix/variants/coverage/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
freeze_as_mpy("frzmpy")
44
freeze_mpy("$(MPY_DIR)/tests/frozen")
55
require("ssl")
6+
require("enum")
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
include("$(PORT_DIR)/variants/manifest.py")
22

33
include("$(MPY_DIR)/extmod/asyncio")
4+
5+
# Enum module from micropython-lib
6+
require("enum")

0 commit comments

Comments
 (0)