kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio: Rename asyncio_micro to uasyncio.
rodzic
545a033933
commit
8e97b6972a
|
@ -1,6 +1,6 @@
|
||||||
srctype = micropython-lib
|
srctype = micropython-lib
|
||||||
type = module
|
type = module
|
||||||
version = 0.5
|
version = 0.6
|
||||||
author = Paul Sokolovsky
|
author = Paul Sokolovsky
|
||||||
long_desc = Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess.
|
long_desc = Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess.
|
||||||
depends = heapq, errno, select, logging
|
depends = heapq, errno, select, logging
|
|
@ -5,9 +5,9 @@ sys.path.pop(0)
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
setup(name='micropython-asyncio_micro',
|
setup(name='micropython-uasyncio',
|
||||||
version='0.5',
|
version='0.6',
|
||||||
description='asyncio_micro module for MicroPython',
|
description='uasyncio module for MicroPython',
|
||||||
long_description='Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess.',
|
long_description='Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess.',
|
||||||
url='https://github.com/micropython/micropython/issues/405',
|
url='https://github.com/micropython/micropython/issues/405',
|
||||||
author='Paul Sokolovsky',
|
author='Paul Sokolovsky',
|
||||||
|
@ -15,5 +15,5 @@ setup(name='micropython-asyncio_micro',
|
||||||
maintainer='MicroPython Developers',
|
maintainer='MicroPython Developers',
|
||||||
maintainer_email='micro-python@googlegroups.com',
|
maintainer_email='micro-python@googlegroups.com',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
py_modules=['asyncio_micro'],
|
py_modules=['uasyncio'],
|
||||||
install_requires=['micropython-heapq', 'micropython-errno', 'micropython-select', 'micropython-logging'])
|
install_requires=['micropython-heapq', 'micropython-errno', 'micropython-select', 'micropython-logging'])
|
|
@ -1,4 +1,4 @@
|
||||||
import asyncio_micro as asyncio
|
import uasyncio as asyncio
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import asyncio_micro as asyncio
|
import uasyncio as asyncio
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def print_http_headers(url):
|
def print_http_headers(url):
|
|
@ -1,4 +1,4 @@
|
||||||
import asyncio_micro as asyncio
|
import uasyncio as asyncio
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def serve(reader, writer):
|
def serve(reader, writer):
|
Ładowanie…
Reference in New Issue