kopia lustrzana https://github.com/micropython/micropython-lib
socket: Switch to metadata.txt.
rodzic
9b3688f98a
commit
5c1b7e4885
|
@ -0,0 +1,4 @@
|
||||||
|
srctype = micropython-lib
|
||||||
|
type = module
|
||||||
|
version = 0.0.2
|
||||||
|
author = Paul Sokolovsky
|
|
@ -1,24 +1,18 @@
|
||||||
import sys
|
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.
|
# module instead of system.
|
||||||
sys.path.pop(0)
|
sys.path.pop(0)
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
def desc_dummy(name):
|
setup(name='micropython-socket',
|
||||||
return 'Dummy %s module to MicroPython' % name
|
version='0.0.2',
|
||||||
def desc_cpython(name):
|
description='socket module for MicroPython',
|
||||||
return 'CPython %s module ported to MicroPython' % name
|
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.",
|
||||||
def desc_upython(name):
|
|
||||||
return '%s module for MicroPython' % name
|
|
||||||
|
|
||||||
NAME = 'socket'
|
|
||||||
|
|
||||||
setup(name='micropython-' + NAME,
|
|
||||||
version='0.0.1',
|
|
||||||
description=desc_upython(NAME),
|
|
||||||
url='https://github.com/micropython/micropython/issues/405',
|
url='https://github.com/micropython/micropython/issues/405',
|
||||||
author='MicroPython Developers',
|
author='Paul Sokolovsky',
|
||||||
author_email='micro-python@googlegroups.com',
|
author_email='micro-python@googlegroups.com',
|
||||||
|
maintainer='MicroPython Developers',
|
||||||
|
maintainer_email='micro-python@googlegroups.com',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
py_modules=[NAME])
|
py_modules=['socket'])
|
||||||
|
|
Ładowanie…
Reference in New Issue