Skip to content

Commit 24d3e81

Browse files
committed
make_metadata.py: Support PyPy upstream source.
1 parent ffc30e8 commit 24d3e81

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

make_metadata.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@
4545
limited heap. If you are affected by such a case, please help reimplement
4646
the module from scratch."""
4747

48+
PYPY_DESC = """\
49+
This is a module ported from PyPy standard library to be compatible with
50+
MicroPython interpreter. Usually, this means applying small patches for
51+
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
52+
changes are required. Note that CPython modules are written with availability
53+
of vast resources in mind, and may not work for MicroPython ports with
54+
limited heap. If you are affected by such a case, please help reimplement
55+
the module from scratch."""
56+
4857
MICROPYTHON_LIB_DESC = """\
4958
This is a module reimplemented specifically for MicroPython standard library,
5059
with efficient and lean design in mind. Note that this module is likely work
@@ -61,6 +70,8 @@
6170
MICROPYTHON_DEVELS_EMAIL = '[email protected]'
6271
CPYTHON_DEVELS = 'CPython Developers'
6372
CPYTHON_DEVELS_EMAIL = '[email protected]'
73+
PYPY_DEVELS = 'PyPy Developers'
74+
PYPY_DEVELS_EMAIL = '[email protected]'
6475

6576
def parse_metadata(f):
6677
data = {}
@@ -107,6 +118,13 @@ def main():
107118
data["license"] = "Python"
108119
data["desc"] = "CPython %s module ported to MicroPython" % module
109120
data["long_desc"] = CPYTHON_DESC
121+
elif data["srctype"] == "pypy":
122+
data["author"] = PYPY_DEVELS
123+
data["author_email"] = PYPY_DEVELS_EMAIL
124+
data["maintainer"] = MICROPYTHON_DEVELS
125+
data["license"] = "MIT"
126+
data["desc"] = "PyPy %s module ported to MicroPython" % module
127+
data["long_desc"] = PYPY_DESC
110128
elif data["srctype"] == "micropython-lib":
111129
if "author" not in data:
112130
data["author"] = MICROPYTHON_DEVELS

0 commit comments

Comments
 (0)