From 326cd105306156bcbd3b553da3287e5c12fd1e78 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 12 May 2014 20:51:31 +0300 Subject: [PATCH] fnmatch: Add new metadata. --- fnmatch/metadata.txt | 4 ++++ fnmatch/setup.py | 20 ++++++++------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 fnmatch/metadata.txt diff --git a/fnmatch/metadata.txt b/fnmatch/metadata.txt new file mode 100644 index 00000000..17eb9c92 --- /dev/null +++ b/fnmatch/metadata.txt @@ -0,0 +1,4 @@ +srctype = cpython +type = module +version = 0.5.1 +depends = os, os.path, posixpath, re-pcre diff --git a/fnmatch/setup.py b/fnmatch/setup.py index 5a6e2c94..f14c9319 100644 --- a/fnmatch/setup.py +++ b/fnmatch/setup.py @@ -1,23 +1,19 @@ import sys -# Remove current dir from sys.path, otherwise distutils will peek up our +# Remove current dir from sys.path, otherwise setuptools 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 = 'fnmatch' - -setup(name='micropython-' + NAME, - version='0.5', - description=desc_cpython(NAME), +setup(name='micropython-fnmatch', + version='0.5.1', + 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/issues/405', author='CPython Developers', + author_email='python-dev@python.org', maintainer='MicroPython Developers', maintainer_email='micro-python@googlegroups.com', license='Python', - py_modules=[NAME]) + py_modules=['fnmatch'], + install_requires=['micropython-os', 'micropython-os.path', 'micropython-posixpath', 'micropython-re-pcre'])