From ff5745ca6f9712c8c251d188f260f6732d712c61 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Wed, 13 Jul 2022 13:58:00 +1000 Subject: [PATCH 1/4] top: Remove all setup.py files. These are unused and will be replaced with manifest.py. Signed-off-by: Jim Mussared --- micropython/test.support/setup.py | 24 ------------ micropython/uaiohttpclient/setup.py | 24 ------------ micropython/ucontextlib/setup.py | 24 ------------ micropython/udnspkt/setup.py | 24 ------------ micropython/umqtt.robust/setup.py | 24 ------------ micropython/umqtt.simple/setup.py | 24 ------------ micropython/upip/setup.py | 24 ------------ micropython/upysh/setup.py | 24 ------------ micropython/urllib.urequest/setup.py | 24 ------------ micropython/utarfile/setup.py | 24 ------------ micropython/xmltok/setup.py | 24 ------------ python-ecosys/urequests/setup.py | 24 ------------ python-stdlib/__future__/setup.py | 24 ------------ python-stdlib/_markupbase/setup.py | 25 ------------- python-stdlib/abc/setup.py | 24 ------------ python-stdlib/argparse/setup.py | 24 ------------ python-stdlib/base64/setup.py | 25 ------------- python-stdlib/binascii/setup.py | 24 ------------ python-stdlib/bisect/setup.py | 29 --------------- python-stdlib/cgi/setup.py | 24 ------------ python-stdlib/cmd/setup.py | 24 ------------ .../collections.defaultdict/setup.py | 24 ------------ python-stdlib/collections.deque/setup.py | 24 ------------ python-stdlib/collections/setup.py | 24 ------------ python-stdlib/contextlib/setup.py | 25 ------------- python-stdlib/copy/setup.py | 24 ------------ python-stdlib/curses.ascii/setup.py | 24 ------------ python-stdlib/datetime/setup.py | 24 ------------ python-stdlib/email.charset/setup.py | 29 --------------- python-stdlib/email.encoders/setup.py | 31 ---------------- python-stdlib/email.errors/setup.py | 24 ------------ python-stdlib/email.feedparser/setup.py | 30 --------------- python-stdlib/email.header/setup.py | 31 ---------------- python-stdlib/email.internal/setup.py | 37 ------------------- python-stdlib/email.message/setup.py | 33 ----------------- python-stdlib/email.parser/setup.py | 30 --------------- python-stdlib/email.utils/setup.py | 35 ------------------ python-stdlib/errno/setup.py | 24 ------------ python-stdlib/fnmatch/setup.py | 24 ------------ python-stdlib/functools/setup.py | 24 ------------ python-stdlib/getopt/setup.py | 25 ------------- python-stdlib/glob/setup.py | 25 ------------- python-stdlib/gzip/setup.py | 24 ------------ python-stdlib/hashlib/setup.py | 24 ------------ python-stdlib/heapq/setup.py | 24 ------------ python-stdlib/hmac/setup.py | 25 ------------- python-stdlib/html.entities/setup.py | 24 ------------ python-stdlib/html.parser/setup.py | 30 --------------- python-stdlib/html/setup.py | 25 ------------- python-stdlib/http.client/setup.py | 32 ---------------- python-stdlib/inspect/setup.py | 24 ------------ python-stdlib/io/setup.py | 24 ------------ python-stdlib/itertools/setup.py | 24 ------------ python-stdlib/json/setup.py | 18 --------- python-stdlib/locale/setup.py | 24 ------------ python-stdlib/logging/setup.py | 24 ------------ python-stdlib/operator/setup.py | 24 ------------ python-stdlib/os.path/setup.py | 24 ------------ python-stdlib/os/setup.py | 24 ------------ python-stdlib/pickle/setup.py | 24 ------------ python-stdlib/pkg_resources/setup.py | 24 ------------ python-stdlib/pkgutil/setup.py | 25 ------------- python-stdlib/pprint/setup.py | 24 ------------ python-stdlib/pystone/setup.py | 24 ------------ python-stdlib/pystone_lowmem/setup.py | 24 ------------ python-stdlib/quopri/setup.py | 24 ------------ python-stdlib/random/setup.py | 24 ------------ python-stdlib/shutil/setup.py | 24 ------------ python-stdlib/socket/setup.py | 24 ------------ python-stdlib/ssl/setup.py | 24 ------------ python-stdlib/stat/setup.py | 24 ------------ python-stdlib/string/setup.py | 24 ------------ python-stdlib/struct/setup.py | 24 ------------ python-stdlib/test.pystone/setup.py | 24 ------------ python-stdlib/textwrap/setup.py | 24 ------------ python-stdlib/threading/setup.py | 24 ------------ python-stdlib/timeit/setup.py | 31 ---------------- python-stdlib/traceback/setup.py | 24 ------------ python-stdlib/types/setup.py | 13 ------- python-stdlib/unittest/setup.py | 25 ------------- python-stdlib/urllib.parse/setup.py | 29 --------------- python-stdlib/uu/setup.py | 25 ------------- python-stdlib/warnings/setup.py | 24 ------------ unix-ffi/_libc/setup.py | 24 ------------ unix-ffi/fcntl/setup.py | 25 ------------- unix-ffi/ffilib/setup.py | 24 ------------ unix-ffi/gettext/setup.py | 25 ------------- unix-ffi/machine/setup.py | 25 ------------- unix-ffi/multiprocessing/setup.py | 25 ------------- unix-ffi/os/setup.py | 25 ------------- unix-ffi/pwd/setup.py | 25 ------------- unix-ffi/re-pcre/setup.py | 25 ------------- unix-ffi/select/setup.py | 25 ------------- unix-ffi/signal/setup.py | 25 ------------- unix-ffi/sqlite3/setup.py | 25 ------------- unix-ffi/time/setup.py | 25 ------------- unix-ffi/tty/setup.py | 24 ------------ unix-ffi/ucurses/setup.py | 25 ------------- 98 files changed, 2452 deletions(-) delete mode 100644 micropython/test.support/setup.py delete mode 100644 micropython/uaiohttpclient/setup.py delete mode 100644 micropython/ucontextlib/setup.py delete mode 100644 micropython/udnspkt/setup.py delete mode 100644 micropython/umqtt.robust/setup.py delete mode 100644 micropython/umqtt.simple/setup.py delete mode 100644 micropython/upip/setup.py delete mode 100644 micropython/upysh/setup.py delete mode 100644 micropython/urllib.urequest/setup.py delete mode 100644 micropython/utarfile/setup.py delete mode 100644 micropython/xmltok/setup.py delete mode 100644 python-ecosys/urequests/setup.py delete mode 100644 python-stdlib/__future__/setup.py delete mode 100644 python-stdlib/_markupbase/setup.py delete mode 100644 python-stdlib/abc/setup.py delete mode 100644 python-stdlib/argparse/setup.py delete mode 100644 python-stdlib/base64/setup.py delete mode 100644 python-stdlib/binascii/setup.py delete mode 100644 python-stdlib/bisect/setup.py delete mode 100644 python-stdlib/cgi/setup.py delete mode 100644 python-stdlib/cmd/setup.py delete mode 100644 python-stdlib/collections.defaultdict/setup.py delete mode 100644 python-stdlib/collections.deque/setup.py delete mode 100644 python-stdlib/collections/setup.py delete mode 100644 python-stdlib/contextlib/setup.py delete mode 100644 python-stdlib/copy/setup.py delete mode 100644 python-stdlib/curses.ascii/setup.py delete mode 100644 python-stdlib/datetime/setup.py delete mode 100644 python-stdlib/email.charset/setup.py delete mode 100644 python-stdlib/email.encoders/setup.py delete mode 100644 python-stdlib/email.errors/setup.py delete mode 100644 python-stdlib/email.feedparser/setup.py delete mode 100644 python-stdlib/email.header/setup.py delete mode 100644 python-stdlib/email.internal/setup.py delete mode 100644 python-stdlib/email.message/setup.py delete mode 100644 python-stdlib/email.parser/setup.py delete mode 100644 python-stdlib/email.utils/setup.py delete mode 100644 python-stdlib/errno/setup.py delete mode 100644 python-stdlib/fnmatch/setup.py delete mode 100644 python-stdlib/functools/setup.py delete mode 100644 python-stdlib/getopt/setup.py delete mode 100644 python-stdlib/glob/setup.py delete mode 100644 python-stdlib/gzip/setup.py delete mode 100644 python-stdlib/hashlib/setup.py delete mode 100644 python-stdlib/heapq/setup.py delete mode 100644 python-stdlib/hmac/setup.py delete mode 100644 python-stdlib/html.entities/setup.py delete mode 100644 python-stdlib/html.parser/setup.py delete mode 100644 python-stdlib/html/setup.py delete mode 100644 python-stdlib/http.client/setup.py delete mode 100644 python-stdlib/inspect/setup.py delete mode 100644 python-stdlib/io/setup.py delete mode 100644 python-stdlib/itertools/setup.py delete mode 100644 python-stdlib/json/setup.py delete mode 100644 python-stdlib/locale/setup.py delete mode 100644 python-stdlib/logging/setup.py delete mode 100644 python-stdlib/operator/setup.py delete mode 100644 python-stdlib/os.path/setup.py delete mode 100644 python-stdlib/os/setup.py delete mode 100644 python-stdlib/pickle/setup.py delete mode 100644 python-stdlib/pkg_resources/setup.py delete mode 100644 python-stdlib/pkgutil/setup.py delete mode 100644 python-stdlib/pprint/setup.py delete mode 100644 python-stdlib/pystone/setup.py delete mode 100644 python-stdlib/pystone_lowmem/setup.py delete mode 100644 python-stdlib/quopri/setup.py delete mode 100644 python-stdlib/random/setup.py delete mode 100644 python-stdlib/shutil/setup.py delete mode 100644 python-stdlib/socket/setup.py delete mode 100644 python-stdlib/ssl/setup.py delete mode 100644 python-stdlib/stat/setup.py delete mode 100644 python-stdlib/string/setup.py delete mode 100644 python-stdlib/struct/setup.py delete mode 100644 python-stdlib/test.pystone/setup.py delete mode 100644 python-stdlib/textwrap/setup.py delete mode 100644 python-stdlib/threading/setup.py delete mode 100644 python-stdlib/timeit/setup.py delete mode 100644 python-stdlib/traceback/setup.py delete mode 100644 python-stdlib/types/setup.py delete mode 100644 python-stdlib/unittest/setup.py delete mode 100644 python-stdlib/urllib.parse/setup.py delete mode 100644 python-stdlib/uu/setup.py delete mode 100644 python-stdlib/warnings/setup.py delete mode 100644 unix-ffi/_libc/setup.py delete mode 100644 unix-ffi/fcntl/setup.py delete mode 100644 unix-ffi/ffilib/setup.py delete mode 100644 unix-ffi/gettext/setup.py delete mode 100644 unix-ffi/machine/setup.py delete mode 100644 unix-ffi/multiprocessing/setup.py delete mode 100644 unix-ffi/os/setup.py delete mode 100644 unix-ffi/pwd/setup.py delete mode 100644 unix-ffi/re-pcre/setup.py delete mode 100644 unix-ffi/select/setup.py delete mode 100644 unix-ffi/signal/setup.py delete mode 100644 unix-ffi/sqlite3/setup.py delete mode 100644 unix-ffi/time/setup.py delete mode 100644 unix-ffi/tty/setup.py delete mode 100644 unix-ffi/ucurses/setup.py diff --git a/micropython/test.support/setup.py b/micropython/test.support/setup.py deleted file mode 100644 index e24879af7..000000000 --- a/micropython/test.support/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-test.support", - version="0.1.3", - description="test.support module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["test"], -) diff --git a/micropython/uaiohttpclient/setup.py b/micropython/uaiohttpclient/setup.py deleted file mode 100644 index 86e7ac5b1..000000000 --- a/micropython/uaiohttpclient/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-uaiohttpclient", - version="0.5.1", - description="HTTP client module for MicroPython uasyncio module", - long_description=open("README").read(), - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["uaiohttpclient"], -) diff --git a/micropython/ucontextlib/setup.py b/micropython/ucontextlib/setup.py deleted file mode 100644 index aac090f6e..000000000 --- a/micropython/ucontextlib/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-ucontextlib", - version="0.1.1", - description="ucontextlib module for MicroPython", - long_description="Minimal subset of contextlib for MicroPython low-memory ports", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["ucontextlib"], -) diff --git a/micropython/udnspkt/setup.py b/micropython/udnspkt/setup.py deleted file mode 100644 index f0c8c0626..000000000 --- a/micropython/udnspkt/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-udnspkt", - version="0.1", - description="Make and parse DNS packets (Sans I/O approach).", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["udnspkt"], -) diff --git a/micropython/umqtt.robust/setup.py b/micropython/umqtt.robust/setup.py deleted file mode 100644 index f0f23ed8c..000000000 --- a/micropython/umqtt.robust/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-umqtt.robust", - version="1.0.1", - description='Lightweight MQTT client for MicroPython ("robust" version).', - long_description=open("README.rst").read(), - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["umqtt"], -) diff --git a/micropython/umqtt.simple/setup.py b/micropython/umqtt.simple/setup.py deleted file mode 100644 index 4da36993c..000000000 --- a/micropython/umqtt.simple/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-umqtt.simple", - version="1.3.4", - description="Lightweight MQTT client for MicroPython.", - long_description=open("README.rst").read(), - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["umqtt"], -) diff --git a/micropython/upip/setup.py b/micropython/upip/setup.py deleted file mode 100644 index 5e8ff0b21..000000000 --- a/micropython/upip/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-upip", - version="1.2.4", - description="Simple package manager for MicroPython.", - long_description="Simple self-hosted package manager for MicroPython (requires usocket, ussl, uzlib, uctypes builtin modules). Compatible only with packages without custom setup.py code.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["upip", "upip_utarfile"], -) diff --git a/micropython/upysh/setup.py b/micropython/upysh/setup.py deleted file mode 100644 index c1608d313..000000000 --- a/micropython/upysh/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-upysh", - version="0.6.1", - description="Minimalistic file shell using native Python syntax.", - long_description="Minimalistic file shell using native Python syntax.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["upysh"], -) diff --git a/micropython/urllib.urequest/setup.py b/micropython/urllib.urequest/setup.py deleted file mode 100644 index 5652f54b5..000000000 --- a/micropython/urllib.urequest/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-urllib.urequest", - version="0.6", - description="urllib.urequest module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["urllib"], -) diff --git a/micropython/utarfile/setup.py b/micropython/utarfile/setup.py deleted file mode 100644 index a3d8a862e..000000000 --- a/micropython/utarfile/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-utarfile", - version="0.3.2", - description="utarfile module for MicroPython", - long_description="Lightweight tarfile module subset", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["utarfile"], -) diff --git a/micropython/xmltok/setup.py b/micropython/xmltok/setup.py deleted file mode 100644 index 8b8b237c0..000000000 --- a/micropython/xmltok/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-xmltok", - version="0.2", - description="xmltok module for MicroPython", - long_description="Simple XML tokenizer", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["xmltok"], -) diff --git a/python-ecosys/urequests/setup.py b/python-ecosys/urequests/setup.py deleted file mode 100644 index 51f1158e0..000000000 --- a/python-ecosys/urequests/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-urequests", - version="0.7", - description="urequests module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["urequests"], -) diff --git a/python-stdlib/__future__/setup.py b/python-stdlib/__future__/setup.py deleted file mode 100644 index 9195f702f..000000000 --- a/python-stdlib/__future__/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-future", - version="0.0.3", - description="Dummy __future__ module for MicroPython", - long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["__future__"], -) diff --git a/python-stdlib/_markupbase/setup.py b/python-stdlib/_markupbase/setup.py deleted file mode 100644 index b0c3a6d4e..000000000 --- a/python-stdlib/_markupbase/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-_markupbase", - version="3.3.3-1", - description="CPython _markupbase module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["_markupbase"], - install_requires=["micropython-re-pcre"], -) diff --git a/python-stdlib/abc/setup.py b/python-stdlib/abc/setup.py deleted file mode 100644 index 384dfd523..000000000 --- a/python-stdlib/abc/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-abc", - version="0.0.1", - description="Dummy abc module for MicroPython", - long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["abc"], -) diff --git a/python-stdlib/argparse/setup.py b/python-stdlib/argparse/setup.py deleted file mode 100644 index f43ebd5d8..000000000 --- a/python-stdlib/argparse/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-argparse", - version="0.4", - description="argparse module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Damien George", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["argparse"], -) diff --git a/python-stdlib/base64/setup.py b/python-stdlib/base64/setup.py deleted file mode 100644 index bb306611b..000000000 --- a/python-stdlib/base64/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-base64", - version="3.3.3-4", - description="CPython base64 module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["base64"], - install_requires=["micropython-binascii", "micropython-re-pcre", "micropython-struct"], -) diff --git a/python-stdlib/binascii/setup.py b/python-stdlib/binascii/setup.py deleted file mode 100644 index 1d8e23433..000000000 --- a/python-stdlib/binascii/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-binascii", - version="2.4.0-5", - description="PyPy binascii module ported to MicroPython", - long_description="This is a module ported from PyPy standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="PyPy Developers", - author_email="pypy-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["binascii"], -) diff --git a/python-stdlib/bisect/setup.py b/python-stdlib/bisect/setup.py deleted file mode 100644 index bc6f32046..000000000 --- a/python-stdlib/bisect/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise distutils will peek up our -# module instead of system. -sys.path.pop(0) -from setuptools import setup - - -def desc_dummy(name): - return "Dummy %s module to MicroPython" % name - - -def desc_cpython(name): - return "CPython %s module ported to MicroPython" % name - - -NAME = "bisect" - -setup( - name="micropython-" + NAME, - version="0.5", - description=desc_cpython(NAME), - url="https://github.com/micropython/micropython/issues/405", - author="CPython Developers", - maintainer="MicroPython Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - py_modules=[NAME], -) diff --git a/python-stdlib/cgi/setup.py b/python-stdlib/cgi/setup.py deleted file mode 100644 index 0e5ac351c..000000000 --- a/python-stdlib/cgi/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-cgi", - version="3.3.3-2", - description="CPython cgi module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["cgi"], -) diff --git a/python-stdlib/cmd/setup.py b/python-stdlib/cmd/setup.py deleted file mode 100644 index 788a7e59b..000000000 --- a/python-stdlib/cmd/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-cmd", - version="3.4.0-2", - description="CPython cmd module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["cmd"], -) diff --git a/python-stdlib/collections.defaultdict/setup.py b/python-stdlib/collections.defaultdict/setup.py deleted file mode 100644 index aa0003f70..000000000 --- a/python-stdlib/collections.defaultdict/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-collections.defaultdict", - version="0.3", - description="collections.defaultdict module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["collections"], -) diff --git a/python-stdlib/collections.deque/setup.py b/python-stdlib/collections.deque/setup.py deleted file mode 100644 index 72dcb00db..000000000 --- a/python-stdlib/collections.deque/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-collections.deque", - version="0.1.3", - description="collections.deque module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["collections"], -) diff --git a/python-stdlib/collections/setup.py b/python-stdlib/collections/setup.py deleted file mode 100644 index 0be48b26e..000000000 --- a/python-stdlib/collections/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-collections", - version="0.1.2", - description="collections module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["collections"], -) diff --git a/python-stdlib/contextlib/setup.py b/python-stdlib/contextlib/setup.py deleted file mode 100644 index eb375a75b..000000000 --- a/python-stdlib/contextlib/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-contextlib", - version="3.4.2-4", - description="CPython contextlib module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["contextlib"], - install_requires=["micropython-ucontextlib", "micropython-collections"], -) diff --git a/python-stdlib/copy/setup.py b/python-stdlib/copy/setup.py deleted file mode 100644 index 45fd26eb1..000000000 --- a/python-stdlib/copy/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-copy", - version="3.3.3-2", - description="CPython copy module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["copy"], -) diff --git a/python-stdlib/curses.ascii/setup.py b/python-stdlib/curses.ascii/setup.py deleted file mode 100644 index 9bcd9dd41..000000000 --- a/python-stdlib/curses.ascii/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-curses.ascii", - version="3.4.2-1", - description="CPython curses.ascii module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["curses"], -) diff --git a/python-stdlib/datetime/setup.py b/python-stdlib/datetime/setup.py deleted file mode 100644 index e925aa2f8..000000000 --- a/python-stdlib/datetime/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-datetime", - version="4.0.0", - description="datetime module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["datetime"], -) diff --git a/python-stdlib/email.charset/setup.py b/python-stdlib/email.charset/setup.py deleted file mode 100644 index 774c3d4d4..000000000 --- a/python-stdlib/email.charset/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-email.charset", - version="0.5.1", - description="CPython email.charset module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["email"], - install_requires=[ - "micropython-functools", - "micropython-email.encoders", - "micropython-email.errors", - ], -) diff --git a/python-stdlib/email.encoders/setup.py b/python-stdlib/email.encoders/setup.py deleted file mode 100644 index 3b871a787..000000000 --- a/python-stdlib/email.encoders/setup.py +++ /dev/null @@ -1,31 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-email.encoders", - version="0.5.1", - description="CPython email.encoders module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["email"], - install_requires=[ - "micropython-base64", - "micropython-binascii", - "micropython-quopri", - "micropython-re-pcre", - "micropython-string", - ], -) diff --git a/python-stdlib/email.errors/setup.py b/python-stdlib/email.errors/setup.py deleted file mode 100644 index e1f9d9da6..000000000 --- a/python-stdlib/email.errors/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-email.errors", - version="0.5.1", - description="CPython email.errors module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["email"], -) diff --git a/python-stdlib/email.feedparser/setup.py b/python-stdlib/email.feedparser/setup.py deleted file mode 100644 index 6922e29d4..000000000 --- a/python-stdlib/email.feedparser/setup.py +++ /dev/null @@ -1,30 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-email.feedparser", - version="0.5.1", - description="CPython email.feedparser module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["email"], - install_requires=[ - "micropython-re-pcre", - "micropython-email.errors", - "micropython-email.message", - "micropython-email.internal", - ], -) diff --git a/python-stdlib/email.header/setup.py b/python-stdlib/email.header/setup.py deleted file mode 100644 index e321861df..000000000 --- a/python-stdlib/email.header/setup.py +++ /dev/null @@ -1,31 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-email.header", - version="0.5.2", - description="CPython email.header module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["email"], - install_requires=[ - "micropython-re-pcre", - "micropython-binascii", - "micropython-email.encoders", - "micropython-email.errors", - "micropython-email.charset", - ], -) diff --git a/python-stdlib/email.internal/setup.py b/python-stdlib/email.internal/setup.py deleted file mode 100644 index 2a0bf2feb..000000000 --- a/python-stdlib/email.internal/setup.py +++ /dev/null @@ -1,37 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-email.internal", - version="0.5.1", - description="CPython email.internal module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["email"], - install_requires=[ - "micropython-re-pcre", - "micropython-base64", - "micropython-binascii", - "micropython-functools", - "micropython-string", - "micropython-calendar", - "micropython-abc", - "micropython-email.errors", - "micropython-email.header", - "micropython-email.charset", - "micropython-email.utils", - ], -) diff --git a/python-stdlib/email.message/setup.py b/python-stdlib/email.message/setup.py deleted file mode 100644 index 29453a972..000000000 --- a/python-stdlib/email.message/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-email.message", - version="0.5.3", - description="CPython email.message module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["email"], - install_requires=[ - "micropython-re-pcre", - "micropython-uu", - "micropython-base64", - "micropython-binascii", - "micropython-email.utils", - "micropython-email.errors", - "micropython-email.charset", - ], -) diff --git a/python-stdlib/email.parser/setup.py b/python-stdlib/email.parser/setup.py deleted file mode 100644 index b12dece4d..000000000 --- a/python-stdlib/email.parser/setup.py +++ /dev/null @@ -1,30 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-email.parser", - version="0.5.1", - description="CPython email.parser module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["email"], - install_requires=[ - "micropython-warnings", - "micropython-email.feedparser", - "micropython-email.message", - "micropython-email.internal", - ], -) diff --git a/python-stdlib/email.utils/setup.py b/python-stdlib/email.utils/setup.py deleted file mode 100644 index 552b2fd01..000000000 --- a/python-stdlib/email.utils/setup.py +++ /dev/null @@ -1,35 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-email.utils", - version="3.3.3-2", - description="CPython email.utils module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["email"], - install_requires=[ - "micropython-os", - "micropython-re-pcre", - "micropython-base64", - "micropython-random", - "micropython-datetime", - "micropython-urllib.parse", - "micropython-warnings", - "micropython-quopri", - "micropython-email.charset", - ], -) diff --git a/python-stdlib/errno/setup.py b/python-stdlib/errno/setup.py deleted file mode 100644 index 5683a91d3..000000000 --- a/python-stdlib/errno/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-errno", - version="0.1.4", - description="errno module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["errno"], -) diff --git a/python-stdlib/fnmatch/setup.py b/python-stdlib/fnmatch/setup.py deleted file mode 100644 index 06331a9cb..000000000 --- a/python-stdlib/fnmatch/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-fnmatch", - version="0.6.0", - description="CPython fnmatch module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["fnmatch"], -) diff --git a/python-stdlib/functools/setup.py b/python-stdlib/functools/setup.py deleted file mode 100644 index 76f28ebd0..000000000 --- a/python-stdlib/functools/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-functools", - version="0.0.7", - description="functools module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["functools"], -) diff --git a/python-stdlib/getopt/setup.py b/python-stdlib/getopt/setup.py deleted file mode 100644 index 52382c365..000000000 --- a/python-stdlib/getopt/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-getopt", - version="3.3.3-1", - description="CPython getopt module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["getopt"], - install_requires=["micropython-os"], -) diff --git a/python-stdlib/glob/setup.py b/python-stdlib/glob/setup.py deleted file mode 100644 index 171b56aa0..000000000 --- a/python-stdlib/glob/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-glob", - version="0.5.2", - description="CPython glob module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["glob"], - install_requires=["micropython-os", "micropython-re-pcre", "micropython-fnmatch"], -) diff --git a/python-stdlib/gzip/setup.py b/python-stdlib/gzip/setup.py deleted file mode 100644 index 2a890a6b4..000000000 --- a/python-stdlib/gzip/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-gzip", - version="0.1.1", - description="gzip module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["gzip"], -) diff --git a/python-stdlib/hashlib/setup.py b/python-stdlib/hashlib/setup.py deleted file mode 100644 index b7ca591a1..000000000 --- a/python-stdlib/hashlib/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-hashlib", - version="2.4.0-4", - description="PyPy hashlib module ported to MicroPython", - long_description="This is a module ported from PyPy standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="PyPy Developers", - author_email="pypy-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["hashlib"], -) diff --git a/python-stdlib/heapq/setup.py b/python-stdlib/heapq/setup.py deleted file mode 100644 index b8405165c..000000000 --- a/python-stdlib/heapq/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-heapq", - version="0.9.3", - description="CPython heapq module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["heapq"], -) diff --git a/python-stdlib/hmac/setup.py b/python-stdlib/hmac/setup.py deleted file mode 100644 index 141f21e5b..000000000 --- a/python-stdlib/hmac/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-hmac", - version="3.4.2-3", - description="CPython hmac module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["hmac"], - install_requires=["micropython-warnings", "micropython-hashlib"], -) diff --git a/python-stdlib/html.entities/setup.py b/python-stdlib/html.entities/setup.py deleted file mode 100644 index ff0a1a5b4..000000000 --- a/python-stdlib/html.entities/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-html.entities", - version="3.3.3-1", - description="CPython html.entities module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["html"], -) diff --git a/python-stdlib/html.parser/setup.py b/python-stdlib/html.parser/setup.py deleted file mode 100644 index 7223243d1..000000000 --- a/python-stdlib/html.parser/setup.py +++ /dev/null @@ -1,30 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-html.parser", - version="3.3.3-2", - description="CPython html.parser module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["html"], - install_requires=[ - "micropython-_markupbase", - "micropython-warnings", - "micropython-html.entities", - "micropython-re-pcre", - ], -) diff --git a/python-stdlib/html/setup.py b/python-stdlib/html/setup.py deleted file mode 100644 index bded97e81..000000000 --- a/python-stdlib/html/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-html", - version="3.3.3-2", - description="CPython html module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["html"], - install_requires=["micropython-string"], -) diff --git a/python-stdlib/http.client/setup.py b/python-stdlib/http.client/setup.py deleted file mode 100644 index 9015355bf..000000000 --- a/python-stdlib/http.client/setup.py +++ /dev/null @@ -1,32 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-http.client", - version="0.5.1", - description="CPython http.client module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["http"], - install_requires=[ - "micropython-email.parser", - "micropython-email.message", - "micropython-socket", - "micropython-collections", - "micropython-urllib.parse", - "micropython-warnings", - ], -) diff --git a/python-stdlib/inspect/setup.py b/python-stdlib/inspect/setup.py deleted file mode 100644 index 6ad820e0a..000000000 --- a/python-stdlib/inspect/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-inspect", - version="0.1.2", - description="inspect module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["inspect"], -) diff --git a/python-stdlib/io/setup.py b/python-stdlib/io/setup.py deleted file mode 100644 index 84d4b4f4b..000000000 --- a/python-stdlib/io/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-io", - version="0.1", - description="Dummy io module for MicroPython", - long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["io"], -) diff --git a/python-stdlib/itertools/setup.py b/python-stdlib/itertools/setup.py deleted file mode 100644 index 634f35b2d..000000000 --- a/python-stdlib/itertools/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-itertools", - version="0.2.3", - description="itertools module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["itertools"], -) diff --git a/python-stdlib/json/setup.py b/python-stdlib/json/setup.py deleted file mode 100644 index 67bd8fce0..000000000 --- a/python-stdlib/json/setup.py +++ /dev/null @@ -1,18 +0,0 @@ -# import sys -# Remove current dir from sys.path, otherwise distutils will peek up our -# copy module instead of system. -# sys.path.pop(0) -from setuptools import setup - -setup( - name="micropython-json", - version="0.1", - description="CPython json package ported to MicroPython", - url="https://github.com/micropython/micropython/issues/405", - author="CPython Developers", - maintainer="MicroPython Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - install_requires=["micropython-re-pcre"], - packages=["json"], -) diff --git a/python-stdlib/locale/setup.py b/python-stdlib/locale/setup.py deleted file mode 100644 index 670a27182..000000000 --- a/python-stdlib/locale/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-locale", - version="0.0.2", - description="Dummy locale module for MicroPython", - long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["locale"], -) diff --git a/python-stdlib/logging/setup.py b/python-stdlib/logging/setup.py deleted file mode 100644 index a2b3350b5..000000000 --- a/python-stdlib/logging/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-logging", - version="0.3", - description="logging module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["logging"], -) diff --git a/python-stdlib/operator/setup.py b/python-stdlib/operator/setup.py deleted file mode 100644 index 3cbf116e9..000000000 --- a/python-stdlib/operator/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-operator", - version="0.1.1", - description="operator module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["operator"], -) diff --git a/python-stdlib/os.path/setup.py b/python-stdlib/os.path/setup.py deleted file mode 100644 index 3801ab378..000000000 --- a/python-stdlib/os.path/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-os.path", - version="0.1.3", - description="os.path module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["os"], -) diff --git a/python-stdlib/os/setup.py b/python-stdlib/os/setup.py deleted file mode 100644 index e39806fd3..000000000 --- a/python-stdlib/os/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-os", - version="0.6", - description="os module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["os"], -) diff --git a/python-stdlib/pickle/setup.py b/python-stdlib/pickle/setup.py deleted file mode 100644 index f0c7dfb7b..000000000 --- a/python-stdlib/pickle/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-pickle", - version="0.1", - description="Dummy pickle module for MicroPython", - long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["pickle"], -) diff --git a/python-stdlib/pkg_resources/setup.py b/python-stdlib/pkg_resources/setup.py deleted file mode 100644 index 2f3cd6e2f..000000000 --- a/python-stdlib/pkg_resources/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-pkg_resources", - version="0.2.1", - description="pkg_resources module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["pkg_resources"], -) diff --git a/python-stdlib/pkgutil/setup.py b/python-stdlib/pkgutil/setup.py deleted file mode 100644 index eb92e7543..000000000 --- a/python-stdlib/pkgutil/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-pkgutil", - version="0.1.1", - description="pkgutil module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["pkgutil"], - install_requires=["micropython-pkg_resources"], -) diff --git a/python-stdlib/pprint/setup.py b/python-stdlib/pprint/setup.py deleted file mode 100644 index 124046d3f..000000000 --- a/python-stdlib/pprint/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-pprint", - version="0.0.4", - description="Dummy pprint module for MicroPython", - long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["pprint"], -) diff --git a/python-stdlib/pystone/setup.py b/python-stdlib/pystone/setup.py deleted file mode 100644 index 86f8cc658..000000000 --- a/python-stdlib/pystone/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-pystone", - version="3.4.2-2", - description="CPython pystone module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["pystone"], -) diff --git a/python-stdlib/pystone_lowmem/setup.py b/python-stdlib/pystone_lowmem/setup.py deleted file mode 100644 index 21614b5c6..000000000 --- a/python-stdlib/pystone_lowmem/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-pystone_lowmem", - version="3.4.2-4", - description="CPython pystone_lowmem module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["pystone_lowmem"], -) diff --git a/python-stdlib/quopri/setup.py b/python-stdlib/quopri/setup.py deleted file mode 100644 index 780778dfa..000000000 --- a/python-stdlib/quopri/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-quopri", - version="0.5.1", - description="CPython quopri module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["quopri"], -) diff --git a/python-stdlib/random/setup.py b/python-stdlib/random/setup.py deleted file mode 100644 index 3b1acdc5c..000000000 --- a/python-stdlib/random/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-random", - version="0.2", - description="Dummy random module for MicroPython", - long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["random"], -) diff --git a/python-stdlib/shutil/setup.py b/python-stdlib/shutil/setup.py deleted file mode 100644 index b133bacd8..000000000 --- a/python-stdlib/shutil/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-shutil", - version="0.0.3", - description="shutil module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["shutil"], -) diff --git a/python-stdlib/socket/setup.py b/python-stdlib/socket/setup.py deleted file mode 100644 index 505667288..000000000 --- a/python-stdlib/socket/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-socket", - version="0.5.2", - description="socket module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["socket"], -) diff --git a/python-stdlib/ssl/setup.py b/python-stdlib/ssl/setup.py deleted file mode 100644 index 1c38e2c7a..000000000 --- a/python-stdlib/ssl/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-ssl", - version="0.1", - description="Dummy ssl module for MicroPython", - long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["ssl"], -) diff --git a/python-stdlib/stat/setup.py b/python-stdlib/stat/setup.py deleted file mode 100644 index f7b084e24..000000000 --- a/python-stdlib/stat/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-stat", - version="0.5.1", - description="CPython stat module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["stat"], -) diff --git a/python-stdlib/string/setup.py b/python-stdlib/string/setup.py deleted file mode 100644 index 5c8ee89b9..000000000 --- a/python-stdlib/string/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-string", - version="0.1.1", - description="string module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["string"], -) diff --git a/python-stdlib/struct/setup.py b/python-stdlib/struct/setup.py deleted file mode 100644 index f10cbd5d3..000000000 --- a/python-stdlib/struct/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-struct", - version="0.1.1", - description="struct module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["struct"], -) diff --git a/python-stdlib/test.pystone/setup.py b/python-stdlib/test.pystone/setup.py deleted file mode 100644 index fc18526d1..000000000 --- a/python-stdlib/test.pystone/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-test.pystone", - version="1.0.1", - description="CPython test.pystone module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["test"], -) diff --git a/python-stdlib/textwrap/setup.py b/python-stdlib/textwrap/setup.py deleted file mode 100644 index 08583e4ab..000000000 --- a/python-stdlib/textwrap/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-textwrap", - version="3.4.2-1", - description="CPython textwrap module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["textwrap"], -) diff --git a/python-stdlib/threading/setup.py b/python-stdlib/threading/setup.py deleted file mode 100644 index 31693ea11..000000000 --- a/python-stdlib/threading/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-threading", - version="0.1", - description="threading module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["threading"], -) diff --git a/python-stdlib/timeit/setup.py b/python-stdlib/timeit/setup.py deleted file mode 100644 index 7f17d7f09..000000000 --- a/python-stdlib/timeit/setup.py +++ /dev/null @@ -1,31 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-timeit", - version="3.3.3-3", - description="CPython timeit module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["timeit"], - install_requires=[ - "micropython-getopt", - "micropython-itertools", - "micropython-linecache", - "micropython-time", - "micropython-traceback", - ], -) diff --git a/python-stdlib/traceback/setup.py b/python-stdlib/traceback/setup.py deleted file mode 100644 index db2999c88..000000000 --- a/python-stdlib/traceback/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-traceback", - version="0.3", - description="traceback module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["traceback"], -) diff --git a/python-stdlib/types/setup.py b/python-stdlib/types/setup.py deleted file mode 100644 index e9d2877c1..000000000 --- a/python-stdlib/types/setup.py +++ /dev/null @@ -1,13 +0,0 @@ -from distutils.core import setup - -setup( - name="micropython-types", - version="0.0.1", - description="CPython types module ported to MicroPython", - url="https://github.com/micropython/micropython/issues/405", - author="CPython Developers", - maintainer="MicroPython Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - py_modules=["types"], -) diff --git a/python-stdlib/unittest/setup.py b/python-stdlib/unittest/setup.py deleted file mode 100644 index d1604f813..000000000 --- a/python-stdlib/unittest/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-unittest", - version="0.9.0", - description="unittest module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["unittest"], - install_requires=["micropython-argparse", "micropython-fnmatch"], -) diff --git a/python-stdlib/urllib.parse/setup.py b/python-stdlib/urllib.parse/setup.py deleted file mode 100644 index 403d42594..000000000 --- a/python-stdlib/urllib.parse/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-urllib.parse", - version="0.5.2", - description="CPython urllib.parse module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["urllib"], - install_requires=[ - "micropython-re-pcre", - "micropython-collections", - "micropython-collections.defaultdict", - ], -) diff --git a/python-stdlib/uu/setup.py b/python-stdlib/uu/setup.py deleted file mode 100644 index 29fe8ebf0..000000000 --- a/python-stdlib/uu/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-uu", - version="0.5.1", - description="CPython uu module ported to MicroPython", - long_description="This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.", - url="https://github.com/micropython/micropython-lib", - author="CPython Developers", - author_email="python-dev@python.org", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="Python", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["uu"], - install_requires=["micropython-binascii", "micropython-os"], -) diff --git a/python-stdlib/warnings/setup.py b/python-stdlib/warnings/setup.py deleted file mode 100644 index c93512ad5..000000000 --- a/python-stdlib/warnings/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-warnings", - version="0.1.1", - description="warnings module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["warnings"], -) diff --git a/unix-ffi/_libc/setup.py b/unix-ffi/_libc/setup.py deleted file mode 100644 index a2530cc5b..000000000 --- a/unix-ffi/_libc/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-libc", - version="0.3.1", - description="MicroPython FFI helper module (deprecated)", - long_description="MicroPython FFI helper module (deprecated, replaced by micropython-ffilib).", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["_libc"], -) diff --git a/unix-ffi/fcntl/setup.py b/unix-ffi/fcntl/setup.py deleted file mode 100644 index 93fd06136..000000000 --- a/unix-ffi/fcntl/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-fcntl", - version="0.0.4", - description="fcntl module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["fcntl"], - install_requires=["micropython-ffilib"], -) diff --git a/unix-ffi/ffilib/setup.py b/unix-ffi/ffilib/setup.py deleted file mode 100644 index 4cfc15bea..000000000 --- a/unix-ffi/ffilib/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-ffilib", - version="0.1.3", - description="MicroPython FFI helper module", - long_description="MicroPython FFI helper module to easily interface with underlying shared libraries", - url="https://github.com/micropython/micropython-lib", - author="Damien George", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["ffilib"], -) diff --git a/unix-ffi/gettext/setup.py b/unix-ffi/gettext/setup.py deleted file mode 100644 index f5cc76fb4..000000000 --- a/unix-ffi/gettext/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-gettext", - version="0.1", - description="gettext module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Riccardo Magliocchetti", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["gettext"], - install_requires=["micropython-ffilib"], -) diff --git a/unix-ffi/machine/setup.py b/unix-ffi/machine/setup.py deleted file mode 100644 index 88ecafaf1..000000000 --- a/unix-ffi/machine/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-machine", - version="0.2.1", - description="machine module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["machine"], - install_requires=["micropython-ffilib", "micropython-os", "micropython-signal"], -) diff --git a/unix-ffi/multiprocessing/setup.py b/unix-ffi/multiprocessing/setup.py deleted file mode 100644 index 62497ea19..000000000 --- a/unix-ffi/multiprocessing/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-multiprocessing", - version="0.1.2", - description="multiprocessing module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["multiprocessing"], - install_requires=["micropython-os", "micropython-select", "micropython-pickle"], -) diff --git a/unix-ffi/os/setup.py b/unix-ffi/os/setup.py deleted file mode 100644 index 9d4219dad..000000000 --- a/unix-ffi/os/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-os", - version="0.6", - description="os module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["os"], - install_requires=["micropython-ffilib", "micropython-errno", "micropython-stat"], -) diff --git a/unix-ffi/pwd/setup.py b/unix-ffi/pwd/setup.py deleted file mode 100644 index 811836932..000000000 --- a/unix-ffi/pwd/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-pwd", - version="0.1", - description="pwd module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Riccardo Magliocchetti", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["pwd"], - install_requires=["micropython-ffilib"], -) diff --git a/unix-ffi/re-pcre/setup.py b/unix-ffi/re-pcre/setup.py deleted file mode 100644 index f624e6250..000000000 --- a/unix-ffi/re-pcre/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-re-pcre", - version="0.2.5", - description="re-pcre module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["re"], - install_requires=["micropython-ffilib"], -) diff --git a/unix-ffi/select/setup.py b/unix-ffi/select/setup.py deleted file mode 100644 index 887b5b9d9..000000000 --- a/unix-ffi/select/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-select", - version="0.3", - description="select module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["select"], - install_requires=["micropython-os", "micropython-ffilib"], -) diff --git a/unix-ffi/signal/setup.py b/unix-ffi/signal/setup.py deleted file mode 100644 index d13328343..000000000 --- a/unix-ffi/signal/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-signal", - version="0.3.2", - description="signal module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["signal"], - install_requires=["micropython-ffilib"], -) diff --git a/unix-ffi/sqlite3/setup.py b/unix-ffi/sqlite3/setup.py deleted file mode 100644 index 79226dd2b..000000000 --- a/unix-ffi/sqlite3/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-sqlite3", - version="0.2.4", - description="sqlite3 module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["sqlite3"], - install_requires=["micropython-ffilib"], -) diff --git a/unix-ffi/time/setup.py b/unix-ffi/time/setup.py deleted file mode 100644 index c3ad0332a..000000000 --- a/unix-ffi/time/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-time", - version="0.5", - description="time module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["time"], - install_requires=["micropython-ffilib"], -) diff --git a/unix-ffi/tty/setup.py b/unix-ffi/tty/setup.py deleted file mode 100644 index 199c37e97..000000000 --- a/unix-ffi/tty/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-tty", - version="1.0.1", - description="tty module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="micropython-lib Developers", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - py_modules=["tty"], -) diff --git a/unix-ffi/ucurses/setup.py b/unix-ffi/ucurses/setup.py deleted file mode 100644 index 04dbde756..000000000 --- a/unix-ffi/ucurses/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -# Remove current dir from sys.path, otherwise setuptools will peek up our -# module instead of system's. -sys.path.pop(0) -from setuptools import setup - -sys.path.append("..") -import sdist_upip - -setup( - name="micropython-ucurses", - version="0.1.2", - description="ucurses module for MicroPython", - long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", - url="https://github.com/micropython/micropython-lib", - author="Paul Sokolovsky", - author_email="micro-python@googlegroups.com", - maintainer="micropython-lib Developers", - maintainer_email="micro-python@googlegroups.com", - license="MIT", - cmdclass={"sdist": sdist_upip.sdist}, - packages=["ucurses"], - install_requires=["micropython-os", "micropython-tty", "micropython-select"], -) From 9ef91c88467c5e3738a36d39e14d12d369d0597d Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Wed, 13 Jul 2022 14:13:32 +1000 Subject: [PATCH 2/4] micropython/upip: Remove upip library. This is unmaintained and not the one installed by default on boards (see github.com/micropython/micropython/blob/master/tools/upip.py) Signed-off-by: Jim Mussared --- micropython/upip/Makefile | 13 -- micropython/upip/bootstrap_upip.sh | 19 -- micropython/upip/metadata.txt | 7 - micropython/upip/upip.py | 336 ----------------------------- micropython/upip/upip_utarfile.py | 95 -------- 5 files changed, 470 deletions(-) delete mode 100644 micropython/upip/Makefile delete mode 100755 micropython/upip/bootstrap_upip.sh delete mode 100644 micropython/upip/metadata.txt delete mode 100644 micropython/upip/upip.py delete mode 100644 micropython/upip/upip_utarfile.py diff --git a/micropython/upip/Makefile b/micropython/upip/Makefile deleted file mode 100644 index a80a0e23a..000000000 --- a/micropython/upip/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -all: - -# This target prepares snapshot of all dependency modules, for -# self-contained install -deps: upip_gzip.py upip_utarfile.py - -upip_gzip.py: ../gzip/gzip.py - cp $^ $@ -upip_utarfile.py: ../utarfile/utarfile.py - cp $^ $@ - -clean: - rm upip_*.py diff --git a/micropython/upip/bootstrap_upip.sh b/micropython/upip/bootstrap_upip.sh deleted file mode 100755 index 9692f450c..000000000 --- a/micropython/upip/bootstrap_upip.sh +++ /dev/null @@ -1,19 +0,0 @@ -# This script performs bootstrap installation of upip package manager from PyPI -# All the other packages can be installed using it. - -if [ -z "$TMPDIR" ]; then - cd /tmp -else - cd $TMPDIR -fi - -# Remove any stale old version -rm -rf micropython-upip-* -wget -nd -rH -l1 -D files.pythonhosted.org https://pypi.org/project/micropython-upip/ --reject=html - -tar xfz micropython-upip-*.tar.gz -mkdir -p ~/.micropython/lib/ -cp micropython-upip-*/upip*.py ~/.micropython/lib/ - -echo "upip is installed. To use:" -echo "micropython -m upip --help" diff --git a/micropython/upip/metadata.txt b/micropython/upip/metadata.txt deleted file mode 100644 index 95d03c03d..000000000 --- a/micropython/upip/metadata.txt +++ /dev/null @@ -1,7 +0,0 @@ -srctype = micropython-lib -type = module -version = 1.2.4 -author = Paul Sokolovsky -extra_modules = upip_utarfile -desc = Simple package manager for MicroPython. -long_desc = Simple self-hosted package manager for MicroPython (requires usocket, ussl, uzlib, uctypes builtin modules). Compatible only with packages without custom setup.py code. diff --git a/micropython/upip/upip.py b/micropython/upip/upip.py deleted file mode 100644 index b28fdfbb2..000000000 --- a/micropython/upip/upip.py +++ /dev/null @@ -1,336 +0,0 @@ -# -# upip - Package manager for MicroPython -# -# Copyright (c) 2015-2018 Paul Sokolovsky -# -# Licensed under the MIT license. -# -import sys -import gc -import uos as os -import uerrno as errno -import ujson as json -import uzlib -import upip_utarfile as tarfile - -gc.collect() - - -debug = False -install_path = None -cleanup_files = [] -gzdict_sz = 16 + 15 - -file_buf = bytearray(512) - - -class NotFoundError(Exception): - pass - - -def op_split(path): - if path == "": - return ("", "") - r = path.rsplit("/", 1) - if len(r) == 1: - return ("", path) - head = r[0] - if not head: - head = "/" - return (head, r[1]) - - -def op_basename(path): - return op_split(path)[1] - - -# Expects *file* name -def _makedirs(name, mode=0o777): - ret = False - s = "" - comps = name.rstrip("/").split("/")[:-1] - if comps[0] == "": - s = "/" - for c in comps: - if s and s[-1] != "/": - s += "/" - s += c - try: - os.mkdir(s) - ret = True - except OSError as e: - if e.args[0] != errno.EEXIST and e.args[0] != errno.EISDIR: - raise - ret = False - return ret - - -def save_file(fname, subf): - global file_buf - with open(fname, "wb") as outf: - while True: - sz = subf.readinto(file_buf) - if not sz: - break - outf.write(file_buf, sz) - - -def install_tar(f, prefix): - meta = {} - for info in f: - # print(info) - fname = info.name - try: - fname = fname[fname.index("/") + 1 :] - except ValueError: - fname = "" - - save = True - for p in ("setup.", "PKG-INFO", "README"): - # print(fname, p) - if fname.startswith(p) or ".egg-info" in fname: - if fname.endswith("/requires.txt"): - meta["deps"] = f.extractfile(info).read() - save = False - if debug: - print("Skipping", fname) - break - - if save: - outfname = prefix + fname - if info.type != tarfile.DIRTYPE: - if debug: - print("Extracting " + outfname) - _makedirs(outfname) - subf = f.extractfile(info) - save_file(outfname, subf) - return meta - - -def expandhome(s): - if "~/" in s: - h = os.getenv("HOME") - s = s.replace("~/", h + "/") - return s - - -import ussl -import usocket - -warn_ussl = True - - -def url_open(url): - global warn_ussl - - if debug: - print(url) - - proto, _, host, urlpath = url.split("/", 3) - try: - ai = usocket.getaddrinfo(host, 443, 0, usocket.SOCK_STREAM) - except OSError as e: - fatal("Unable to resolve %s (no Internet?)" % host, e) - # print("Address infos:", ai) - ai = ai[0] - - s = usocket.socket(ai[0], ai[1], ai[2]) - try: - # print("Connect address:", addr) - s.connect(ai[-1]) - - if proto == "https:": - s = ussl.wrap_socket(s, server_hostname=host) - if warn_ussl: - print("Warning: %s SSL certificate is not validated" % host) - warn_ussl = False - - # MicroPython rawsocket module supports file interface directly - s.write("GET /%s HTTP/1.0\r\nHost: %s\r\n\r\n" % (urlpath, host)) - l = s.readline() - protover, status, msg = l.split(None, 2) - if status != b"200": - if status == b"404" or status == b"301": - raise NotFoundError("Package not found") - raise ValueError(status) - while 1: - l = s.readline() - if not l: - raise ValueError("Unexpected EOF in HTTP headers") - if l == b"\r\n": - break - except Exception as e: - s.close() - raise e - - return s - - -def get_pkg_metadata(name): - f = url_open("https://pypi.org/pypi/%s/json" % name) - try: - return json.load(f) - finally: - f.close() - - -def fatal(msg, exc=None): - print("Error:", msg) - if exc and debug: - raise exc - sys.exit(1) - - -def install_pkg(pkg_spec, install_path): - data = get_pkg_metadata(pkg_spec) - - latest_ver = data["info"]["version"] - packages = data["releases"][latest_ver] - del data - gc.collect() - assert len(packages) == 1 - package_url = packages[0]["url"] - print("Installing %s %s from %s" % (pkg_spec, latest_ver, package_url)) - package_fname = op_basename(package_url) - f1 = url_open(package_url) - try: - f2 = uzlib.DecompIO(f1, gzdict_sz) - f3 = tarfile.TarFile(fileobj=f2) - meta = install_tar(f3, install_path) - finally: - f1.close() - del f3 - del f2 - gc.collect() - return meta - - -def install(to_install, install_path=None): - # Calculate gzip dictionary size to use - global gzdict_sz - sz = gc.mem_free() + gc.mem_alloc() - if sz <= 65536: - gzdict_sz = 16 + 12 - - if install_path is None: - install_path = get_install_path() - if install_path[-1] != "/": - install_path += "/" - if not isinstance(to_install, list): - to_install = [to_install] - print("Installing to: " + install_path) - # sets would be perfect here, but don't depend on them - installed = [] - try: - while to_install: - if debug: - print("Queue:", to_install) - pkg_spec = to_install.pop(0) - if pkg_spec in installed: - continue - meta = install_pkg(pkg_spec, install_path) - installed.append(pkg_spec) - if debug: - print(meta) - deps = meta.get("deps", "").rstrip() - if deps: - deps = deps.decode("utf-8").split("\n") - to_install.extend(deps) - except Exception as e: - print( - "Error installing '{}': {}, packages may be partially installed".format(pkg_spec, e), - file=sys.stderr, - ) - - -def get_install_path(): - global install_path - if install_path is None: - # sys.path[0] is current module's path - install_path = sys.path[1] - install_path = expandhome(install_path) - return install_path - - -def cleanup(): - for fname in cleanup_files: - try: - os.unlink(fname) - except OSError: - print("Warning: Cannot delete " + fname) - - -def help(): - print( - """\ -upip - Simple PyPI package manager for MicroPython -Usage: micropython -m upip install [-p ] ... | -r -import upip; upip.install(package_or_list, []) - -If is not given, packages will be installed into sys.path[1] -(can be set from MICROPYPATH environment variable, if current system -supports that).""" - ) - print("Current value of sys.path[1]:", sys.path[1]) - print( - """\ - -Note: only MicroPython packages (usually, named micropython-*) are supported -for installation, upip does not support arbitrary code in setup.py. -""" - ) - - -def main(): - global debug - global install_path - install_path = None - - if len(sys.argv) < 2 or sys.argv[1] == "-h" or sys.argv[1] == "--help": - help() - return - - if sys.argv[1] != "install": - fatal("Only 'install' command supported") - - to_install = [] - - i = 2 - while i < len(sys.argv) and sys.argv[i][0] == "-": - opt = sys.argv[i] - i += 1 - if opt == "-h" or opt == "--help": - help() - return - elif opt == "-p": - install_path = sys.argv[i] - i += 1 - elif opt == "-r": - list_file = sys.argv[i] - i += 1 - with open(list_file) as f: - while True: - l = f.readline() - if not l: - break - if l[0] == "#": - continue - to_install.append(l.rstrip()) - elif opt == "--debug": - debug = True - else: - fatal("Unknown/unsupported option: " + opt) - - to_install.extend(sys.argv[i:]) - if not to_install: - help() - return - - install(to_install) - - if not debug: - cleanup() - - -if __name__ == "__main__": - main() diff --git a/micropython/upip/upip_utarfile.py b/micropython/upip/upip_utarfile.py deleted file mode 100644 index 21b899f02..000000000 --- a/micropython/upip/upip_utarfile.py +++ /dev/null @@ -1,95 +0,0 @@ -import uctypes - -# http://www.gnu.org/software/tar/manual/html_node/Standard.html -TAR_HEADER = { - "name": (uctypes.ARRAY | 0, uctypes.UINT8 | 100), - "size": (uctypes.ARRAY | 124, uctypes.UINT8 | 11), -} - -DIRTYPE = "dir" -REGTYPE = "file" - - -def roundup(val, align): - return (val + align - 1) & ~(align - 1) - - -class FileSection: - def __init__(self, f, content_len, aligned_len): - self.f = f - self.content_len = content_len - self.align = aligned_len - content_len - - def read(self, sz=65536): - if self.content_len == 0: - return b"" - if sz > self.content_len: - sz = self.content_len - data = self.f.read(sz) - sz = len(data) - self.content_len -= sz - return data - - def readinto(self, buf): - if self.content_len == 0: - return 0 - if len(buf) > self.content_len: - buf = memoryview(buf)[: self.content_len] - sz = self.f.readinto(buf) - self.content_len -= sz - return sz - - def skip(self): - sz = self.content_len + self.align - if sz: - buf = bytearray(16) - while sz: - s = min(sz, 16) - self.f.readinto(buf, s) - sz -= s - - -class TarInfo: - def __str__(self): - return "TarInfo(%r, %s, %d)" % (self.name, self.type, self.size) - - -class TarFile: - def __init__(self, name=None, fileobj=None): - if fileobj: - self.f = fileobj - else: - self.f = open(name, "rb") - self.subf = None - - def next(self): - if self.subf: - self.subf.skip() - buf = self.f.read(512) - if not buf: - return None - - h = uctypes.struct(uctypes.addressof(buf), TAR_HEADER, uctypes.LITTLE_ENDIAN) - - # Empty block means end of archive - if h.name[0] == 0: - return None - - d = TarInfo() - d.name = str(h.name, "utf-8").rstrip("\0") - d.size = int(bytes(h.size), 8) - d.type = [REGTYPE, DIRTYPE][d.name[-1] == "/"] - self.subf = d.subf = FileSection(self.f, d.size, roundup(d.size, 512)) - return d - - def __iter__(self): - return self - - def __next__(self): - v = self.next() - if v is None: - raise StopIteration - return v - - def extractfile(self, tarinfo): - return tarinfo.subf From e064ef9e3b960ba7ebad4929438a27f690d3de7c Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Wed, 13 Jul 2022 14:44:28 +1000 Subject: [PATCH 3/4] top: Replace metadata.txt with manifest.py. Uses the new require()/package()/module() functions from manifestfile.py. Add manifest.py for iperf3 and pyjwt. Signed-off-by: Jim Mussared --- micropython/bluetooth/aioble/manifest.py | 8 +------- micropython/test.support/manifest.py | 3 +++ micropython/test.support/metadata.txt | 3 --- micropython/uaiohttpclient/manifest.py | 5 +++++ micropython/uaiohttpclient/metadata.txt | 6 ------ micropython/ucontextlib/manifest.py | 5 +++++ micropython/ucontextlib/metadata.txt | 5 ----- micropython/udnspkt/manifest.py | 5 +++++ micropython/udnspkt/metadata.txt | 5 ----- micropython/umqtt.robust/manifest.py | 7 +++++++ micropython/umqtt.robust/metadata.txt | 6 ------ micropython/umqtt.simple/manifest.py | 5 +++++ micropython/umqtt.simple/metadata.txt | 6 ------ micropython/upysh/manifest.py | 3 +++ micropython/upysh/metadata.txt | 5 ----- micropython/urllib.urequest/manifest.py | 5 +++++ micropython/urllib.urequest/metadata.txt | 4 ---- micropython/utarfile/manifest.py | 5 +++++ micropython/utarfile/metadata.txt | 5 ----- micropython/xmltok/manifest.py | 5 +++++ micropython/xmltok/metadata.txt | 5 ----- python-ecosys/iperf3/manifest.py | 1 + python-ecosys/pyjwt/manifest.py | 5 +++++ python-ecosys/urequests/manifest.py | 3 +++ python-ecosys/urequests/metadata.txt | 3 --- python-stdlib/__future__/manifest.py | 3 +++ python-stdlib/__future__/metadata.txt | 4 ---- python-stdlib/_markupbase/manifest.py | 5 +++++ python-stdlib/_markupbase/metadata.txt | 4 ---- python-stdlib/abc/manifest.py | 3 +++ python-stdlib/abc/metadata.txt | 3 --- python-stdlib/argparse/manifest.py | 5 +++++ python-stdlib/argparse/metadata.txt | 4 ---- python-stdlib/base64/manifest.py | 7 +++++++ python-stdlib/base64/metadata.txt | 4 ---- python-stdlib/binascii/manifest.py | 3 +++ python-stdlib/binascii/metadata.txt | 3 --- python-stdlib/cgi/manifest.py | 3 +++ python-stdlib/cgi/metadata.txt | 3 --- python-stdlib/cmd/manifest.py | 3 +++ python-stdlib/cmd/metadata.txt | 3 --- python-stdlib/collections.defaultdict/manifest.py | 5 +++++ .../collections.defaultdict/metadata.txt | 4 ---- python-stdlib/collections.deque/manifest.py | 3 +++ python-stdlib/collections.deque/metadata.txt | 3 --- python-stdlib/collections/manifest.py | 3 +++ python-stdlib/collections/metadata.txt | 3 --- python-stdlib/contextlib/manifest.py | 6 ++++++ python-stdlib/contextlib/metadata.txt | 5 ----- python-stdlib/copy/manifest.py | 3 +++ python-stdlib/copy/metadata.txt | 3 --- python-stdlib/curses.ascii/manifest.py | 3 +++ python-stdlib/curses.ascii/metadata.txt | 3 --- python-stdlib/datetime/manifest.py | 5 +++++ python-stdlib/datetime/metadata.txt | 4 ---- python-stdlib/email.charset/manifest.py | 7 +++++++ python-stdlib/email.charset/metadata.txt | 4 ---- python-stdlib/email.encoders/manifest.py | 9 +++++++++ python-stdlib/email.encoders/metadata.txt | 4 ---- python-stdlib/email.errors/manifest.py | 3 +++ python-stdlib/email.errors/metadata.txt | 3 --- python-stdlib/email.feedparser/manifest.py | 8 ++++++++ python-stdlib/email.feedparser/metadata.txt | 4 ---- python-stdlib/email.header/manifest.py | 9 +++++++++ python-stdlib/email.header/metadata.txt | 4 ---- python-stdlib/email.internal/manifest.py | 15 +++++++++++++++ python-stdlib/email.internal/metadata.txt | 4 ---- python-stdlib/email.message/manifest.py | 11 +++++++++++ python-stdlib/email.message/metadata.txt | 4 ---- python-stdlib/email.parser/manifest.py | 8 ++++++++ python-stdlib/email.parser/metadata.txt | 4 ---- python-stdlib/email.utils/manifest.py | 13 +++++++++++++ python-stdlib/email.utils/metadata.txt | 4 ---- python-stdlib/errno/manifest.py | 3 +++ python-stdlib/errno/metadata.txt | 3 --- python-stdlib/fnmatch/manifest.py | 3 +++ python-stdlib/fnmatch/metadata.txt | 3 --- python-stdlib/functools/manifest.py | 3 +++ python-stdlib/functools/metadata.txt | 3 --- python-stdlib/getopt/manifest.py | 5 +++++ python-stdlib/getopt/metadata.txt | 4 ---- python-stdlib/glob/manifest.py | 7 +++++++ python-stdlib/glob/metadata.txt | 4 ---- python-stdlib/gzip/manifest.py | 3 +++ python-stdlib/gzip/metadata.txt | 3 --- python-stdlib/hashlib/manifest.py | 3 +++ python-stdlib/hashlib/metadata.txt | 3 --- python-stdlib/heapq/manifest.py | 3 +++ python-stdlib/heapq/metadata.txt | 5 ----- python-stdlib/hmac/manifest.py | 3 +++ python-stdlib/hmac/metadata.txt | 3 --- python-stdlib/html.entities/manifest.py | 3 +++ python-stdlib/html.entities/metadata.txt | 3 --- python-stdlib/html.parser/manifest.py | 8 ++++++++ python-stdlib/html.parser/metadata.txt | 4 ---- python-stdlib/html/manifest.py | 5 +++++ python-stdlib/html/metadata.txt | 4 ---- python-stdlib/http.client/manifest.py | 10 ++++++++++ python-stdlib/http.client/metadata.txt | 4 ---- python-stdlib/inspect/manifest.py | 3 +++ python-stdlib/inspect/metadata.txt | 3 --- python-stdlib/io/manifest.py | 3 +++ python-stdlib/io/metadata.txt | 3 --- python-stdlib/itertools/manifest.py | 3 +++ python-stdlib/itertools/metadata.txt | 3 --- python-stdlib/locale/manifest.py | 3 +++ python-stdlib/locale/metadata.txt | 3 --- python-stdlib/logging/manifest.py | 3 +++ python-stdlib/logging/metadata.txt | 3 --- python-stdlib/operator/manifest.py | 3 +++ python-stdlib/operator/metadata.txt | 3 --- python-stdlib/os.path/manifest.py | 7 +++++++ python-stdlib/os.path/metadata.txt | 4 ---- python-stdlib/os/manifest.py | 5 +++++ python-stdlib/os/metadata.txt | 4 ---- python-stdlib/pickle/manifest.py | 3 +++ python-stdlib/pickle/metadata.txt | 3 --- python-stdlib/pkg_resources/manifest.py | 3 +++ python-stdlib/pkg_resources/metadata.txt | 3 --- python-stdlib/pkgutil/manifest.py | 5 +++++ python-stdlib/pkgutil/metadata.txt | 4 ---- python-stdlib/pprint/manifest.py | 3 +++ python-stdlib/pprint/metadata.txt | 3 --- python-stdlib/pystone/manifest.py | 3 +++ python-stdlib/pystone/metadata.txt | 3 --- python-stdlib/pystone_lowmem/manifest.py | 3 +++ python-stdlib/pystone_lowmem/metadata.txt | 3 --- python-stdlib/quopri/manifest.py | 3 +++ python-stdlib/quopri/metadata.txt | 3 --- python-stdlib/random/manifest.py | 3 +++ python-stdlib/random/metadata.txt | 3 --- python-stdlib/shutil/manifest.py | 3 +++ python-stdlib/shutil/metadata.txt | 3 --- python-stdlib/socket/manifest.py | 5 +++++ python-stdlib/socket/metadata.txt | 4 ---- python-stdlib/ssl/manifest.py | 3 +++ python-stdlib/ssl/metadata.txt | 3 --- python-stdlib/stat/manifest.py | 3 +++ python-stdlib/stat/metadata.txt | 3 --- python-stdlib/string/manifest.py | 3 +++ python-stdlib/string/metadata.txt | 3 --- python-stdlib/struct/manifest.py | 3 +++ python-stdlib/struct/metadata.txt | 3 --- python-stdlib/test.pystone/manifest.py | 3 +++ python-stdlib/test.pystone/metadata.txt | 3 --- python-stdlib/textwrap/manifest.py | 3 +++ python-stdlib/textwrap/metadata.txt | 3 --- python-stdlib/threading/manifest.py | 3 +++ python-stdlib/threading/metadata.txt | 3 --- python-stdlib/timeit/manifest.py | 9 +++++++++ python-stdlib/timeit/metadata.txt | 4 ---- python-stdlib/traceback/manifest.py | 3 +++ python-stdlib/traceback/metadata.txt | 3 --- python-stdlib/unittest/manifest.py | 6 ++++++ python-stdlib/unittest/metadata.txt | 4 ---- python-stdlib/urllib.parse/manifest.py | 7 +++++++ python-stdlib/urllib.parse/metadata.txt | 4 ---- python-stdlib/uu/manifest.py | 6 ++++++ python-stdlib/uu/metadata.txt | 4 ---- python-stdlib/warnings/manifest.py | 3 +++ python-stdlib/warnings/metadata.txt | 3 --- unix-ffi/_libc/manifest.py | 8 ++++++++ unix-ffi/_libc/metadata.txt | 7 ------- unix-ffi/email.charset/manifest.py | 7 +++++++ unix-ffi/email.feedparser/manifest.py | 8 ++++++++ unix-ffi/email.header/manifest.py | 9 +++++++++ unix-ffi/email.internal/manifest.py | 15 +++++++++++++++ unix-ffi/email.message/manifest.py | 11 +++++++++++ unix-ffi/email.parser/manifest.py | 8 ++++++++ unix-ffi/fcntl/manifest.py | 7 +++++++ unix-ffi/fcntl/metadata.txt | 5 ----- unix-ffi/ffilib/manifest.py | 8 ++++++++ unix-ffi/ffilib/metadata.txt | 7 ------- unix-ffi/gettext/manifest.py | 7 +++++++ unix-ffi/gettext/metadata.txt | 5 ----- unix-ffi/glob/manifest.py | 8 ++++++++ unix-ffi/html.parser/manifest.py | 8 ++++++++ unix-ffi/http.client/manifest.py | 10 ++++++++++ unix-ffi/machine/manifest.py | 9 +++++++++ unix-ffi/machine/metadata.txt | 5 ----- unix-ffi/multiprocessing/manifest.py | 9 +++++++++ unix-ffi/multiprocessing/metadata.txt | 5 ----- unix-ffi/os/manifest.py | 9 +++++++++ unix-ffi/os/metadata.txt | 5 ----- unix-ffi/pwd/manifest.py | 7 +++++++ unix-ffi/pwd/metadata.txt | 5 ----- unix-ffi/re-pcre/manifest.py | 7 +++++++ unix-ffi/re-pcre/metadata.txt | 6 ------ unix-ffi/select/manifest.py | 8 ++++++++ unix-ffi/select/metadata.txt | 5 ----- unix-ffi/signal/manifest.py | 7 +++++++ unix-ffi/signal/metadata.txt | 5 ----- unix-ffi/sqlite3/manifest.py | 7 +++++++ unix-ffi/sqlite3/metadata.txt | 5 ----- unix-ffi/time/manifest.py | 5 +++++ unix-ffi/time/metadata.txt | 4 ---- unix-ffi/tty/manifest.py | 3 +++ unix-ffi/tty/metadata.txt | 3 --- unix-ffi/ucurses/manifest.py | 9 +++++++++ unix-ffi/ucurses/metadata.txt | 5 ----- 200 files changed, 573 insertions(+), 372 deletions(-) create mode 100644 micropython/test.support/manifest.py delete mode 100644 micropython/test.support/metadata.txt create mode 100644 micropython/uaiohttpclient/manifest.py delete mode 100644 micropython/uaiohttpclient/metadata.txt create mode 100644 micropython/ucontextlib/manifest.py delete mode 100644 micropython/ucontextlib/metadata.txt create mode 100644 micropython/udnspkt/manifest.py delete mode 100644 micropython/udnspkt/metadata.txt create mode 100644 micropython/umqtt.robust/manifest.py delete mode 100644 micropython/umqtt.robust/metadata.txt create mode 100644 micropython/umqtt.simple/manifest.py delete mode 100644 micropython/umqtt.simple/metadata.txt create mode 100644 micropython/upysh/manifest.py delete mode 100644 micropython/upysh/metadata.txt create mode 100644 micropython/urllib.urequest/manifest.py delete mode 100644 micropython/urllib.urequest/metadata.txt create mode 100644 micropython/utarfile/manifest.py delete mode 100644 micropython/utarfile/metadata.txt create mode 100644 micropython/xmltok/manifest.py delete mode 100644 micropython/xmltok/metadata.txt create mode 100644 python-ecosys/iperf3/manifest.py create mode 100644 python-ecosys/pyjwt/manifest.py create mode 100644 python-ecosys/urequests/manifest.py delete mode 100644 python-ecosys/urequests/metadata.txt create mode 100644 python-stdlib/__future__/manifest.py delete mode 100644 python-stdlib/__future__/metadata.txt create mode 100644 python-stdlib/_markupbase/manifest.py delete mode 100644 python-stdlib/_markupbase/metadata.txt create mode 100644 python-stdlib/abc/manifest.py delete mode 100644 python-stdlib/abc/metadata.txt create mode 100644 python-stdlib/argparse/manifest.py delete mode 100644 python-stdlib/argparse/metadata.txt create mode 100644 python-stdlib/base64/manifest.py delete mode 100644 python-stdlib/base64/metadata.txt create mode 100644 python-stdlib/binascii/manifest.py delete mode 100644 python-stdlib/binascii/metadata.txt create mode 100644 python-stdlib/cgi/manifest.py delete mode 100644 python-stdlib/cgi/metadata.txt create mode 100644 python-stdlib/cmd/manifest.py delete mode 100644 python-stdlib/cmd/metadata.txt create mode 100644 python-stdlib/collections.defaultdict/manifest.py delete mode 100644 python-stdlib/collections.defaultdict/metadata.txt create mode 100644 python-stdlib/collections.deque/manifest.py delete mode 100644 python-stdlib/collections.deque/metadata.txt create mode 100644 python-stdlib/collections/manifest.py delete mode 100644 python-stdlib/collections/metadata.txt create mode 100644 python-stdlib/contextlib/manifest.py delete mode 100644 python-stdlib/contextlib/metadata.txt create mode 100644 python-stdlib/copy/manifest.py delete mode 100644 python-stdlib/copy/metadata.txt create mode 100644 python-stdlib/curses.ascii/manifest.py delete mode 100644 python-stdlib/curses.ascii/metadata.txt create mode 100644 python-stdlib/datetime/manifest.py delete mode 100644 python-stdlib/datetime/metadata.txt create mode 100644 python-stdlib/email.charset/manifest.py delete mode 100644 python-stdlib/email.charset/metadata.txt create mode 100644 python-stdlib/email.encoders/manifest.py delete mode 100644 python-stdlib/email.encoders/metadata.txt create mode 100644 python-stdlib/email.errors/manifest.py delete mode 100644 python-stdlib/email.errors/metadata.txt create mode 100644 python-stdlib/email.feedparser/manifest.py delete mode 100644 python-stdlib/email.feedparser/metadata.txt create mode 100644 python-stdlib/email.header/manifest.py delete mode 100644 python-stdlib/email.header/metadata.txt create mode 100644 python-stdlib/email.internal/manifest.py delete mode 100644 python-stdlib/email.internal/metadata.txt create mode 100644 python-stdlib/email.message/manifest.py delete mode 100644 python-stdlib/email.message/metadata.txt create mode 100644 python-stdlib/email.parser/manifest.py delete mode 100644 python-stdlib/email.parser/metadata.txt create mode 100644 python-stdlib/email.utils/manifest.py delete mode 100644 python-stdlib/email.utils/metadata.txt create mode 100644 python-stdlib/errno/manifest.py delete mode 100644 python-stdlib/errno/metadata.txt create mode 100644 python-stdlib/fnmatch/manifest.py delete mode 100644 python-stdlib/fnmatch/metadata.txt create mode 100644 python-stdlib/functools/manifest.py delete mode 100644 python-stdlib/functools/metadata.txt create mode 100644 python-stdlib/getopt/manifest.py delete mode 100644 python-stdlib/getopt/metadata.txt create mode 100644 python-stdlib/glob/manifest.py delete mode 100644 python-stdlib/glob/metadata.txt create mode 100644 python-stdlib/gzip/manifest.py delete mode 100644 python-stdlib/gzip/metadata.txt create mode 100644 python-stdlib/hashlib/manifest.py delete mode 100644 python-stdlib/hashlib/metadata.txt create mode 100644 python-stdlib/heapq/manifest.py delete mode 100644 python-stdlib/heapq/metadata.txt create mode 100644 python-stdlib/hmac/manifest.py delete mode 100644 python-stdlib/hmac/metadata.txt create mode 100644 python-stdlib/html.entities/manifest.py delete mode 100644 python-stdlib/html.entities/metadata.txt create mode 100644 python-stdlib/html.parser/manifest.py delete mode 100644 python-stdlib/html.parser/metadata.txt create mode 100644 python-stdlib/html/manifest.py delete mode 100644 python-stdlib/html/metadata.txt create mode 100644 python-stdlib/http.client/manifest.py delete mode 100644 python-stdlib/http.client/metadata.txt create mode 100644 python-stdlib/inspect/manifest.py delete mode 100644 python-stdlib/inspect/metadata.txt create mode 100644 python-stdlib/io/manifest.py delete mode 100644 python-stdlib/io/metadata.txt create mode 100644 python-stdlib/itertools/manifest.py delete mode 100644 python-stdlib/itertools/metadata.txt create mode 100644 python-stdlib/locale/manifest.py delete mode 100644 python-stdlib/locale/metadata.txt create mode 100644 python-stdlib/logging/manifest.py delete mode 100644 python-stdlib/logging/metadata.txt create mode 100644 python-stdlib/operator/manifest.py delete mode 100644 python-stdlib/operator/metadata.txt create mode 100644 python-stdlib/os.path/manifest.py delete mode 100644 python-stdlib/os.path/metadata.txt create mode 100644 python-stdlib/os/manifest.py delete mode 100644 python-stdlib/os/metadata.txt create mode 100644 python-stdlib/pickle/manifest.py delete mode 100644 python-stdlib/pickle/metadata.txt create mode 100644 python-stdlib/pkg_resources/manifest.py delete mode 100644 python-stdlib/pkg_resources/metadata.txt create mode 100644 python-stdlib/pkgutil/manifest.py delete mode 100644 python-stdlib/pkgutil/metadata.txt create mode 100644 python-stdlib/pprint/manifest.py delete mode 100644 python-stdlib/pprint/metadata.txt create mode 100644 python-stdlib/pystone/manifest.py delete mode 100644 python-stdlib/pystone/metadata.txt create mode 100644 python-stdlib/pystone_lowmem/manifest.py delete mode 100644 python-stdlib/pystone_lowmem/metadata.txt create mode 100644 python-stdlib/quopri/manifest.py delete mode 100644 python-stdlib/quopri/metadata.txt create mode 100644 python-stdlib/random/manifest.py delete mode 100644 python-stdlib/random/metadata.txt create mode 100644 python-stdlib/shutil/manifest.py delete mode 100644 python-stdlib/shutil/metadata.txt create mode 100644 python-stdlib/socket/manifest.py delete mode 100644 python-stdlib/socket/metadata.txt create mode 100644 python-stdlib/ssl/manifest.py delete mode 100644 python-stdlib/ssl/metadata.txt create mode 100644 python-stdlib/stat/manifest.py delete mode 100644 python-stdlib/stat/metadata.txt create mode 100644 python-stdlib/string/manifest.py delete mode 100644 python-stdlib/string/metadata.txt create mode 100644 python-stdlib/struct/manifest.py delete mode 100644 python-stdlib/struct/metadata.txt create mode 100644 python-stdlib/test.pystone/manifest.py delete mode 100644 python-stdlib/test.pystone/metadata.txt create mode 100644 python-stdlib/textwrap/manifest.py delete mode 100644 python-stdlib/textwrap/metadata.txt create mode 100644 python-stdlib/threading/manifest.py delete mode 100644 python-stdlib/threading/metadata.txt create mode 100644 python-stdlib/timeit/manifest.py delete mode 100644 python-stdlib/timeit/metadata.txt create mode 100644 python-stdlib/traceback/manifest.py delete mode 100644 python-stdlib/traceback/metadata.txt create mode 100644 python-stdlib/unittest/manifest.py delete mode 100644 python-stdlib/unittest/metadata.txt create mode 100644 python-stdlib/urllib.parse/manifest.py delete mode 100644 python-stdlib/urllib.parse/metadata.txt create mode 100644 python-stdlib/uu/manifest.py delete mode 100644 python-stdlib/uu/metadata.txt create mode 100644 python-stdlib/warnings/manifest.py delete mode 100644 python-stdlib/warnings/metadata.txt create mode 100644 unix-ffi/_libc/manifest.py delete mode 100644 unix-ffi/_libc/metadata.txt create mode 100644 unix-ffi/email.charset/manifest.py create mode 100644 unix-ffi/email.feedparser/manifest.py create mode 100644 unix-ffi/email.header/manifest.py create mode 100644 unix-ffi/email.internal/manifest.py create mode 100644 unix-ffi/email.message/manifest.py create mode 100644 unix-ffi/email.parser/manifest.py create mode 100644 unix-ffi/fcntl/manifest.py delete mode 100644 unix-ffi/fcntl/metadata.txt create mode 100644 unix-ffi/ffilib/manifest.py delete mode 100644 unix-ffi/ffilib/metadata.txt create mode 100644 unix-ffi/gettext/manifest.py delete mode 100644 unix-ffi/gettext/metadata.txt create mode 100644 unix-ffi/glob/manifest.py create mode 100644 unix-ffi/html.parser/manifest.py create mode 100644 unix-ffi/http.client/manifest.py create mode 100644 unix-ffi/machine/manifest.py delete mode 100644 unix-ffi/machine/metadata.txt create mode 100644 unix-ffi/multiprocessing/manifest.py delete mode 100644 unix-ffi/multiprocessing/metadata.txt create mode 100644 unix-ffi/os/manifest.py delete mode 100644 unix-ffi/os/metadata.txt create mode 100644 unix-ffi/pwd/manifest.py delete mode 100644 unix-ffi/pwd/metadata.txt create mode 100644 unix-ffi/re-pcre/manifest.py delete mode 100644 unix-ffi/re-pcre/metadata.txt create mode 100644 unix-ffi/select/manifest.py delete mode 100644 unix-ffi/select/metadata.txt create mode 100644 unix-ffi/signal/manifest.py delete mode 100644 unix-ffi/signal/metadata.txt create mode 100644 unix-ffi/sqlite3/manifest.py delete mode 100644 unix-ffi/sqlite3/metadata.txt create mode 100644 unix-ffi/time/manifest.py delete mode 100644 unix-ffi/time/metadata.txt create mode 100644 unix-ffi/tty/manifest.py delete mode 100644 unix-ffi/tty/metadata.txt create mode 100644 unix-ffi/ucurses/manifest.py delete mode 100644 unix-ffi/ucurses/metadata.txt diff --git a/micropython/bluetooth/aioble/manifest.py b/micropython/bluetooth/aioble/manifest.py index 056c909eb..337014757 100644 --- a/micropython/bluetooth/aioble/manifest.py +++ b/micropython/bluetooth/aioble/manifest.py @@ -1,5 +1,3 @@ -import os - _files = ( "__init__.py", "core.py", @@ -26,8 +24,4 @@ if options.security: _files += ("security.py",) -freeze( - ".", - tuple(os.path.join("aioble", f) for f in _files), - opt=3, -) +package("aioble", files=_files) diff --git a/micropython/test.support/manifest.py b/micropython/test.support/manifest.py new file mode 100644 index 000000000..d927e7ee8 --- /dev/null +++ b/micropython/test.support/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.3") + +package("test") diff --git a/micropython/test.support/metadata.txt b/micropython/test.support/metadata.txt deleted file mode 100644 index 44531b197..000000000 --- a/micropython/test.support/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=micropython-lib -type=package -version = 0.1.3 diff --git a/micropython/uaiohttpclient/manifest.py b/micropython/uaiohttpclient/manifest.py new file mode 100644 index 000000000..72dd9671c --- /dev/null +++ b/micropython/uaiohttpclient/manifest.py @@ -0,0 +1,5 @@ +metadata(description="HTTP client module for MicroPython uasyncio module", version="0.5.1") + +# Originally written by Paul Sokolovsky. + +module("uaiohttpclient.py") diff --git a/micropython/uaiohttpclient/metadata.txt b/micropython/uaiohttpclient/metadata.txt deleted file mode 100644 index 4005f7842..000000000 --- a/micropython/uaiohttpclient/metadata.txt +++ /dev/null @@ -1,6 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.5.1 -author = Paul Sokolovsky -desc = HTTP client module for MicroPython uasyncio module -long_desc = README diff --git a/micropython/ucontextlib/manifest.py b/micropython/ucontextlib/manifest.py new file mode 100644 index 000000000..81e6e0859 --- /dev/null +++ b/micropython/ucontextlib/manifest.py @@ -0,0 +1,5 @@ +metadata( + description="Minimal subset of contextlib for MicroPython low-memory ports", version="0.1.1" +) + +module("ucontextlib.py") diff --git a/micropython/ucontextlib/metadata.txt b/micropython/ucontextlib/metadata.txt deleted file mode 100644 index df76a1d76..000000000 --- a/micropython/ucontextlib/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1.1 -license = Python -long_desc = Minimal subset of contextlib for MicroPython low-memory ports diff --git a/micropython/udnspkt/manifest.py b/micropython/udnspkt/manifest.py new file mode 100644 index 000000000..382b8dd74 --- /dev/null +++ b/micropython/udnspkt/manifest.py @@ -0,0 +1,5 @@ +metadata(description="Make and parse DNS packets (Sans I/O approach).", version="0.1") + +# Originally written by Paul Sokolovsky. + +module("udnspkt.py") diff --git a/micropython/udnspkt/metadata.txt b/micropython/udnspkt/metadata.txt deleted file mode 100644 index b3d97e3cc..000000000 --- a/micropython/udnspkt/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1 -author = Paul Sokolovsky -desc = Make and parse DNS packets (Sans I/O approach). diff --git a/micropython/umqtt.robust/manifest.py b/micropython/umqtt.robust/manifest.py new file mode 100644 index 000000000..28f83d9e3 --- /dev/null +++ b/micropython/umqtt.robust/manifest.py @@ -0,0 +1,7 @@ +metadata( + description='Lightweight MQTT client for MicroPython ("robust" version).', version="1.0.1" +) + +# Originally written by Paul Sokolovsky. + +package("umqtt") diff --git a/micropython/umqtt.robust/metadata.txt b/micropython/umqtt.robust/metadata.txt deleted file mode 100644 index aef748f76..000000000 --- a/micropython/umqtt.robust/metadata.txt +++ /dev/null @@ -1,6 +0,0 @@ -srctype = micropython-lib -type = package -version = 1.0.1 -author = Paul Sokolovsky -desc = Lightweight MQTT client for MicroPython ("robust" version). -long_desc = README.rst diff --git a/micropython/umqtt.simple/manifest.py b/micropython/umqtt.simple/manifest.py new file mode 100644 index 000000000..19617a5ee --- /dev/null +++ b/micropython/umqtt.simple/manifest.py @@ -0,0 +1,5 @@ +metadata(description="Lightweight MQTT client for MicroPython.", version="1.3.4") + +# Originally written by Paul Sokolovsky. + +package("umqtt") diff --git a/micropython/umqtt.simple/metadata.txt b/micropython/umqtt.simple/metadata.txt deleted file mode 100644 index c95ee6056..000000000 --- a/micropython/umqtt.simple/metadata.txt +++ /dev/null @@ -1,6 +0,0 @@ -srctype = micropython-lib -type = package -version = 1.3.4 -author = Paul Sokolovsky -desc = Lightweight MQTT client for MicroPython. -long_desc = README.rst diff --git a/micropython/upysh/manifest.py b/micropython/upysh/manifest.py new file mode 100644 index 000000000..2d36a9ab4 --- /dev/null +++ b/micropython/upysh/manifest.py @@ -0,0 +1,3 @@ +metadata(description="Minimalistic file shell using native Python syntax.", version="0.6.1") + +module("upysh.py") diff --git a/micropython/upysh/metadata.txt b/micropython/upysh/metadata.txt deleted file mode 100644 index ff11de932..000000000 --- a/micropython/upysh/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.6.1 -desc = Minimalistic file shell using native Python syntax. -long_desc = Minimalistic file shell using native Python syntax. diff --git a/micropython/urllib.urequest/manifest.py b/micropython/urllib.urequest/manifest.py new file mode 100644 index 000000000..cb4c1569c --- /dev/null +++ b/micropython/urllib.urequest/manifest.py @@ -0,0 +1,5 @@ +metadata(version="0.6") + +# Originally written by Paul Sokolovsky. + +package("urllib") diff --git a/micropython/urllib.urequest/metadata.txt b/micropython/urllib.urequest/metadata.txt deleted file mode 100644 index 9db40027d..000000000 --- a/micropython/urllib.urequest/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = package -version = 0.6 -author = Paul Sokolovsky diff --git a/micropython/utarfile/manifest.py b/micropython/utarfile/manifest.py new file mode 100644 index 000000000..65bd68b9a --- /dev/null +++ b/micropython/utarfile/manifest.py @@ -0,0 +1,5 @@ +metadata(description="Lightweight tarfile module subset", version="0.3.2") + +# Originally written by Paul Sokolovsky. + +module("utarfile.py") diff --git a/micropython/utarfile/metadata.txt b/micropython/utarfile/metadata.txt deleted file mode 100644 index 4dab5614f..000000000 --- a/micropython/utarfile/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.3.2 -author = Paul Sokolovsky -long_desc = Lightweight tarfile module subset diff --git a/micropython/xmltok/manifest.py b/micropython/xmltok/manifest.py new file mode 100644 index 000000000..efbe41cc4 --- /dev/null +++ b/micropython/xmltok/manifest.py @@ -0,0 +1,5 @@ +metadata(description="Simple XML tokenizer", version="0.2") + +# Originally written by Paul Sokolovsky. + +module("xmltok.py") diff --git a/micropython/xmltok/metadata.txt b/micropython/xmltok/metadata.txt deleted file mode 100644 index f25bb2480..000000000 --- a/micropython/xmltok/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.2 -author = Paul Sokolovsky -long_desc = Simple XML tokenizer diff --git a/python-ecosys/iperf3/manifest.py b/python-ecosys/iperf3/manifest.py new file mode 100644 index 000000000..dafba2e12 --- /dev/null +++ b/python-ecosys/iperf3/manifest.py @@ -0,0 +1 @@ +module("iperf3.py") diff --git a/python-ecosys/pyjwt/manifest.py b/python-ecosys/pyjwt/manifest.py new file mode 100644 index 000000000..8e9b22c18 --- /dev/null +++ b/python-ecosys/pyjwt/manifest.py @@ -0,0 +1,5 @@ +metadata(version="0.1") + +require("hmac") + +module("jwt.py") diff --git a/python-ecosys/urequests/manifest.py b/python-ecosys/urequests/manifest.py new file mode 100644 index 000000000..5fd2e8a28 --- /dev/null +++ b/python-ecosys/urequests/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.7.0") + +module("urequests.py") diff --git a/python-ecosys/urequests/metadata.txt b/python-ecosys/urequests/metadata.txt deleted file mode 100644 index 04861d96f..000000000 --- a/python-ecosys/urequests/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.7.0 diff --git a/python-stdlib/__future__/manifest.py b/python-stdlib/__future__/manifest.py new file mode 100644 index 000000000..4b4de03cb --- /dev/null +++ b/python-stdlib/__future__/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.0.3") + +module("__future__.py") diff --git a/python-stdlib/__future__/metadata.txt b/python-stdlib/__future__/metadata.txt deleted file mode 100644 index 560b85785..000000000 --- a/python-stdlib/__future__/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype=dummy -type=module -version=0.0.3 -dist_name=future diff --git a/python-stdlib/_markupbase/manifest.py b/python-stdlib/_markupbase/manifest.py new file mode 100644 index 000000000..470f8a457 --- /dev/null +++ b/python-stdlib/_markupbase/manifest.py @@ -0,0 +1,5 @@ +metadata(version="3.3.3-1") + +require("re-pcre") + +module("_markupbase.py") diff --git a/python-stdlib/_markupbase/metadata.txt b/python-stdlib/_markupbase/metadata.txt deleted file mode 100644 index d1d9150e1..000000000 --- a/python-stdlib/_markupbase/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = module -version = 3.3.3-1 -depends = re-pcre diff --git a/python-stdlib/abc/manifest.py b/python-stdlib/abc/manifest.py new file mode 100644 index 000000000..66495fd75 --- /dev/null +++ b/python-stdlib/abc/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.0.1") + +module("abc.py") diff --git a/python-stdlib/abc/metadata.txt b/python-stdlib/abc/metadata.txt deleted file mode 100644 index abee00b44..000000000 --- a/python-stdlib/abc/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=dummy -type=module -version = 0.0.1 diff --git a/python-stdlib/argparse/manifest.py b/python-stdlib/argparse/manifest.py new file mode 100644 index 000000000..034d73c7d --- /dev/null +++ b/python-stdlib/argparse/manifest.py @@ -0,0 +1,5 @@ +metadata(version="0.4") + +# Originally written by Damien George. + +module("argparse.py") diff --git a/python-stdlib/argparse/metadata.txt b/python-stdlib/argparse/metadata.txt deleted file mode 100644 index a724aace1..000000000 --- a/python-stdlib/argparse/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.4 -author = Damien George diff --git a/python-stdlib/base64/manifest.py b/python-stdlib/base64/manifest.py new file mode 100644 index 000000000..4268481ae --- /dev/null +++ b/python-stdlib/base64/manifest.py @@ -0,0 +1,7 @@ +metadata(version="3.3.3-4") + +require("binascii") +require("re-pcre") +require("struct") + +module("base64.py") diff --git a/python-stdlib/base64/metadata.txt b/python-stdlib/base64/metadata.txt deleted file mode 100644 index f19558210..000000000 --- a/python-stdlib/base64/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype=cpython -type=module -version = 3.3.3-4 -depends = binascii, re-pcre, struct diff --git a/python-stdlib/binascii/manifest.py b/python-stdlib/binascii/manifest.py new file mode 100644 index 000000000..4a478f262 --- /dev/null +++ b/python-stdlib/binascii/manifest.py @@ -0,0 +1,3 @@ +metadata(version="2.4.0-5") + +module("binascii.py") diff --git a/python-stdlib/binascii/metadata.txt b/python-stdlib/binascii/metadata.txt deleted file mode 100644 index 7baf07a27..000000000 --- a/python-stdlib/binascii/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = module -version = 2.4.0-5 diff --git a/python-stdlib/cgi/manifest.py b/python-stdlib/cgi/manifest.py new file mode 100644 index 000000000..b1db6ce30 --- /dev/null +++ b/python-stdlib/cgi/manifest.py @@ -0,0 +1,3 @@ +metadata(version="3.3.3-2") + +module("cgi.py") diff --git a/python-stdlib/cgi/metadata.txt b/python-stdlib/cgi/metadata.txt deleted file mode 100644 index 75dcaed4d..000000000 --- a/python-stdlib/cgi/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=cpython -type=module -version = 3.3.3-2 diff --git a/python-stdlib/cmd/manifest.py b/python-stdlib/cmd/manifest.py new file mode 100644 index 000000000..572f97df6 --- /dev/null +++ b/python-stdlib/cmd/manifest.py @@ -0,0 +1,3 @@ +metadata(version="3.4.0-2") + +module("cmd.py") diff --git a/python-stdlib/cmd/metadata.txt b/python-stdlib/cmd/metadata.txt deleted file mode 100644 index 8ec1fe5d7..000000000 --- a/python-stdlib/cmd/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = module -version = 3.4.0-2 diff --git a/python-stdlib/collections.defaultdict/manifest.py b/python-stdlib/collections.defaultdict/manifest.py new file mode 100644 index 000000000..bbce4be13 --- /dev/null +++ b/python-stdlib/collections.defaultdict/manifest.py @@ -0,0 +1,5 @@ +metadata(version="0.3") + +# Originally written by Paul Sokolovsky. + +package("collections") diff --git a/python-stdlib/collections.defaultdict/metadata.txt b/python-stdlib/collections.defaultdict/metadata.txt deleted file mode 100644 index 0ae0cdcdb..000000000 --- a/python-stdlib/collections.defaultdict/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = package -version = 0.3 -author = Paul Sokolovsky diff --git a/python-stdlib/collections.deque/manifest.py b/python-stdlib/collections.deque/manifest.py new file mode 100644 index 000000000..e4306faea --- /dev/null +++ b/python-stdlib/collections.deque/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.3") + +package("collections") diff --git a/python-stdlib/collections.deque/metadata.txt b/python-stdlib/collections.deque/metadata.txt deleted file mode 100644 index 820b24ddc..000000000 --- a/python-stdlib/collections.deque/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = package -version = 0.1.3 diff --git a/python-stdlib/collections/manifest.py b/python-stdlib/collections/manifest.py new file mode 100644 index 000000000..d5ef69472 --- /dev/null +++ b/python-stdlib/collections/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.2") + +package("collections") diff --git a/python-stdlib/collections/metadata.txt b/python-stdlib/collections/metadata.txt deleted file mode 100644 index c50f2e450..000000000 --- a/python-stdlib/collections/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = package -version = 0.1.2 diff --git a/python-stdlib/contextlib/manifest.py b/python-stdlib/contextlib/manifest.py new file mode 100644 index 000000000..ab7ae5775 --- /dev/null +++ b/python-stdlib/contextlib/manifest.py @@ -0,0 +1,6 @@ +metadata(description="Port of contextlib for micropython", version="3.4.2-4") + +require("ucontextlib") +require("collections") + +module("contextlib.py") diff --git a/python-stdlib/contextlib/metadata.txt b/python-stdlib/contextlib/metadata.txt deleted file mode 100644 index 3664c376c..000000000 --- a/python-stdlib/contextlib/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = cpython -type = module -version = 3.4.2-4 -long_desc = Port of contextlib for micropython -depends = ucontextlib, collections diff --git a/python-stdlib/copy/manifest.py b/python-stdlib/copy/manifest.py new file mode 100644 index 000000000..909ac2054 --- /dev/null +++ b/python-stdlib/copy/manifest.py @@ -0,0 +1,3 @@ +metadata(version="3.3.3-2") + +module("copy.py") diff --git a/python-stdlib/copy/metadata.txt b/python-stdlib/copy/metadata.txt deleted file mode 100644 index cb5ffa327..000000000 --- a/python-stdlib/copy/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = module -version = 3.3.3-2 diff --git a/python-stdlib/curses.ascii/manifest.py b/python-stdlib/curses.ascii/manifest.py new file mode 100644 index 000000000..6a6518089 --- /dev/null +++ b/python-stdlib/curses.ascii/manifest.py @@ -0,0 +1,3 @@ +metadata(version="3.4.2-1") + +package("curses") diff --git a/python-stdlib/curses.ascii/metadata.txt b/python-stdlib/curses.ascii/metadata.txt deleted file mode 100644 index 5ed1bbeff..000000000 --- a/python-stdlib/curses.ascii/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = package -version = 3.4.2-1 diff --git a/python-stdlib/datetime/manifest.py b/python-stdlib/datetime/manifest.py new file mode 100644 index 000000000..017189cec --- /dev/null +++ b/python-stdlib/datetime/manifest.py @@ -0,0 +1,5 @@ +metadata(version="4.0.0") + +# Originally written by Lorenzo Cappelletti. + +module("datetime.py") diff --git a/python-stdlib/datetime/metadata.txt b/python-stdlib/datetime/metadata.txt deleted file mode 100644 index ee879327b..000000000 --- a/python-stdlib/datetime/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = module -version = 4.0.0 -author = Lorenzo Cappelletti diff --git a/python-stdlib/email.charset/manifest.py b/python-stdlib/email.charset/manifest.py new file mode 100644 index 000000000..208dd9a90 --- /dev/null +++ b/python-stdlib/email.charset/manifest.py @@ -0,0 +1,7 @@ +# email.charset + +require("functools") +require("email.encoders") +require("email.errors") + +package("email", version="0.5.1") diff --git a/python-stdlib/email.charset/metadata.txt b/python-stdlib/email.charset/metadata.txt deleted file mode 100644 index 138ad19dc..000000000 --- a/python-stdlib/email.charset/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 0.5.1 -depends = functools, email.encoders, email.errors diff --git a/python-stdlib/email.encoders/manifest.py b/python-stdlib/email.encoders/manifest.py new file mode 100644 index 000000000..f59bf11b4 --- /dev/null +++ b/python-stdlib/email.encoders/manifest.py @@ -0,0 +1,9 @@ +metadata(version="0.5.1") + +require("base64") +require("binascii") +require("quopri") +require("re-pcre") +require("string") + +package("email") diff --git a/python-stdlib/email.encoders/metadata.txt b/python-stdlib/email.encoders/metadata.txt deleted file mode 100644 index 359304fc6..000000000 --- a/python-stdlib/email.encoders/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 0.5.1 -depends = base64, binascii, quopri, re-pcre, string diff --git a/python-stdlib/email.errors/manifest.py b/python-stdlib/email.errors/manifest.py new file mode 100644 index 000000000..6a2e0be77 --- /dev/null +++ b/python-stdlib/email.errors/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.5.1") + +package("email") diff --git a/python-stdlib/email.errors/metadata.txt b/python-stdlib/email.errors/metadata.txt deleted file mode 100644 index f07adb245..000000000 --- a/python-stdlib/email.errors/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = package -version = 0.5.1 diff --git a/python-stdlib/email.feedparser/manifest.py b/python-stdlib/email.feedparser/manifest.py new file mode 100644 index 000000000..bc0da6dc9 --- /dev/null +++ b/python-stdlib/email.feedparser/manifest.py @@ -0,0 +1,8 @@ +# email.feedparser + +require("re-pcre") +require("email.errors") +require("email.message") +require("email.internal") + +package("email", version="0.5.1") diff --git a/python-stdlib/email.feedparser/metadata.txt b/python-stdlib/email.feedparser/metadata.txt deleted file mode 100644 index b6622ec97..000000000 --- a/python-stdlib/email.feedparser/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 0.5.1 -depends = re-pcre, email.errors, email.message, email.internal diff --git a/python-stdlib/email.header/manifest.py b/python-stdlib/email.header/manifest.py new file mode 100644 index 000000000..c901a52e7 --- /dev/null +++ b/python-stdlib/email.header/manifest.py @@ -0,0 +1,9 @@ +# email.header + +require("re-pcre") +require("binascii") +require("email.encoders") +require("email.errors") +require("email.charset") + +package("email", version="0.5.2") diff --git a/python-stdlib/email.header/metadata.txt b/python-stdlib/email.header/metadata.txt deleted file mode 100644 index adc8d7f2a..000000000 --- a/python-stdlib/email.header/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 0.5.2 -depends = re-pcre, binascii, email.encoders, email.errors, email.charset diff --git a/python-stdlib/email.internal/manifest.py b/python-stdlib/email.internal/manifest.py new file mode 100644 index 000000000..602d1ce30 --- /dev/null +++ b/python-stdlib/email.internal/manifest.py @@ -0,0 +1,15 @@ +# email.internal + +require("re-pcre") +require("base64") +require("binascii") +require("functools") +require("string") +# require("calendar") TODO +require("abc") +require("email.errors") +require("email.header") +require("email.charset") +require("email.utils") + +package("email", version="0.5.1") diff --git a/python-stdlib/email.internal/metadata.txt b/python-stdlib/email.internal/metadata.txt deleted file mode 100644 index af3090fd6..000000000 --- a/python-stdlib/email.internal/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 0.5.1 -depends = re-pcre, base64, binascii, functools, string, calendar, abc, email.errors, email.header, email.charset, email.utils diff --git a/python-stdlib/email.message/manifest.py b/python-stdlib/email.message/manifest.py new file mode 100644 index 000000000..1f1fa48aa --- /dev/null +++ b/python-stdlib/email.message/manifest.py @@ -0,0 +1,11 @@ +# email.message + +require("re-pcre") +require("uu") +require("base64") +require("binascii") +require("email.utils") +require("email.errors") +require("email.charset") + +package("email", version="0.5.3") diff --git a/python-stdlib/email.message/metadata.txt b/python-stdlib/email.message/metadata.txt deleted file mode 100644 index feedfa9e8..000000000 --- a/python-stdlib/email.message/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 0.5.3 -depends = re-pcre, uu, base64, binascii, email.utils, email.errors, email.charset diff --git a/python-stdlib/email.parser/manifest.py b/python-stdlib/email.parser/manifest.py new file mode 100644 index 000000000..095e32245 --- /dev/null +++ b/python-stdlib/email.parser/manifest.py @@ -0,0 +1,8 @@ +# email.parser + +require("warnings") +require("email.feedparser") +require("email.message") +require("email.internal") + +package("email", version="0.5.1") diff --git a/python-stdlib/email.parser/metadata.txt b/python-stdlib/email.parser/metadata.txt deleted file mode 100644 index 95316b938..000000000 --- a/python-stdlib/email.parser/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 0.5.1 -depends = warnings, email.feedparser, email.message, email.internal diff --git a/python-stdlib/email.utils/manifest.py b/python-stdlib/email.utils/manifest.py new file mode 100644 index 000000000..30770226e --- /dev/null +++ b/python-stdlib/email.utils/manifest.py @@ -0,0 +1,13 @@ +metadata(version="3.3.3-2") + +require("os") +require("re-pcre") +require("base64") +require("random") +require("datetime") +require("urllib.parse") +require("warnings") +require("quopri") +require("email.charset") + +package("email") diff --git a/python-stdlib/email.utils/metadata.txt b/python-stdlib/email.utils/metadata.txt deleted file mode 100644 index 833c02a5b..000000000 --- a/python-stdlib/email.utils/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 3.3.3-2 -depends = os, re-pcre, base64, random, datetime, urllib.parse, warnings, quopri, email.charset diff --git a/python-stdlib/errno/manifest.py b/python-stdlib/errno/manifest.py new file mode 100644 index 000000000..a1e1e6c7c --- /dev/null +++ b/python-stdlib/errno/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.4") + +module("errno.py") diff --git a/python-stdlib/errno/metadata.txt b/python-stdlib/errno/metadata.txt deleted file mode 100644 index c8ecc0530..000000000 --- a/python-stdlib/errno/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1.4 diff --git a/python-stdlib/fnmatch/manifest.py b/python-stdlib/fnmatch/manifest.py new file mode 100644 index 000000000..8f19bb8f4 --- /dev/null +++ b/python-stdlib/fnmatch/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.6.0") + +module("fnmatch.py") diff --git a/python-stdlib/fnmatch/metadata.txt b/python-stdlib/fnmatch/metadata.txt deleted file mode 100644 index 27b8c03f3..000000000 --- a/python-stdlib/fnmatch/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = module -version = 0.6.0 diff --git a/python-stdlib/functools/manifest.py b/python-stdlib/functools/manifest.py new file mode 100644 index 000000000..634413c1e --- /dev/null +++ b/python-stdlib/functools/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.0.7") + +module("functools.py") diff --git a/python-stdlib/functools/metadata.txt b/python-stdlib/functools/metadata.txt deleted file mode 100644 index 3b48c0322..000000000 --- a/python-stdlib/functools/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.0.7 diff --git a/python-stdlib/getopt/manifest.py b/python-stdlib/getopt/manifest.py new file mode 100644 index 000000000..437f4068d --- /dev/null +++ b/python-stdlib/getopt/manifest.py @@ -0,0 +1,5 @@ +metadata(version="3.3.3-1") + +require("os") + +module("getopt.py") diff --git a/python-stdlib/getopt/metadata.txt b/python-stdlib/getopt/metadata.txt deleted file mode 100644 index 58db3c223..000000000 --- a/python-stdlib/getopt/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = module -version = 3.3.3-1 -depends = os diff --git a/python-stdlib/glob/manifest.py b/python-stdlib/glob/manifest.py new file mode 100644 index 000000000..e4cb7ccca --- /dev/null +++ b/python-stdlib/glob/manifest.py @@ -0,0 +1,7 @@ +# glob + +require("os") +require("re-pcre") +require("fnmatch") + +module("glob.py", version="0.5.2") diff --git a/python-stdlib/glob/metadata.txt b/python-stdlib/glob/metadata.txt deleted file mode 100644 index 870dfba17..000000000 --- a/python-stdlib/glob/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = module -version = 0.5.2 -depends = os, re-pcre, fnmatch diff --git a/python-stdlib/gzip/manifest.py b/python-stdlib/gzip/manifest.py new file mode 100644 index 000000000..eab70e56b --- /dev/null +++ b/python-stdlib/gzip/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.1") + +module("gzip.py") diff --git a/python-stdlib/gzip/metadata.txt b/python-stdlib/gzip/metadata.txt deleted file mode 100644 index a9265f64a..000000000 --- a/python-stdlib/gzip/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=micropython-lib -type=module -version = 0.1.1 diff --git a/python-stdlib/hashlib/manifest.py b/python-stdlib/hashlib/manifest.py new file mode 100644 index 000000000..106168bab --- /dev/null +++ b/python-stdlib/hashlib/manifest.py @@ -0,0 +1,3 @@ +metadata(version="2.4.0-4") + +package("hashlib") diff --git a/python-stdlib/hashlib/metadata.txt b/python-stdlib/hashlib/metadata.txt deleted file mode 100644 index 5cbf62353..000000000 --- a/python-stdlib/hashlib/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = package -version = 2.4.0-4 diff --git a/python-stdlib/heapq/manifest.py b/python-stdlib/heapq/manifest.py new file mode 100644 index 000000000..1d71a3180 --- /dev/null +++ b/python-stdlib/heapq/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.9.3") + +module("heapq.py") diff --git a/python-stdlib/heapq/metadata.txt b/python-stdlib/heapq/metadata.txt deleted file mode 100644 index c521dd0a0..000000000 --- a/python-stdlib/heapq/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = cpython -type = module -version = 0.9.3 -# Module uses in *some* functions, but we don't want to depend on it -#depends = itertools diff --git a/python-stdlib/hmac/manifest.py b/python-stdlib/hmac/manifest.py new file mode 100644 index 000000000..92b8b18e4 --- /dev/null +++ b/python-stdlib/hmac/manifest.py @@ -0,0 +1,3 @@ +metadata(version="3.4.2-3") + +module("hmac.py") diff --git a/python-stdlib/hmac/metadata.txt b/python-stdlib/hmac/metadata.txt deleted file mode 100644 index ee8bd9f95..000000000 --- a/python-stdlib/hmac/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = module -version = 3.4.2-3 diff --git a/python-stdlib/html.entities/manifest.py b/python-stdlib/html.entities/manifest.py new file mode 100644 index 000000000..0a612905f --- /dev/null +++ b/python-stdlib/html.entities/manifest.py @@ -0,0 +1,3 @@ +metadata(version="3.3.3-1") + +package("html") diff --git a/python-stdlib/html.entities/metadata.txt b/python-stdlib/html.entities/metadata.txt deleted file mode 100644 index 580cce681..000000000 --- a/python-stdlib/html.entities/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=cpython -type=package -version = 3.3.3-1 diff --git a/python-stdlib/html.parser/manifest.py b/python-stdlib/html.parser/manifest.py new file mode 100644 index 000000000..44a41c31c --- /dev/null +++ b/python-stdlib/html.parser/manifest.py @@ -0,0 +1,8 @@ +# html.parser + +require("_markupbase") +require("warnings") +require("html.entities") +require("re-pcre") + +package("html", version="3.3.3-2") diff --git a/python-stdlib/html.parser/metadata.txt b/python-stdlib/html.parser/metadata.txt deleted file mode 100644 index 036766fa5..000000000 --- a/python-stdlib/html.parser/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 3.3.3-2 -depends = _markupbase, warnings, html.entities, re-pcre diff --git a/python-stdlib/html/manifest.py b/python-stdlib/html/manifest.py new file mode 100644 index 000000000..2f0dcec77 --- /dev/null +++ b/python-stdlib/html/manifest.py @@ -0,0 +1,5 @@ +metadata(version="3.3.3-2") + +require("string") + +package("html") diff --git a/python-stdlib/html/metadata.txt b/python-stdlib/html/metadata.txt deleted file mode 100644 index 96505cda6..000000000 --- a/python-stdlib/html/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 3.3.3-2 -depends = string diff --git a/python-stdlib/http.client/manifest.py b/python-stdlib/http.client/manifest.py new file mode 100644 index 000000000..119d08f3d --- /dev/null +++ b/python-stdlib/http.client/manifest.py @@ -0,0 +1,10 @@ +# http.client + +require("email.parser") +require("email.message") +require("socket") +require("collections") +require("urllib.parse") +require("warnings") + +package("http", version="0.5.1") diff --git a/python-stdlib/http.client/metadata.txt b/python-stdlib/http.client/metadata.txt deleted file mode 100644 index 1b2fb96d9..000000000 --- a/python-stdlib/http.client/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 0.5.1 -depends = email.parser, email.message, socket, collections, urllib.parse, warnings diff --git a/python-stdlib/inspect/manifest.py b/python-stdlib/inspect/manifest.py new file mode 100644 index 000000000..a9d5a2381 --- /dev/null +++ b/python-stdlib/inspect/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.2") + +module("inspect.py") diff --git a/python-stdlib/inspect/metadata.txt b/python-stdlib/inspect/metadata.txt deleted file mode 100644 index 2254c557a..000000000 --- a/python-stdlib/inspect/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1.2 diff --git a/python-stdlib/io/manifest.py b/python-stdlib/io/manifest.py new file mode 100644 index 000000000..ba1659ce0 --- /dev/null +++ b/python-stdlib/io/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1") + +module("io.py") diff --git a/python-stdlib/io/metadata.txt b/python-stdlib/io/metadata.txt deleted file mode 100644 index abe46bcfd..000000000 --- a/python-stdlib/io/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = dummy -type = module -version = 0.1 diff --git a/python-stdlib/itertools/manifest.py b/python-stdlib/itertools/manifest.py new file mode 100644 index 000000000..80ebd5024 --- /dev/null +++ b/python-stdlib/itertools/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.2.3") + +module("itertools.py") diff --git a/python-stdlib/itertools/metadata.txt b/python-stdlib/itertools/metadata.txt deleted file mode 100644 index d1c5847b5..000000000 --- a/python-stdlib/itertools/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.2.3 diff --git a/python-stdlib/locale/manifest.py b/python-stdlib/locale/manifest.py new file mode 100644 index 000000000..9d56ae6a5 --- /dev/null +++ b/python-stdlib/locale/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.0.2") + +module("locale.py") diff --git a/python-stdlib/locale/metadata.txt b/python-stdlib/locale/metadata.txt deleted file mode 100644 index fda992a9c..000000000 --- a/python-stdlib/locale/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=dummy -type=module -version = 0.0.2 diff --git a/python-stdlib/logging/manifest.py b/python-stdlib/logging/manifest.py new file mode 100644 index 000000000..176015096 --- /dev/null +++ b/python-stdlib/logging/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.3") + +module("logging.py") diff --git a/python-stdlib/logging/metadata.txt b/python-stdlib/logging/metadata.txt deleted file mode 100644 index a1ff78f65..000000000 --- a/python-stdlib/logging/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.3 diff --git a/python-stdlib/operator/manifest.py b/python-stdlib/operator/manifest.py new file mode 100644 index 000000000..0d53e597d --- /dev/null +++ b/python-stdlib/operator/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.1") + +module("operator.py") diff --git a/python-stdlib/operator/metadata.txt b/python-stdlib/operator/metadata.txt deleted file mode 100644 index a90b2ef38..000000000 --- a/python-stdlib/operator/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1.1 diff --git a/python-stdlib/os.path/manifest.py b/python-stdlib/os.path/manifest.py new file mode 100644 index 000000000..920d522c2 --- /dev/null +++ b/python-stdlib/os.path/manifest.py @@ -0,0 +1,7 @@ +metadata(version="0.1.3") + +# Originally written by Paul Sokolovsky. + +require("os") + +package("os") diff --git a/python-stdlib/os.path/metadata.txt b/python-stdlib/os.path/metadata.txt deleted file mode 100644 index fc0e6430e..000000000 --- a/python-stdlib/os.path/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = package -version = 0.1.3 -author = Paul Sokolovsky diff --git a/python-stdlib/os/manifest.py b/python-stdlib/os/manifest.py new file mode 100644 index 000000000..7cdeee65a --- /dev/null +++ b/python-stdlib/os/manifest.py @@ -0,0 +1,5 @@ +metadata(version="0.6") + +# Originally written by Paul Sokolovsky. + +package("os") diff --git a/python-stdlib/os/metadata.txt b/python-stdlib/os/metadata.txt deleted file mode 100644 index 9db40027d..000000000 --- a/python-stdlib/os/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = package -version = 0.6 -author = Paul Sokolovsky diff --git a/python-stdlib/pickle/manifest.py b/python-stdlib/pickle/manifest.py new file mode 100644 index 000000000..0f6fbf766 --- /dev/null +++ b/python-stdlib/pickle/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1") + +module("pickle.py") diff --git a/python-stdlib/pickle/metadata.txt b/python-stdlib/pickle/metadata.txt deleted file mode 100644 index 3fa13ba08..000000000 --- a/python-stdlib/pickle/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=dummy -type=module -version = 0.1 diff --git a/python-stdlib/pkg_resources/manifest.py b/python-stdlib/pkg_resources/manifest.py new file mode 100644 index 000000000..ba316c9c1 --- /dev/null +++ b/python-stdlib/pkg_resources/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.2.1") + +module("pkg_resources.py") diff --git a/python-stdlib/pkg_resources/metadata.txt b/python-stdlib/pkg_resources/metadata.txt deleted file mode 100644 index 47384f3bb..000000000 --- a/python-stdlib/pkg_resources/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=micropython-lib -type=module -version = 0.2.1 diff --git a/python-stdlib/pkgutil/manifest.py b/python-stdlib/pkgutil/manifest.py new file mode 100644 index 000000000..5e5f13b27 --- /dev/null +++ b/python-stdlib/pkgutil/manifest.py @@ -0,0 +1,5 @@ +metadata(version="0.1.1") + +require("pkg_resources") + +module("pkgutil.py") diff --git a/python-stdlib/pkgutil/metadata.txt b/python-stdlib/pkgutil/metadata.txt deleted file mode 100644 index ab1816c83..000000000 --- a/python-stdlib/pkgutil/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1.1 -depends = pkg_resources diff --git a/python-stdlib/pprint/manifest.py b/python-stdlib/pprint/manifest.py new file mode 100644 index 000000000..9c0ebe9ed --- /dev/null +++ b/python-stdlib/pprint/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.0.4") + +module("pprint.py") diff --git a/python-stdlib/pprint/metadata.txt b/python-stdlib/pprint/metadata.txt deleted file mode 100644 index 03253b0c1..000000000 --- a/python-stdlib/pprint/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=dummy -type=module -version = 0.0.4 diff --git a/python-stdlib/pystone/manifest.py b/python-stdlib/pystone/manifest.py new file mode 100644 index 000000000..2a25db815 --- /dev/null +++ b/python-stdlib/pystone/manifest.py @@ -0,0 +1,3 @@ +metadata(version="3.4.2-2") + +module("pystone.py") diff --git a/python-stdlib/pystone/metadata.txt b/python-stdlib/pystone/metadata.txt deleted file mode 100644 index cca4b9d1d..000000000 --- a/python-stdlib/pystone/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = module -version = 3.4.2-2 diff --git a/python-stdlib/pystone_lowmem/manifest.py b/python-stdlib/pystone_lowmem/manifest.py new file mode 100644 index 000000000..c46ec68ef --- /dev/null +++ b/python-stdlib/pystone_lowmem/manifest.py @@ -0,0 +1,3 @@ +metadata(version="3.4.2-4") + +module("pystone_lowmem.py") diff --git a/python-stdlib/pystone_lowmem/metadata.txt b/python-stdlib/pystone_lowmem/metadata.txt deleted file mode 100644 index ddb4a3c4a..000000000 --- a/python-stdlib/pystone_lowmem/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = module -version = 3.4.2-4 diff --git a/python-stdlib/quopri/manifest.py b/python-stdlib/quopri/manifest.py new file mode 100644 index 000000000..b7336972f --- /dev/null +++ b/python-stdlib/quopri/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.5.1") + +module("quopri.py") diff --git a/python-stdlib/quopri/metadata.txt b/python-stdlib/quopri/metadata.txt deleted file mode 100644 index 3b1a1930d..000000000 --- a/python-stdlib/quopri/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=cpython -type=module -version = 0.5.1 diff --git a/python-stdlib/random/manifest.py b/python-stdlib/random/manifest.py new file mode 100644 index 000000000..fcd10007d --- /dev/null +++ b/python-stdlib/random/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.2") + +module("random.py") diff --git a/python-stdlib/random/metadata.txt b/python-stdlib/random/metadata.txt deleted file mode 100644 index 8fbfc2b3f..000000000 --- a/python-stdlib/random/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=dummy -type=module -version = 0.2 diff --git a/python-stdlib/shutil/manifest.py b/python-stdlib/shutil/manifest.py new file mode 100644 index 000000000..385d50ad5 --- /dev/null +++ b/python-stdlib/shutil/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.0.3") + +module("shutil.py") diff --git a/python-stdlib/shutil/metadata.txt b/python-stdlib/shutil/metadata.txt deleted file mode 100644 index 1a9822260..000000000 --- a/python-stdlib/shutil/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=micropython-lib -type=module -version = 0.0.3 diff --git a/python-stdlib/socket/manifest.py b/python-stdlib/socket/manifest.py new file mode 100644 index 000000000..a0a384d37 --- /dev/null +++ b/python-stdlib/socket/manifest.py @@ -0,0 +1,5 @@ +metadata(version="0.5.2") + +# Originally written by Paul Sokolovsky. + +module("socket.py") diff --git a/python-stdlib/socket/metadata.txt b/python-stdlib/socket/metadata.txt deleted file mode 100644 index e84d96ba4..000000000 --- a/python-stdlib/socket/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.5.2 -author = Paul Sokolovsky diff --git a/python-stdlib/ssl/manifest.py b/python-stdlib/ssl/manifest.py new file mode 100644 index 000000000..fb92cdf48 --- /dev/null +++ b/python-stdlib/ssl/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1") + +module("ssl.py") diff --git a/python-stdlib/ssl/metadata.txt b/python-stdlib/ssl/metadata.txt deleted file mode 100644 index abe46bcfd..000000000 --- a/python-stdlib/ssl/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = dummy -type = module -version = 0.1 diff --git a/python-stdlib/stat/manifest.py b/python-stdlib/stat/manifest.py new file mode 100644 index 000000000..a4a0b811c --- /dev/null +++ b/python-stdlib/stat/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.5.1") + +module("stat.py") diff --git a/python-stdlib/stat/metadata.txt b/python-stdlib/stat/metadata.txt deleted file mode 100644 index 3b1a1930d..000000000 --- a/python-stdlib/stat/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=cpython -type=module -version = 0.5.1 diff --git a/python-stdlib/string/manifest.py b/python-stdlib/string/manifest.py new file mode 100644 index 000000000..a6b552be2 --- /dev/null +++ b/python-stdlib/string/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.1") + +module("string.py") diff --git a/python-stdlib/string/metadata.txt b/python-stdlib/string/metadata.txt deleted file mode 100644 index a9265f64a..000000000 --- a/python-stdlib/string/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=micropython-lib -type=module -version = 0.1.1 diff --git a/python-stdlib/struct/manifest.py b/python-stdlib/struct/manifest.py new file mode 100644 index 000000000..4535d780e --- /dev/null +++ b/python-stdlib/struct/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.1") + +module("struct.py") diff --git a/python-stdlib/struct/metadata.txt b/python-stdlib/struct/metadata.txt deleted file mode 100644 index a90b2ef38..000000000 --- a/python-stdlib/struct/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1.1 diff --git a/python-stdlib/test.pystone/manifest.py b/python-stdlib/test.pystone/manifest.py new file mode 100644 index 000000000..a1bd59123 --- /dev/null +++ b/python-stdlib/test.pystone/manifest.py @@ -0,0 +1,3 @@ +metadata(version="1.0.1") + +package("test") diff --git a/python-stdlib/test.pystone/metadata.txt b/python-stdlib/test.pystone/metadata.txt deleted file mode 100644 index e9979d399..000000000 --- a/python-stdlib/test.pystone/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = package -version = 1.0.1 diff --git a/python-stdlib/textwrap/manifest.py b/python-stdlib/textwrap/manifest.py new file mode 100644 index 000000000..d43a54bba --- /dev/null +++ b/python-stdlib/textwrap/manifest.py @@ -0,0 +1,3 @@ +metadata(version="3.4.2-1") + +module("textwrap.py") diff --git a/python-stdlib/textwrap/metadata.txt b/python-stdlib/textwrap/metadata.txt deleted file mode 100644 index fc82994ce..000000000 --- a/python-stdlib/textwrap/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = cpython -type = module -version = 3.4.2-1 diff --git a/python-stdlib/threading/manifest.py b/python-stdlib/threading/manifest.py new file mode 100644 index 000000000..4db21dd1d --- /dev/null +++ b/python-stdlib/threading/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1") + +module("threading.py") diff --git a/python-stdlib/threading/metadata.txt b/python-stdlib/threading/metadata.txt deleted file mode 100644 index a9a85a5bf..000000000 --- a/python-stdlib/threading/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1 diff --git a/python-stdlib/timeit/manifest.py b/python-stdlib/timeit/manifest.py new file mode 100644 index 000000000..67ff15902 --- /dev/null +++ b/python-stdlib/timeit/manifest.py @@ -0,0 +1,9 @@ +metadata(version="3.3.3-3") + +require("getopt") +require("itertools") +# require("linecache") TODO +require("time") +require("traceback") + +module("timeit.py") diff --git a/python-stdlib/timeit/metadata.txt b/python-stdlib/timeit/metadata.txt deleted file mode 100644 index 63b2f4c8f..000000000 --- a/python-stdlib/timeit/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = module -version = 3.3.3-3 -depends = getopt, itertools, linecache, time, traceback diff --git a/python-stdlib/traceback/manifest.py b/python-stdlib/traceback/manifest.py new file mode 100644 index 000000000..65b3cdaa5 --- /dev/null +++ b/python-stdlib/traceback/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.3") + +module("traceback.py") diff --git a/python-stdlib/traceback/metadata.txt b/python-stdlib/traceback/metadata.txt deleted file mode 100644 index 85829f3ed..000000000 --- a/python-stdlib/traceback/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=micropython-lib -type=module -version = 0.3 diff --git a/python-stdlib/unittest/manifest.py b/python-stdlib/unittest/manifest.py new file mode 100644 index 000000000..85a5f4015 --- /dev/null +++ b/python-stdlib/unittest/manifest.py @@ -0,0 +1,6 @@ +metadata(version="0.9.0") + +require("argparse") +require("fnmatch") + +module("unittest.py") diff --git a/python-stdlib/unittest/metadata.txt b/python-stdlib/unittest/metadata.txt deleted file mode 100644 index ba9a983fc..000000000 --- a/python-stdlib/unittest/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.9.0 -depends = argparse, fnmatch diff --git a/python-stdlib/urllib.parse/manifest.py b/python-stdlib/urllib.parse/manifest.py new file mode 100644 index 000000000..4731060d7 --- /dev/null +++ b/python-stdlib/urllib.parse/manifest.py @@ -0,0 +1,7 @@ +metadata(version="0.5.2") + +require("re-pcre") +require("collections") +require("collections.defaultdict") + +package("urllib") diff --git a/python-stdlib/urllib.parse/metadata.txt b/python-stdlib/urllib.parse/metadata.txt deleted file mode 100644 index b28c56740..000000000 --- a/python-stdlib/urllib.parse/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = package -version = 0.5.2 -depends = re-pcre, collections, collections.defaultdict diff --git a/python-stdlib/uu/manifest.py b/python-stdlib/uu/manifest.py new file mode 100644 index 000000000..daf50569d --- /dev/null +++ b/python-stdlib/uu/manifest.py @@ -0,0 +1,6 @@ +metadata(version="0.5.1") + +require("binascii") +require("os") + +module("uu.py") diff --git a/python-stdlib/uu/metadata.txt b/python-stdlib/uu/metadata.txt deleted file mode 100644 index 530965938..000000000 --- a/python-stdlib/uu/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = cpython -type = module -version = 0.5.1 -depends = binascii, os diff --git a/python-stdlib/warnings/manifest.py b/python-stdlib/warnings/manifest.py new file mode 100644 index 000000000..ca41363aa --- /dev/null +++ b/python-stdlib/warnings/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.1.1") + +module("warnings.py") diff --git a/python-stdlib/warnings/metadata.txt b/python-stdlib/warnings/metadata.txt deleted file mode 100644 index a9265f64a..000000000 --- a/python-stdlib/warnings/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype=micropython-lib -type=module -version = 0.1.1 diff --git a/unix-ffi/_libc/manifest.py b/unix-ffi/_libc/manifest.py new file mode 100644 index 000000000..61bf421b6 --- /dev/null +++ b/unix-ffi/_libc/manifest.py @@ -0,0 +1,8 @@ +metadata( + description="MicroPython FFI helper module (deprecated, replaced by micropython-ffilib).", + version="0.3.1", +) + +# Originally written by Paul Sokolovsky. + +module("_libc.py") diff --git a/unix-ffi/_libc/metadata.txt b/unix-ffi/_libc/metadata.txt deleted file mode 100644 index 96cf93151..000000000 --- a/unix-ffi/_libc/metadata.txt +++ /dev/null @@ -1,7 +0,0 @@ -dist_name = libc -srctype = micropython-lib -type = module -version = 0.3.1 -author = Paul Sokolovsky -desc = MicroPython FFI helper module (deprecated) -long_desc = MicroPython FFI helper module (deprecated, replaced by micropython-ffilib). diff --git a/unix-ffi/email.charset/manifest.py b/unix-ffi/email.charset/manifest.py new file mode 100644 index 000000000..31d70cece --- /dev/null +++ b/unix-ffi/email.charset/manifest.py @@ -0,0 +1,7 @@ +metadata(version="0.5.1") + +require("functools") +require("email.encoders", unix_ffi=True) +require("email.errors", unix_ffi=True) + +package("email") diff --git a/unix-ffi/email.feedparser/manifest.py b/unix-ffi/email.feedparser/manifest.py new file mode 100644 index 000000000..4ea80e302 --- /dev/null +++ b/unix-ffi/email.feedparser/manifest.py @@ -0,0 +1,8 @@ +metadata(version="0.5.1") + +require("re", unix_ffi=True) +require("email.errors", unix_ffi=True) +require("email.message", unix_ffi=True) +require("email.internal", unix_ffi=True) + +package("email") diff --git a/unix-ffi/email.header/manifest.py b/unix-ffi/email.header/manifest.py new file mode 100644 index 000000000..65b017b50 --- /dev/null +++ b/unix-ffi/email.header/manifest.py @@ -0,0 +1,9 @@ +metadata(version="0.5.2") + +require("re", unix_ffi=True) +require("binascii") +require("email.encoders", unix_ffi=True) +require("email.errors", unix_ffi=True) +require("email.charset", unix_ffi=True) + +package("email") diff --git a/unix-ffi/email.internal/manifest.py b/unix-ffi/email.internal/manifest.py new file mode 100644 index 000000000..4aff6d2c5 --- /dev/null +++ b/unix-ffi/email.internal/manifest.py @@ -0,0 +1,15 @@ +metadata(version="0.5.1") + +require("re", unix_ffi=True) +require("base64") +require("binascii") +require("functools") +require("string") +# require("calendar") TODO +require("abc") +require("email.errors", unix_ffi=True) +require("email.header", unix_ffi=True) +require("email.charset", unix_ffi=True) +require("email.utils", unix_ffi=True) + +package("email") diff --git a/unix-ffi/email.message/manifest.py b/unix-ffi/email.message/manifest.py new file mode 100644 index 000000000..7b75ee7ac --- /dev/null +++ b/unix-ffi/email.message/manifest.py @@ -0,0 +1,11 @@ +metadata(version="0.5.3") + +require("re", unix_ffi=True) +require("uu") +require("base64") +require("binascii") +require("email.utils", unix_ffi=True) +require("email.errors", unix_ffi=True) +require("email.charset", unix_ffi=True) + +package("email") diff --git a/unix-ffi/email.parser/manifest.py b/unix-ffi/email.parser/manifest.py new file mode 100644 index 000000000..ebe662111 --- /dev/null +++ b/unix-ffi/email.parser/manifest.py @@ -0,0 +1,8 @@ +metadata(version="0.5.1") + +require("warnings") +require("email.feedparser", unix_ffi=True) +require("email.message", unix_ffi=True) +require("email.internal", unix_ffi=True) + +package("email") diff --git a/unix-ffi/fcntl/manifest.py b/unix-ffi/fcntl/manifest.py new file mode 100644 index 000000000..e572a58e8 --- /dev/null +++ b/unix-ffi/fcntl/manifest.py @@ -0,0 +1,7 @@ +metadata(version="0.0.4") + +# Originally written by Paul Sokolovsky. + +require("ffilib") + +module("fcntl.py") diff --git a/unix-ffi/fcntl/metadata.txt b/unix-ffi/fcntl/metadata.txt deleted file mode 100644 index b031606ec..000000000 --- a/unix-ffi/fcntl/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.0.4 -author = Paul Sokolovsky -depends = ffilib diff --git a/unix-ffi/ffilib/manifest.py b/unix-ffi/ffilib/manifest.py new file mode 100644 index 000000000..fe795a2ec --- /dev/null +++ b/unix-ffi/ffilib/manifest.py @@ -0,0 +1,8 @@ +metadata( + description="MicroPython FFI helper module to easily interface with underlying shared libraries", + version="0.1.3", +) + +# Originally written by Damien George. + +module("ffilib.py") diff --git a/unix-ffi/ffilib/metadata.txt b/unix-ffi/ffilib/metadata.txt deleted file mode 100644 index 3cb26e774..000000000 --- a/unix-ffi/ffilib/metadata.txt +++ /dev/null @@ -1,7 +0,0 @@ -dist_name = ffilib -srctype = micropython-lib -type = module -version = 0.1.3 -author = Damien George -desc = MicroPython FFI helper module -long_desc = MicroPython FFI helper module to easily interface with underlying shared libraries diff --git a/unix-ffi/gettext/manifest.py b/unix-ffi/gettext/manifest.py new file mode 100644 index 000000000..a2b520152 --- /dev/null +++ b/unix-ffi/gettext/manifest.py @@ -0,0 +1,7 @@ +metadata(version="0.1") + +# Originally written by Riccardo Magliocchetti. + +require("ffilib") + +module("gettext.py") diff --git a/unix-ffi/gettext/metadata.txt b/unix-ffi/gettext/metadata.txt deleted file mode 100644 index 55d84737f..000000000 --- a/unix-ffi/gettext/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1 -author = Riccardo Magliocchetti -depends = ffilib diff --git a/unix-ffi/glob/manifest.py b/unix-ffi/glob/manifest.py new file mode 100644 index 000000000..0d0a25d3d --- /dev/null +++ b/unix-ffi/glob/manifest.py @@ -0,0 +1,8 @@ +metadata(version="0.5.2") + +require("os", unix_ffi=True) +require("os.path") +require("re", unix_ffi=True) +require("fnmatch") + +module("glob.py") diff --git a/unix-ffi/html.parser/manifest.py b/unix-ffi/html.parser/manifest.py new file mode 100644 index 000000000..9c82a7833 --- /dev/null +++ b/unix-ffi/html.parser/manifest.py @@ -0,0 +1,8 @@ +metadata(version="3.3.3-2") + +require("_markupbase", unix_ffi=True) +require("warnings") +require("html.entities", unix_ffi=True) +require("re", unix_ffi=True) + +package("html") diff --git a/unix-ffi/http.client/manifest.py b/unix-ffi/http.client/manifest.py new file mode 100644 index 000000000..be0c9ef36 --- /dev/null +++ b/unix-ffi/http.client/manifest.py @@ -0,0 +1,10 @@ +metadata(version="0.5.1") + +require("email.parser", unix_ffi=True) +require("email.message", unix_ffi=True) +require("socket", unix_ffi=True) +require("collections") +require("urllib.parse", unix_ffi=True) +require("warnings") + +package("http") diff --git a/unix-ffi/machine/manifest.py b/unix-ffi/machine/manifest.py new file mode 100644 index 000000000..c0e40764d --- /dev/null +++ b/unix-ffi/machine/manifest.py @@ -0,0 +1,9 @@ +metadata(version="0.2.1") + +# Originally written by Paul Sokolovsky. + +require("ffilib") +require("os") +require("signal") + +package("machine") diff --git a/unix-ffi/machine/metadata.txt b/unix-ffi/machine/metadata.txt deleted file mode 100644 index 51a4d3b39..000000000 --- a/unix-ffi/machine/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = package -version = 0.2.1 -author = Paul Sokolovsky -depends = ffilib, os, signal diff --git a/unix-ffi/multiprocessing/manifest.py b/unix-ffi/multiprocessing/manifest.py new file mode 100644 index 000000000..d6b32411d --- /dev/null +++ b/unix-ffi/multiprocessing/manifest.py @@ -0,0 +1,9 @@ +metadata(version="0.1.2") + +# Originally written by Paul Sokolovsky. + +require("os") +require("select") +require("pickle") + +module("multiprocessing.py") diff --git a/unix-ffi/multiprocessing/metadata.txt b/unix-ffi/multiprocessing/metadata.txt deleted file mode 100644 index d4d5f8d93..000000000 --- a/unix-ffi/multiprocessing/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1.2 -author = Paul Sokolovsky -depends = os, select, pickle diff --git a/unix-ffi/os/manifest.py b/unix-ffi/os/manifest.py new file mode 100644 index 000000000..496a9e44e --- /dev/null +++ b/unix-ffi/os/manifest.py @@ -0,0 +1,9 @@ +metadata(version="0.6") + +# Originally written by Paul Sokolovsky. + +require("ffilib") +require("errno") +require("stat") + +package("os") diff --git a/unix-ffi/os/metadata.txt b/unix-ffi/os/metadata.txt deleted file mode 100644 index 22a1ac65f..000000000 --- a/unix-ffi/os/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = package -version = 0.6 -author = Paul Sokolovsky -depends = ffilib, errno, stat diff --git a/unix-ffi/pwd/manifest.py b/unix-ffi/pwd/manifest.py new file mode 100644 index 000000000..26e289b46 --- /dev/null +++ b/unix-ffi/pwd/manifest.py @@ -0,0 +1,7 @@ +metadata(version="0.1") + +# Originally written by Riccardo Magliocchetti. + +require("ffilib") + +module("pwd.py") diff --git a/unix-ffi/pwd/metadata.txt b/unix-ffi/pwd/metadata.txt deleted file mode 100644 index 55d84737f..000000000 --- a/unix-ffi/pwd/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.1 -author = Riccardo Magliocchetti -depends = ffilib diff --git a/unix-ffi/re-pcre/manifest.py b/unix-ffi/re-pcre/manifest.py new file mode 100644 index 000000000..ca027317d --- /dev/null +++ b/unix-ffi/re-pcre/manifest.py @@ -0,0 +1,7 @@ +metadata(version="0.2.5") + +# Originally written by Paul Sokolovsky. + +require("ffilib") + +module("re.py") diff --git a/unix-ffi/re-pcre/metadata.txt b/unix-ffi/re-pcre/metadata.txt deleted file mode 100644 index d129ed7d6..000000000 --- a/unix-ffi/re-pcre/metadata.txt +++ /dev/null @@ -1,6 +0,0 @@ -name = re -srctype = micropython-lib -type = module -version = 0.2.5 -author = Paul Sokolovsky -depends = ffilib diff --git a/unix-ffi/select/manifest.py b/unix-ffi/select/manifest.py new file mode 100644 index 000000000..b76078cc8 --- /dev/null +++ b/unix-ffi/select/manifest.py @@ -0,0 +1,8 @@ +metadata(version="0.3") + +# Originally written by Paul Sokolovsky. + +require("os") +require("ffilib") + +module("select.py") diff --git a/unix-ffi/select/metadata.txt b/unix-ffi/select/metadata.txt deleted file mode 100644 index c44f5dad4..000000000 --- a/unix-ffi/select/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.3 -author = Paul Sokolovsky -depends = os, ffilib diff --git a/unix-ffi/signal/manifest.py b/unix-ffi/signal/manifest.py new file mode 100644 index 000000000..cb23542cc --- /dev/null +++ b/unix-ffi/signal/manifest.py @@ -0,0 +1,7 @@ +metadata(version="0.3.2") + +# Originally written by Paul Sokolovsky. + +require("ffilib") + +module("signal.py") diff --git a/unix-ffi/signal/metadata.txt b/unix-ffi/signal/metadata.txt deleted file mode 100644 index ffc676c93..000000000 --- a/unix-ffi/signal/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.3.2 -author = Paul Sokolovsky -depends = ffilib diff --git a/unix-ffi/sqlite3/manifest.py b/unix-ffi/sqlite3/manifest.py new file mode 100644 index 000000000..63cdf4b9f --- /dev/null +++ b/unix-ffi/sqlite3/manifest.py @@ -0,0 +1,7 @@ +metadata(version="0.2.4") + +# Originally written by Paul Sokolovsky. + +require("ffilib") + +module("sqlite3.py") diff --git a/unix-ffi/sqlite3/metadata.txt b/unix-ffi/sqlite3/metadata.txt deleted file mode 100644 index 92eeb4c0e..000000000 --- a/unix-ffi/sqlite3/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.2.4 -author = Paul Sokolovsky -depends = ffilib diff --git a/unix-ffi/time/manifest.py b/unix-ffi/time/manifest.py new file mode 100644 index 000000000..32004b152 --- /dev/null +++ b/unix-ffi/time/manifest.py @@ -0,0 +1,5 @@ +metadata(version="0.5") + +require("ffilib") + +module("time.py") diff --git a/unix-ffi/time/metadata.txt b/unix-ffi/time/metadata.txt deleted file mode 100644 index f4700d3ce..000000000 --- a/unix-ffi/time/metadata.txt +++ /dev/null @@ -1,4 +0,0 @@ -srctype = micropython-lib -type = module -version = 0.5 -depends = ffilib diff --git a/unix-ffi/tty/manifest.py b/unix-ffi/tty/manifest.py new file mode 100644 index 000000000..7c8a88cac --- /dev/null +++ b/unix-ffi/tty/manifest.py @@ -0,0 +1,3 @@ +metadata(version="1.0.1") + +module("tty.py") diff --git a/unix-ffi/tty/metadata.txt b/unix-ffi/tty/metadata.txt deleted file mode 100644 index cfad2f999..000000000 --- a/unix-ffi/tty/metadata.txt +++ /dev/null @@ -1,3 +0,0 @@ -srctype = micropython-lib -type = module -version = 1.0.1 diff --git a/unix-ffi/ucurses/manifest.py b/unix-ffi/ucurses/manifest.py new file mode 100644 index 000000000..8ec2675a5 --- /dev/null +++ b/unix-ffi/ucurses/manifest.py @@ -0,0 +1,9 @@ +metadata(version="0.1.2") + +# Originally written by Paul Sokolovsky. + +require("os") +require("tty") +require("select") + +package("ucurses") diff --git a/unix-ffi/ucurses/metadata.txt b/unix-ffi/ucurses/metadata.txt deleted file mode 100644 index c9f63dde5..000000000 --- a/unix-ffi/ucurses/metadata.txt +++ /dev/null @@ -1,5 +0,0 @@ -srctype = micropython-lib -type = package -version = 0.1.2 -author = Paul Sokolovsky -depends = os, tty, select From cafe4b6b547f18c86bf97fa78e30837f51920f95 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Thu, 11 Aug 2022 00:38:03 +1000 Subject: [PATCH 4/4] 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 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=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 --- python-stdlib/base64/base64.py | 2 +- python-stdlib/base64/manifest.py | 1 - python-stdlib/email.charset/manifest.py | 7 ------- python-stdlib/email.feedparser/manifest.py | 8 -------- python-stdlib/email.header/manifest.py | 9 --------- python-stdlib/email.internal/manifest.py | 15 --------------- python-stdlib/email.message/manifest.py | 11 ----------- python-stdlib/email.parser/manifest.py | 8 -------- python-stdlib/glob/manifest.py | 7 ------- python-stdlib/html.parser/manifest.py | 8 -------- python-stdlib/http.client/manifest.py | 10 ---------- python-stdlib/uu/manifest.py | 2 +- unix-ffi/README.md | 19 ++++++++++++++++--- .../_markupbase/_markupbase.py | 0 .../_markupbase/manifest.py | 2 +- .../argparse/argparse.py | 0 .../argparse/manifest.py | 0 .../argparse/test_argparse.py | 0 {python-stdlib => unix-ffi}/cgi/cgi.py | 0 {python-stdlib => unix-ffi}/cgi/manifest.py | 0 .../email.charset/email/charset.py | 0 .../email.encoders/email/base64mime.py | 0 .../email.encoders/email/encoders.py | 0 .../email.encoders/email/quoprimime.py | 0 .../email.encoders/manifest.py | 2 +- .../email.errors/email/errors.py | 0 .../email.errors/manifest.py | 0 .../email.feedparser/email/feedparser.py | 0 .../email.header/email/header.py | 0 .../email.internal/email/_encoded_words.py | 0 .../email.internal/email/_parseaddr.py | 0 .../email.internal/email/_policybase.py | 0 .../email.message/email/iterators.py | 0 .../email.message/email/message.py | 0 .../email.parser/email/parser.py | 0 .../email.utils/email/utils.py | 5 ++++- .../email.utils/manifest.py | 8 ++++---- unix-ffi/fcntl/manifest.py | 2 +- {python-stdlib => unix-ffi}/getopt/getopt.py | 0 .../getopt/manifest.py | 2 +- unix-ffi/gettext/manifest.py | 2 +- {python-stdlib => unix-ffi}/glob/glob.py | 0 {python-stdlib => unix-ffi}/glob/test_glob.py | 0 .../html.entities/html/entities.py | 0 .../html.entities/manifest.py | 0 .../html.parser/html/parser.py | 0 .../http.client/example_client.py | 0 .../http.client/http/client.py | 0 unix-ffi/machine/manifest.py | 6 +++--- unix-ffi/multiprocessing/manifest.py | 4 ++-- unix-ffi/os/manifest.py | 2 +- unix-ffi/pwd/manifest.py | 2 +- unix-ffi/{re-pcre => re}/manifest.py | 2 +- unix-ffi/{re-pcre => re}/re.py | 0 unix-ffi/{re-pcre => re}/test_re.py | 0 unix-ffi/select/manifest.py | 4 ++-- unix-ffi/signal/manifest.py | 2 +- .../socket/manifest.py | 0 {python-stdlib => unix-ffi}/socket/socket.py | 0 unix-ffi/sqlite3/manifest.py | 2 +- .../test.support/manifest.py | 0 .../test.support/test/support.py | 0 unix-ffi/time/manifest.py | 2 +- .../timeit/manifest.py | 4 ++-- {python-stdlib => unix-ffi}/timeit/timeit.py | 0 unix-ffi/ucurses/manifest.py | 6 +++--- .../unittest/manifest.py | 2 +- .../unittest/test_unittest.py | 0 .../unittest/test_unittest_isolated.py | 0 .../unittest/unittest.py | 0 .../unittest/unittest_discover.py | 0 .../urllib.parse/manifest.py | 2 +- .../urllib.parse/test_urlparse.py | 0 .../urllib.parse/urllib/parse.py | 0 74 files changed, 51 insertions(+), 119 deletions(-) delete mode 100644 python-stdlib/email.charset/manifest.py delete mode 100644 python-stdlib/email.feedparser/manifest.py delete mode 100644 python-stdlib/email.header/manifest.py delete mode 100644 python-stdlib/email.internal/manifest.py delete mode 100644 python-stdlib/email.message/manifest.py delete mode 100644 python-stdlib/email.parser/manifest.py delete mode 100644 python-stdlib/glob/manifest.py delete mode 100644 python-stdlib/html.parser/manifest.py delete mode 100644 python-stdlib/http.client/manifest.py rename {python-stdlib => unix-ffi}/_markupbase/_markupbase.py (100%) rename {python-stdlib => unix-ffi}/_markupbase/manifest.py (65%) rename {python-stdlib => unix-ffi}/argparse/argparse.py (100%) rename {python-stdlib => unix-ffi}/argparse/manifest.py (100%) rename {python-stdlib => unix-ffi}/argparse/test_argparse.py (100%) rename {python-stdlib => unix-ffi}/cgi/cgi.py (100%) rename {python-stdlib => unix-ffi}/cgi/manifest.py (100%) rename {python-stdlib => unix-ffi}/email.charset/email/charset.py (100%) rename {python-stdlib => unix-ffi}/email.encoders/email/base64mime.py (100%) rename {python-stdlib => unix-ffi}/email.encoders/email/encoders.py (100%) rename {python-stdlib => unix-ffi}/email.encoders/email/quoprimime.py (100%) rename {python-stdlib => unix-ffi}/email.encoders/manifest.py (80%) rename {python-stdlib => unix-ffi}/email.errors/email/errors.py (100%) rename {python-stdlib => unix-ffi}/email.errors/manifest.py (100%) rename {python-stdlib => unix-ffi}/email.feedparser/email/feedparser.py (100%) rename {python-stdlib => unix-ffi}/email.header/email/header.py (100%) rename {python-stdlib => unix-ffi}/email.internal/email/_encoded_words.py (100%) rename {python-stdlib => unix-ffi}/email.internal/email/_parseaddr.py (100%) rename {python-stdlib => unix-ffi}/email.internal/email/_policybase.py (100%) rename {python-stdlib => unix-ffi}/email.message/email/iterators.py (100%) rename {python-stdlib => unix-ffi}/email.message/email/message.py (100%) rename {python-stdlib => unix-ffi}/email.parser/email/parser.py (100%) rename {python-stdlib => unix-ffi}/email.utils/email/utils.py (99%) rename {python-stdlib => unix-ffi}/email.utils/manifest.py (50%) rename {python-stdlib => unix-ffi}/getopt/getopt.py (100%) rename {python-stdlib => unix-ffi}/getopt/manifest.py (63%) rename {python-stdlib => unix-ffi}/glob/glob.py (100%) rename {python-stdlib => unix-ffi}/glob/test_glob.py (100%) rename {python-stdlib => unix-ffi}/html.entities/html/entities.py (100%) rename {python-stdlib => unix-ffi}/html.entities/manifest.py (100%) rename {python-stdlib => unix-ffi}/html.parser/html/parser.py (100%) rename {python-stdlib => unix-ffi}/http.client/example_client.py (100%) rename {python-stdlib => unix-ffi}/http.client/http/client.py (100%) rename unix-ffi/{re-pcre => re}/manifest.py (72%) rename unix-ffi/{re-pcre => re}/re.py (100%) rename unix-ffi/{re-pcre => re}/test_re.py (100%) rename {python-stdlib => unix-ffi}/socket/manifest.py (100%) rename {python-stdlib => unix-ffi}/socket/socket.py (100%) rename {micropython => unix-ffi}/test.support/manifest.py (100%) rename {micropython => unix-ffi}/test.support/test/support.py (100%) rename {python-stdlib => unix-ffi}/timeit/manifest.py (65%) rename {python-stdlib => unix-ffi}/timeit/timeit.py (100%) rename {python-stdlib => unix-ffi}/unittest/manifest.py (66%) rename {python-stdlib => unix-ffi}/unittest/test_unittest.py (100%) rename {python-stdlib => unix-ffi}/unittest/test_unittest_isolated.py (100%) rename {python-stdlib => unix-ffi}/unittest/unittest.py (100%) rename {python-stdlib => unix-ffi}/unittest/unittest_discover.py (100%) rename {python-stdlib => unix-ffi}/urllib.parse/manifest.py (78%) rename {python-stdlib => unix-ffi}/urllib.parse/test_urlparse.py (100%) rename {python-stdlib => unix-ffi}/urllib.parse/urllib/parse.py (100%) diff --git a/python-stdlib/base64/base64.py b/python-stdlib/base64/base64.py index 866bf9c91..daa39728b 100644 --- a/python-stdlib/base64/base64.py +++ b/python-stdlib/base64/base64.py @@ -96,7 +96,7 @@ def b64decode(s, altchars=None, validate=False): altchars = _bytes_from_decode_data(altchars) assert len(altchars) == 2, repr(altchars) s = s.translate(bytes.maketrans(altchars, b"+/")) - if validate and not re.match(b"^[A-Za-z0-9+/]*={0,2}$", s): + if validate and not re.match(b"^[A-Za-z0-9+/]*=*$", s): raise binascii.Error("Non-base64 digit found") return binascii.a2b_base64(s) diff --git a/python-stdlib/base64/manifest.py b/python-stdlib/base64/manifest.py index 4268481ae..59d39f78b 100644 --- a/python-stdlib/base64/manifest.py +++ b/python-stdlib/base64/manifest.py @@ -1,7 +1,6 @@ metadata(version="3.3.3-4") require("binascii") -require("re-pcre") require("struct") module("base64.py") diff --git a/python-stdlib/email.charset/manifest.py b/python-stdlib/email.charset/manifest.py deleted file mode 100644 index 208dd9a90..000000000 --- a/python-stdlib/email.charset/manifest.py +++ /dev/null @@ -1,7 +0,0 @@ -# email.charset - -require("functools") -require("email.encoders") -require("email.errors") - -package("email", version="0.5.1") diff --git a/python-stdlib/email.feedparser/manifest.py b/python-stdlib/email.feedparser/manifest.py deleted file mode 100644 index bc0da6dc9..000000000 --- a/python-stdlib/email.feedparser/manifest.py +++ /dev/null @@ -1,8 +0,0 @@ -# email.feedparser - -require("re-pcre") -require("email.errors") -require("email.message") -require("email.internal") - -package("email", version="0.5.1") diff --git a/python-stdlib/email.header/manifest.py b/python-stdlib/email.header/manifest.py deleted file mode 100644 index c901a52e7..000000000 --- a/python-stdlib/email.header/manifest.py +++ /dev/null @@ -1,9 +0,0 @@ -# email.header - -require("re-pcre") -require("binascii") -require("email.encoders") -require("email.errors") -require("email.charset") - -package("email", version="0.5.2") diff --git a/python-stdlib/email.internal/manifest.py b/python-stdlib/email.internal/manifest.py deleted file mode 100644 index 602d1ce30..000000000 --- a/python-stdlib/email.internal/manifest.py +++ /dev/null @@ -1,15 +0,0 @@ -# email.internal - -require("re-pcre") -require("base64") -require("binascii") -require("functools") -require("string") -# require("calendar") TODO -require("abc") -require("email.errors") -require("email.header") -require("email.charset") -require("email.utils") - -package("email", version="0.5.1") diff --git a/python-stdlib/email.message/manifest.py b/python-stdlib/email.message/manifest.py deleted file mode 100644 index 1f1fa48aa..000000000 --- a/python-stdlib/email.message/manifest.py +++ /dev/null @@ -1,11 +0,0 @@ -# email.message - -require("re-pcre") -require("uu") -require("base64") -require("binascii") -require("email.utils") -require("email.errors") -require("email.charset") - -package("email", version="0.5.3") diff --git a/python-stdlib/email.parser/manifest.py b/python-stdlib/email.parser/manifest.py deleted file mode 100644 index 095e32245..000000000 --- a/python-stdlib/email.parser/manifest.py +++ /dev/null @@ -1,8 +0,0 @@ -# email.parser - -require("warnings") -require("email.feedparser") -require("email.message") -require("email.internal") - -package("email", version="0.5.1") diff --git a/python-stdlib/glob/manifest.py b/python-stdlib/glob/manifest.py deleted file mode 100644 index e4cb7ccca..000000000 --- a/python-stdlib/glob/manifest.py +++ /dev/null @@ -1,7 +0,0 @@ -# glob - -require("os") -require("re-pcre") -require("fnmatch") - -module("glob.py", version="0.5.2") diff --git a/python-stdlib/html.parser/manifest.py b/python-stdlib/html.parser/manifest.py deleted file mode 100644 index 44a41c31c..000000000 --- a/python-stdlib/html.parser/manifest.py +++ /dev/null @@ -1,8 +0,0 @@ -# html.parser - -require("_markupbase") -require("warnings") -require("html.entities") -require("re-pcre") - -package("html", version="3.3.3-2") diff --git a/python-stdlib/http.client/manifest.py b/python-stdlib/http.client/manifest.py deleted file mode 100644 index 119d08f3d..000000000 --- a/python-stdlib/http.client/manifest.py +++ /dev/null @@ -1,10 +0,0 @@ -# http.client - -require("email.parser") -require("email.message") -require("socket") -require("collections") -require("urllib.parse") -require("warnings") - -package("http", version="0.5.1") diff --git a/python-stdlib/uu/manifest.py b/python-stdlib/uu/manifest.py index daf50569d..ae90f8882 100644 --- a/python-stdlib/uu/manifest.py +++ b/python-stdlib/uu/manifest.py @@ -1,6 +1,6 @@ metadata(version="0.5.1") require("binascii") -require("os") +require("os.path") module("uu.py") diff --git a/unix-ffi/README.md b/unix-ffi/README.md index ae58362c8..d821dda4f 100644 --- a/unix-ffi/README.md +++ b/unix-ffi/README.md @@ -1,9 +1,11 @@ Unix-specific libraries ======================= -These are libraries that will only run on the Unix port of MicroPython. There is some limited support for the Windows port too. +These are libraries that will only run on the Unix port of MicroPython, or are +too big to be used on microcontrollers. There is some limited support for the +Windows port too. -**Note:** This directory is largely unmaintained, although large breaking changes are not expected. +**Note:** This directory is unmaintained. Background ---------- @@ -11,7 +13,18 @@ Background The libraries in this directory provide additional CPython compatibility using the host operating system's native libraries. -This is implemented either by accessing the libraries directly via libffi, or by using built-in modules that are only available on the Unix port. +This is implemented either by accessing the libraries directly via libffi, or +by using built-in modules that are only available on the Unix port. In theory, this allows you to use MicroPython as a more complete drop-in replacement for CPython. + +Usage +----- + +To use a unix-specific library, pass `unix_ffi=True` to `require()` in your +manifest file. + +```py +require("os", unix_ffi=True) # Use the unix-ffi version instead of python-stdlib. +``` diff --git a/python-stdlib/_markupbase/_markupbase.py b/unix-ffi/_markupbase/_markupbase.py similarity index 100% rename from python-stdlib/_markupbase/_markupbase.py rename to unix-ffi/_markupbase/_markupbase.py diff --git a/python-stdlib/_markupbase/manifest.py b/unix-ffi/_markupbase/manifest.py similarity index 65% rename from python-stdlib/_markupbase/manifest.py rename to unix-ffi/_markupbase/manifest.py index 470f8a457..983b57995 100644 --- a/python-stdlib/_markupbase/manifest.py +++ b/unix-ffi/_markupbase/manifest.py @@ -1,5 +1,5 @@ metadata(version="3.3.3-1") -require("re-pcre") +require("re", unix_ffi=True) module("_markupbase.py") diff --git a/python-stdlib/argparse/argparse.py b/unix-ffi/argparse/argparse.py similarity index 100% rename from python-stdlib/argparse/argparse.py rename to unix-ffi/argparse/argparse.py diff --git a/python-stdlib/argparse/manifest.py b/unix-ffi/argparse/manifest.py similarity index 100% rename from python-stdlib/argparse/manifest.py rename to unix-ffi/argparse/manifest.py diff --git a/python-stdlib/argparse/test_argparse.py b/unix-ffi/argparse/test_argparse.py similarity index 100% rename from python-stdlib/argparse/test_argparse.py rename to unix-ffi/argparse/test_argparse.py diff --git a/python-stdlib/cgi/cgi.py b/unix-ffi/cgi/cgi.py similarity index 100% rename from python-stdlib/cgi/cgi.py rename to unix-ffi/cgi/cgi.py diff --git a/python-stdlib/cgi/manifest.py b/unix-ffi/cgi/manifest.py similarity index 100% rename from python-stdlib/cgi/manifest.py rename to unix-ffi/cgi/manifest.py diff --git a/python-stdlib/email.charset/email/charset.py b/unix-ffi/email.charset/email/charset.py similarity index 100% rename from python-stdlib/email.charset/email/charset.py rename to unix-ffi/email.charset/email/charset.py diff --git a/python-stdlib/email.encoders/email/base64mime.py b/unix-ffi/email.encoders/email/base64mime.py similarity index 100% rename from python-stdlib/email.encoders/email/base64mime.py rename to unix-ffi/email.encoders/email/base64mime.py diff --git a/python-stdlib/email.encoders/email/encoders.py b/unix-ffi/email.encoders/email/encoders.py similarity index 100% rename from python-stdlib/email.encoders/email/encoders.py rename to unix-ffi/email.encoders/email/encoders.py diff --git a/python-stdlib/email.encoders/email/quoprimime.py b/unix-ffi/email.encoders/email/quoprimime.py similarity index 100% rename from python-stdlib/email.encoders/email/quoprimime.py rename to unix-ffi/email.encoders/email/quoprimime.py diff --git a/python-stdlib/email.encoders/manifest.py b/unix-ffi/email.encoders/manifest.py similarity index 80% rename from python-stdlib/email.encoders/manifest.py rename to unix-ffi/email.encoders/manifest.py index f59bf11b4..e1e2090c9 100644 --- a/python-stdlib/email.encoders/manifest.py +++ b/unix-ffi/email.encoders/manifest.py @@ -3,7 +3,7 @@ require("base64") require("binascii") require("quopri") -require("re-pcre") +require("re", unix_ffi=True) require("string") package("email") diff --git a/python-stdlib/email.errors/email/errors.py b/unix-ffi/email.errors/email/errors.py similarity index 100% rename from python-stdlib/email.errors/email/errors.py rename to unix-ffi/email.errors/email/errors.py diff --git a/python-stdlib/email.errors/manifest.py b/unix-ffi/email.errors/manifest.py similarity index 100% rename from python-stdlib/email.errors/manifest.py rename to unix-ffi/email.errors/manifest.py diff --git a/python-stdlib/email.feedparser/email/feedparser.py b/unix-ffi/email.feedparser/email/feedparser.py similarity index 100% rename from python-stdlib/email.feedparser/email/feedparser.py rename to unix-ffi/email.feedparser/email/feedparser.py diff --git a/python-stdlib/email.header/email/header.py b/unix-ffi/email.header/email/header.py similarity index 100% rename from python-stdlib/email.header/email/header.py rename to unix-ffi/email.header/email/header.py diff --git a/python-stdlib/email.internal/email/_encoded_words.py b/unix-ffi/email.internal/email/_encoded_words.py similarity index 100% rename from python-stdlib/email.internal/email/_encoded_words.py rename to unix-ffi/email.internal/email/_encoded_words.py diff --git a/python-stdlib/email.internal/email/_parseaddr.py b/unix-ffi/email.internal/email/_parseaddr.py similarity index 100% rename from python-stdlib/email.internal/email/_parseaddr.py rename to unix-ffi/email.internal/email/_parseaddr.py diff --git a/python-stdlib/email.internal/email/_policybase.py b/unix-ffi/email.internal/email/_policybase.py similarity index 100% rename from python-stdlib/email.internal/email/_policybase.py rename to unix-ffi/email.internal/email/_policybase.py diff --git a/python-stdlib/email.message/email/iterators.py b/unix-ffi/email.message/email/iterators.py similarity index 100% rename from python-stdlib/email.message/email/iterators.py rename to unix-ffi/email.message/email/iterators.py diff --git a/python-stdlib/email.message/email/message.py b/unix-ffi/email.message/email/message.py similarity index 100% rename from python-stdlib/email.message/email/message.py rename to unix-ffi/email.message/email/message.py diff --git a/python-stdlib/email.parser/email/parser.py b/unix-ffi/email.parser/email/parser.py similarity index 100% rename from python-stdlib/email.parser/email/parser.py rename to unix-ffi/email.parser/email/parser.py diff --git a/python-stdlib/email.utils/email/utils.py b/unix-ffi/email.utils/email/utils.py similarity index 99% rename from python-stdlib/email.utils/email/utils.py rename to unix-ffi/email.utils/email/utils.py index 0fe32ceea..e0ebdd342 100644 --- a/python-stdlib/email.utils/email/utils.py +++ b/unix-ffi/email.utils/email/utils.py @@ -215,7 +215,10 @@ def make_msgid(idstring=None, domain=None): """ timeval = time.time() utcdate = time.strftime("%Y%m%d%H%M%S", time.gmtime(timeval)) - pid = os.getpid() + if hasattr(os, "getpid"): + pid = os.getpid() + else: + pid = 0 randint = random.randrange(100000) if idstring is None: idstring = "" diff --git a/python-stdlib/email.utils/manifest.py b/unix-ffi/email.utils/manifest.py similarity index 50% rename from python-stdlib/email.utils/manifest.py rename to unix-ffi/email.utils/manifest.py index 30770226e..be6e33183 100644 --- a/python-stdlib/email.utils/manifest.py +++ b/unix-ffi/email.utils/manifest.py @@ -1,13 +1,13 @@ metadata(version="3.3.3-2") -require("os") -require("re-pcre") +require("os", unix_ffi=True) +require("re", unix_ffi=True) require("base64") require("random") require("datetime") -require("urllib.parse") +require("urllib.parse", unix_ffi=True) require("warnings") require("quopri") -require("email.charset") +require("email.charset", unix_ffi=True) package("email") diff --git a/unix-ffi/fcntl/manifest.py b/unix-ffi/fcntl/manifest.py index e572a58e8..a0e9d9592 100644 --- a/unix-ffi/fcntl/manifest.py +++ b/unix-ffi/fcntl/manifest.py @@ -2,6 +2,6 @@ # Originally written by Paul Sokolovsky. -require("ffilib") +require("ffilib", unix_ffi=True) module("fcntl.py") diff --git a/python-stdlib/getopt/getopt.py b/unix-ffi/getopt/getopt.py similarity index 100% rename from python-stdlib/getopt/getopt.py rename to unix-ffi/getopt/getopt.py diff --git a/python-stdlib/getopt/manifest.py b/unix-ffi/getopt/manifest.py similarity index 63% rename from python-stdlib/getopt/manifest.py rename to unix-ffi/getopt/manifest.py index 437f4068d..2038e7504 100644 --- a/python-stdlib/getopt/manifest.py +++ b/unix-ffi/getopt/manifest.py @@ -1,5 +1,5 @@ metadata(version="3.3.3-1") -require("os") +require("os", unix_ffi=True) module("getopt.py") diff --git a/unix-ffi/gettext/manifest.py b/unix-ffi/gettext/manifest.py index a2b520152..527330e92 100644 --- a/unix-ffi/gettext/manifest.py +++ b/unix-ffi/gettext/manifest.py @@ -2,6 +2,6 @@ # Originally written by Riccardo Magliocchetti. -require("ffilib") +require("ffilib", unix_ffi=True) module("gettext.py") diff --git a/python-stdlib/glob/glob.py b/unix-ffi/glob/glob.py similarity index 100% rename from python-stdlib/glob/glob.py rename to unix-ffi/glob/glob.py diff --git a/python-stdlib/glob/test_glob.py b/unix-ffi/glob/test_glob.py similarity index 100% rename from python-stdlib/glob/test_glob.py rename to unix-ffi/glob/test_glob.py diff --git a/python-stdlib/html.entities/html/entities.py b/unix-ffi/html.entities/html/entities.py similarity index 100% rename from python-stdlib/html.entities/html/entities.py rename to unix-ffi/html.entities/html/entities.py diff --git a/python-stdlib/html.entities/manifest.py b/unix-ffi/html.entities/manifest.py similarity index 100% rename from python-stdlib/html.entities/manifest.py rename to unix-ffi/html.entities/manifest.py diff --git a/python-stdlib/html.parser/html/parser.py b/unix-ffi/html.parser/html/parser.py similarity index 100% rename from python-stdlib/html.parser/html/parser.py rename to unix-ffi/html.parser/html/parser.py diff --git a/python-stdlib/http.client/example_client.py b/unix-ffi/http.client/example_client.py similarity index 100% rename from python-stdlib/http.client/example_client.py rename to unix-ffi/http.client/example_client.py diff --git a/python-stdlib/http.client/http/client.py b/unix-ffi/http.client/http/client.py similarity index 100% rename from python-stdlib/http.client/http/client.py rename to unix-ffi/http.client/http/client.py diff --git a/unix-ffi/machine/manifest.py b/unix-ffi/machine/manifest.py index c0e40764d..9c1f34775 100644 --- a/unix-ffi/machine/manifest.py +++ b/unix-ffi/machine/manifest.py @@ -2,8 +2,8 @@ # Originally written by Paul Sokolovsky. -require("ffilib") -require("os") -require("signal") +require("ffilib", unix_ffi=True) +require("os", unix_ffi=True) +require("signal", unix_ffi=True) package("machine") diff --git a/unix-ffi/multiprocessing/manifest.py b/unix-ffi/multiprocessing/manifest.py index d6b32411d..68f2bca08 100644 --- a/unix-ffi/multiprocessing/manifest.py +++ b/unix-ffi/multiprocessing/manifest.py @@ -2,8 +2,8 @@ # Originally written by Paul Sokolovsky. -require("os") -require("select") +require("os", unix_ffi=True) +require("select", unix_ffi=True) require("pickle") module("multiprocessing.py") diff --git a/unix-ffi/os/manifest.py b/unix-ffi/os/manifest.py index 496a9e44e..38cb87d5a 100644 --- a/unix-ffi/os/manifest.py +++ b/unix-ffi/os/manifest.py @@ -2,7 +2,7 @@ # Originally written by Paul Sokolovsky. -require("ffilib") +require("ffilib", unix_ffi=True) require("errno") require("stat") diff --git a/unix-ffi/pwd/manifest.py b/unix-ffi/pwd/manifest.py index 26e289b46..7db3213f5 100644 --- a/unix-ffi/pwd/manifest.py +++ b/unix-ffi/pwd/manifest.py @@ -2,6 +2,6 @@ # Originally written by Riccardo Magliocchetti. -require("ffilib") +require("ffilib", unix_ffi=True) module("pwd.py") diff --git a/unix-ffi/re-pcre/manifest.py b/unix-ffi/re/manifest.py similarity index 72% rename from unix-ffi/re-pcre/manifest.py rename to unix-ffi/re/manifest.py index ca027317d..cc52df47a 100644 --- a/unix-ffi/re-pcre/manifest.py +++ b/unix-ffi/re/manifest.py @@ -2,6 +2,6 @@ # Originally written by Paul Sokolovsky. -require("ffilib") +require("ffilib", unix_ffi=True) module("re.py") diff --git a/unix-ffi/re-pcre/re.py b/unix-ffi/re/re.py similarity index 100% rename from unix-ffi/re-pcre/re.py rename to unix-ffi/re/re.py diff --git a/unix-ffi/re-pcre/test_re.py b/unix-ffi/re/test_re.py similarity index 100% rename from unix-ffi/re-pcre/test_re.py rename to unix-ffi/re/test_re.py diff --git a/unix-ffi/select/manifest.py b/unix-ffi/select/manifest.py index b76078cc8..cadfd4e96 100644 --- a/unix-ffi/select/manifest.py +++ b/unix-ffi/select/manifest.py @@ -2,7 +2,7 @@ # Originally written by Paul Sokolovsky. -require("os") -require("ffilib") +require("os", unix_ffi=True) +require("ffilib", unix_ffi=True) module("select.py") diff --git a/unix-ffi/signal/manifest.py b/unix-ffi/signal/manifest.py index cb23542cc..913bbdc8c 100644 --- a/unix-ffi/signal/manifest.py +++ b/unix-ffi/signal/manifest.py @@ -2,6 +2,6 @@ # Originally written by Paul Sokolovsky. -require("ffilib") +require("ffilib", unix_ffi=True) module("signal.py") diff --git a/python-stdlib/socket/manifest.py b/unix-ffi/socket/manifest.py similarity index 100% rename from python-stdlib/socket/manifest.py rename to unix-ffi/socket/manifest.py diff --git a/python-stdlib/socket/socket.py b/unix-ffi/socket/socket.py similarity index 100% rename from python-stdlib/socket/socket.py rename to unix-ffi/socket/socket.py diff --git a/unix-ffi/sqlite3/manifest.py b/unix-ffi/sqlite3/manifest.py index 63cdf4b9f..e941e1ddd 100644 --- a/unix-ffi/sqlite3/manifest.py +++ b/unix-ffi/sqlite3/manifest.py @@ -2,6 +2,6 @@ # Originally written by Paul Sokolovsky. -require("ffilib") +require("ffilib", unix_ffi=True) module("sqlite3.py") diff --git a/micropython/test.support/manifest.py b/unix-ffi/test.support/manifest.py similarity index 100% rename from micropython/test.support/manifest.py rename to unix-ffi/test.support/manifest.py diff --git a/micropython/test.support/test/support.py b/unix-ffi/test.support/test/support.py similarity index 100% rename from micropython/test.support/test/support.py rename to unix-ffi/test.support/test/support.py diff --git a/unix-ffi/time/manifest.py b/unix-ffi/time/manifest.py index 32004b152..fcaaf7275 100644 --- a/unix-ffi/time/manifest.py +++ b/unix-ffi/time/manifest.py @@ -1,5 +1,5 @@ metadata(version="0.5") -require("ffilib") +require("ffilib", unix_ffi=True) module("time.py") diff --git a/python-stdlib/timeit/manifest.py b/unix-ffi/timeit/manifest.py similarity index 65% rename from python-stdlib/timeit/manifest.py rename to unix-ffi/timeit/manifest.py index 67ff15902..82689bb8d 100644 --- a/python-stdlib/timeit/manifest.py +++ b/unix-ffi/timeit/manifest.py @@ -1,9 +1,9 @@ metadata(version="3.3.3-3") -require("getopt") +require("getopt", unix_ffi=True) require("itertools") # require("linecache") TODO -require("time") +require("time", unix_ffi=True) require("traceback") module("timeit.py") diff --git a/python-stdlib/timeit/timeit.py b/unix-ffi/timeit/timeit.py similarity index 100% rename from python-stdlib/timeit/timeit.py rename to unix-ffi/timeit/timeit.py diff --git a/unix-ffi/ucurses/manifest.py b/unix-ffi/ucurses/manifest.py index 8ec2675a5..50648033e 100644 --- a/unix-ffi/ucurses/manifest.py +++ b/unix-ffi/ucurses/manifest.py @@ -2,8 +2,8 @@ # Originally written by Paul Sokolovsky. -require("os") -require("tty") -require("select") +require("os", unix_ffi=True) +require("tty", unix_ffi=True) +require("select", unix_ffi=True) package("ucurses") diff --git a/python-stdlib/unittest/manifest.py b/unix-ffi/unittest/manifest.py similarity index 66% rename from python-stdlib/unittest/manifest.py rename to unix-ffi/unittest/manifest.py index 85a5f4015..3f4ddae59 100644 --- a/python-stdlib/unittest/manifest.py +++ b/unix-ffi/unittest/manifest.py @@ -1,6 +1,6 @@ metadata(version="0.9.0") -require("argparse") +require("argparse", unix_ffi=True) require("fnmatch") module("unittest.py") diff --git a/python-stdlib/unittest/test_unittest.py b/unix-ffi/unittest/test_unittest.py similarity index 100% rename from python-stdlib/unittest/test_unittest.py rename to unix-ffi/unittest/test_unittest.py diff --git a/python-stdlib/unittest/test_unittest_isolated.py b/unix-ffi/unittest/test_unittest_isolated.py similarity index 100% rename from python-stdlib/unittest/test_unittest_isolated.py rename to unix-ffi/unittest/test_unittest_isolated.py diff --git a/python-stdlib/unittest/unittest.py b/unix-ffi/unittest/unittest.py similarity index 100% rename from python-stdlib/unittest/unittest.py rename to unix-ffi/unittest/unittest.py diff --git a/python-stdlib/unittest/unittest_discover.py b/unix-ffi/unittest/unittest_discover.py similarity index 100% rename from python-stdlib/unittest/unittest_discover.py rename to unix-ffi/unittest/unittest_discover.py diff --git a/python-stdlib/urllib.parse/manifest.py b/unix-ffi/urllib.parse/manifest.py similarity index 78% rename from python-stdlib/urllib.parse/manifest.py rename to unix-ffi/urllib.parse/manifest.py index 4731060d7..ad213bf06 100644 --- a/python-stdlib/urllib.parse/manifest.py +++ b/unix-ffi/urllib.parse/manifest.py @@ -1,6 +1,6 @@ metadata(version="0.5.2") -require("re-pcre") +require("re", unix_ffi=True) require("collections") require("collections.defaultdict") diff --git a/python-stdlib/urllib.parse/test_urlparse.py b/unix-ffi/urllib.parse/test_urlparse.py similarity index 100% rename from python-stdlib/urllib.parse/test_urlparse.py rename to unix-ffi/urllib.parse/test_urlparse.py diff --git a/python-stdlib/urllib.parse/urllib/parse.py b/unix-ffi/urllib.parse/urllib/parse.py similarity index 100% rename from python-stdlib/urllib.parse/urllib/parse.py rename to unix-ffi/urllib.parse/urllib/parse.py