From 8bc5ac5b7540d76eb999b67c9f6cdd69297235a2 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 7 Jun 2014 23:15:03 +0300 Subject: [PATCH] http.client: Add metadata. --- http.client/metadata.txt | 4 ++++ http.client/setup.py | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 http.client/metadata.txt create mode 100644 http.client/setup.py diff --git a/http.client/metadata.txt b/http.client/metadata.txt new file mode 100644 index 00000000..f4129e17 --- /dev/null +++ b/http.client/metadata.txt @@ -0,0 +1,4 @@ +srctype = cpython +type = package +version = 0.5 +depends = email.parser, email.message, socket, collections, urllib.parse, warnings diff --git a/http.client/setup.py b/http.client/setup.py new file mode 100644 index 00000000..e138156f --- /dev/null +++ b/http.client/setup.py @@ -0,0 +1,19 @@ +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-http.client', + version='0.5', + description='CPython http.client 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=['http'], + install_requires=['micropython-email.parser', 'micropython-email.message', 'micropython-socket', 'micropython-collections', 'micropython-urllib.parse', 'micropython-warnings'])