From 7f143db63c194d8eeadd8ffa3af2782cf35c0d92 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 20 May 2014 22:28:36 +0300 Subject: [PATCH] abc: Add dummy module. --- abc/abc.py | 2 ++ abc/metadata.txt | 3 +++ abc/setup.py | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 abc/abc.py create mode 100644 abc/metadata.txt create mode 100644 abc/setup.py diff --git a/abc/abc.py b/abc/abc.py new file mode 100644 index 00000000..941be4f5 --- /dev/null +++ b/abc/abc.py @@ -0,0 +1,2 @@ +def abstractmethod(f): + return f diff --git a/abc/metadata.txt b/abc/metadata.txt new file mode 100644 index 00000000..357bcc3b --- /dev/null +++ b/abc/metadata.txt @@ -0,0 +1,3 @@ +srctype=dummy +type=module +version=0.0.0 diff --git a/abc/setup.py b/abc/setup.py new file mode 100644 index 00000000..11b68b63 --- /dev/null +++ b/abc/setup.py @@ -0,0 +1,18 @@ +import sys +# Remove current dir from sys.path, otherwise setuptools will peek up our +# module instead of system. +sys.path.pop(0) +from setuptools import setup + + +setup(name='micropython-abc', + version='0.0.0', + 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/issues/405', + author='MicroPython Developers', + author_email='micro-python@googlegroups.com', + maintainer='MicroPython Developers', + maintainer_email='micro-python@googlegroups.com', + license='MIT', + py_modules=['abc'])