From 6fb765c01306cbb314b321dba8412ee36365cf40 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 9 May 2015 01:42:17 +0300 Subject: [PATCH] __future__: Add dummy module. --- __future__/__future__.py | 1 + __future__/metadata.txt | 3 +++ __future__/setup.py | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 __future__/__future__.py create mode 100644 __future__/metadata.txt create mode 100644 __future__/setup.py diff --git a/__future__/__future__.py b/__future__/__future__.py new file mode 100644 index 00000000..b268f7d3 --- /dev/null +++ b/__future__/__future__.py @@ -0,0 +1 @@ +print_function = True diff --git a/__future__/metadata.txt b/__future__/metadata.txt new file mode 100644 index 00000000..34e7b20b --- /dev/null +++ b/__future__/metadata.txt @@ -0,0 +1,3 @@ +srctype=dummy +type=module +version=0.0.1 diff --git a/__future__/setup.py b/__future__/setup.py new file mode 100644 index 00000000..e7c5bcdd --- /dev/null +++ b/__future__/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-__future__', + version='0.0.1', + 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/issues/405', + author='MicroPython Developers', + author_email='micro-python@googlegroups.com', + maintainer='MicroPython Developers', + maintainer_email='micro-python@googlegroups.com', + license='MIT', + py_modules=['__future__'])