From f38885b3bbac08b4b40f0ad777e7338f667253d9 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 21 Jun 2014 03:07:17 +0300 Subject: [PATCH] tarfile: Add dummy module. --- tarfile/metadata.txt | 3 +++ tarfile/setup.py | 18 ++++++++++++++++++ tarfile/tarfile.py | 0 3 files changed, 21 insertions(+) create mode 100644 tarfile/metadata.txt create mode 100644 tarfile/setup.py create mode 100644 tarfile/tarfile.py diff --git a/tarfile/metadata.txt b/tarfile/metadata.txt new file mode 100644 index 00000000..976088c8 --- /dev/null +++ b/tarfile/metadata.txt @@ -0,0 +1,3 @@ +srctype = dummy +type = module +version = 0.0.0 diff --git a/tarfile/setup.py b/tarfile/setup.py new file mode 100644 index 00000000..0a2295d7 --- /dev/null +++ b/tarfile/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-tarfile', + version='0.0.0', + description='Dummy tarfile 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=['tarfile']) diff --git a/tarfile/tarfile.py b/tarfile/tarfile.py new file mode 100644 index 00000000..e69de29b