From 888025524960c21643d864238346a804d882b52a Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Wed, 12 Feb 2020 21:25:54 +0530 Subject: [PATCH] Readme and changeme and bump up version --- CHANGES.md | 4 ++-- README.md | 13 +++++++++++++ setup.py | 3 +-- src/py2pip/process.py | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index f180a92..2819960 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,7 @@ Changes log =========== -0.0.1 +1.0.1(Alpha) ----- - Package Initialized with below feature @@ -10,7 +10,7 @@ Changes log [Manish] -0.0.2 +1.0.2 ---- - Package modification with below feature 1. Accept custom log path to log the message diff --git a/README.md b/README.md index 8f20a4f..4c79575 100644 --- a/README.md +++ b/README.md @@ -52,13 +52,26 @@ Package is written in Python3.7 so needs System or virtual env to have these pac 6. aiohttp 7. packaging +Usage +===== ``` >> import py2pip >> py2pip.process.Py2PIPManager('Django', '2.7').run() + Django==1.11.28 ``` +**Using CLI:** + +``` +>> python3 -m py2pip --py-version 2.7 -p mock + + Execution time: 2.062346935272217 + Supported Version: mock==3.0.5 + +``` + Links ===== diff --git a/setup.py b/setup.py index cc23664..92bcd27 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ PACKAGE_NAME = 'py2pip' -version = '0.0.1' +version = '1.0.2' class Sdist(_sdist): @@ -54,7 +54,6 @@ def read(*names): "Development Status :: 5 - Production/Stable", "Environment :: No Input/Output (Daemon)", "Framework :: AsyncIO", - "Framework :: aiohttp", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", diff --git a/src/py2pip/process.py b/src/py2pip/process.py index e8f556d..974800e 100644 --- a/src/py2pip/process.py +++ b/src/py2pip/process.py @@ -117,7 +117,7 @@ async def process_package_history_page(self): self.log.info('Create client session and read page') if self.show_progress: - task = asyncio.create_task(self.show_progress_msg()) + task = self.loop.create_task(self.show_progress_msg()) async with aiohttp.ClientSession() as session: await self.process_history_page(session)