From 2e3b28cd158af04555f92a4d172c475e141cc9a0 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 28 Mar 2015 20:20:36 +0200 Subject: [PATCH] html.entities: Add metadata.txt, release 3.3.3. --- html.entities/metadata.txt | 3 +++ html.entities/setup.py | 21 +++++++-------------- 2 files changed, 10 insertions(+), 14 deletions(-) create mode 100644 html.entities/metadata.txt diff --git a/html.entities/metadata.txt b/html.entities/metadata.txt new file mode 100644 index 00000000..fcdd06f7 --- /dev/null +++ b/html.entities/metadata.txt @@ -0,0 +1,3 @@ +srctype=cpython +type=package +version=3.3.3 diff --git a/html.entities/setup.py b/html.entities/setup.py index 342ecea9..35172c9b 100644 --- a/html.entities/setup.py +++ b/html.entities/setup.py @@ -1,25 +1,18 @@ 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 -def pkg_name(name): - return name.split('.', 1)[0] - -NAME = 'html.entities' - -setup(name='micropython-' + NAME, - version='0.5', - description=desc_cpython(NAME), +setup(name='micropython-html.entities', + version='3.3.3', + description='CPython html.entities 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', - packages=[pkg_name(NAME)]) + packages=['html'])