From 5c1b7e4885280d6f8d168cb2e0abc717dcaf6490 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 25 May 2014 22:51:52 +0300 Subject: [PATCH] socket: Switch to metadata.txt. --- socket/metadata.txt | 4 ++++ socket/setup.py | 24 +++++++++--------------- 2 files changed, 13 insertions(+), 15 deletions(-) create mode 100644 socket/metadata.txt diff --git a/socket/metadata.txt b/socket/metadata.txt new file mode 100644 index 00000000..ee35c824 --- /dev/null +++ b/socket/metadata.txt @@ -0,0 +1,4 @@ +srctype = micropython-lib +type = module +version = 0.0.2 +author = Paul Sokolovsky diff --git a/socket/setup.py b/socket/setup.py index d76895ce..eb187e37 100644 --- a/socket/setup.py +++ b/socket/setup.py @@ -1,24 +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 desc_upython(name): - return '%s module for MicroPython' % name - -NAME = 'socket' - -setup(name='micropython-' + NAME, - version='0.0.1', - description=desc_upython(NAME), +setup(name='micropython-socket', + version='0.0.2', + description='socket module for MicroPython', + long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", url='https://github.com/micropython/micropython/issues/405', - author='MicroPython Developers', + author='Paul Sokolovsky', author_email='micro-python@googlegroups.com', + maintainer='MicroPython Developers', + maintainer_email='micro-python@googlegroups.com', license='MIT', - py_modules=[NAME]) + py_modules=['socket'])