From 52b2baf1deb4e9bd9a7f28d91e47d32cd7f750d4 Mon Sep 17 00:00:00 2001 From: dheatovwil Date: Tue, 8 Jan 2019 14:56:02 +0800 Subject: [PATCH] Update setup.py Fix readme example code, change version to 0.1.0 to follow go and js implementation --- README.md | 2 +- setup.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 05e3f36..81240ab 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ async def client_get_protocol(host_info): protocols = [ '/cats', '/dogs' ] stream = func_to_create_stream(host_info) client = MultiselectClient() - return selected_protocol = await client.select_one_of(protocols, stream) + return await client.select_one_of(protocols, stream) async def host_get_protocol(handlers): stream = func_to_create_stream() diff --git a/setup.py b/setup.py index b115adb..152bded 100644 --- a/setup.py +++ b/setup.py @@ -19,8 +19,8 @@ # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='1.1.0', - description='Multistream select', + version='0.1.2', + description='an implementation of the multistream protocol in python', long_description=long_description, long_description_content_type="text/markdown", @@ -44,16 +44,14 @@ # Indicate who your project is intended for 'Intended Audience :: Developers', - 'Topic :: Libp2p :: Build Tools', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: MIT License', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ], # What does your project relate to?