From f9f2264d992947910dda852b646ac6194dce9384 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 23 Jun 2017 15:40:02 +0300 Subject: [PATCH] typing: Add dummy module. --- typing/metadata.txt | 3 +++ typing/setup.py | 20 ++++++++++++++++++++ typing/typing.py | 0 3 files changed, 23 insertions(+) create mode 100644 typing/metadata.txt create mode 100644 typing/setup.py create mode 100644 typing/typing.py diff --git a/typing/metadata.txt b/typing/metadata.txt new file mode 100644 index 00000000..976088c8 --- /dev/null +++ b/typing/metadata.txt @@ -0,0 +1,3 @@ +srctype = dummy +type = module +version = 0.0.0 diff --git a/typing/setup.py b/typing/setup.py new file mode 100644 index 00000000..aa71ab52 --- /dev/null +++ b/typing/setup.py @@ -0,0 +1,20 @@ +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 optimize_upip + +setup(name='micropython-typing', + version='0.0.0', + description='Dummy typing 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 Developers', + author_email='micro-python@googlegroups.com', + maintainer='MicroPython Developers', + maintainer_email='micro-python@googlegroups.com', + license='MIT', + cmdclass={'optimize_upip': optimize_upip.OptimizeUpip}, + py_modules=['typing']) diff --git a/typing/typing.py b/typing/typing.py new file mode 100644 index 00000000..e69de29b