From ff4293ad8a8badd99ba73ed6879c95f033c8c30e Mon Sep 17 00:00:00 2001 From: "Ajin.Abraham" Date: Sat, 2 Dec 2023 02:13:00 -0800 Subject: [PATCH] mitmproxy bump + httptools v4 --- .github/workflows/python-tests.yml | 2 +- http_tools/modules/runner.py | 1 + setup.py | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 9f53815..e3c5381 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -13,7 +13,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.9, '3.10'] + python-version: ['3.10', '3.11'] steps: - uses: actions/checkout@v2 diff --git a/http_tools/modules/runner.py b/http_tools/modules/runner.py index 1ea4a46..553a438 100644 --- a/http_tools/modules/runner.py +++ b/http_tools/modules/runner.py @@ -28,6 +28,7 @@ def run_module(mode, project_name, host, port, upstream): '--flow-detail', '0']) elif mode == 'intercept': arguments.extend([ + '--quiet', '--scripts', os.path.join(script_dir, 'interceptor.py')]) elif mode == 'repeat': arguments = [ diff --git a/setup.py b/setup.py index 8c2c43e..86d8ced 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ def read(rel_path): '[mitmproxy](https://mitmproxy.org/)') setup( name='http-tools', - version='3.0.0', + version='4.0.0', description=description, author='Ajin Abraham', author_email='ajin25@gmail.com', @@ -26,7 +26,7 @@ def read(rel_path): 'Intended Audience :: Developers', ('License :: OSI Approved :: GNU Lesser ' 'General Public License v3 or later (LGPLv3+)'), - 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', ], packages=find_packages(include=[ 'http_tools', 'http_tools.*', @@ -42,7 +42,7 @@ def read(rel_path): long_description=read('README.md'), long_description_content_type='text/markdown', install_requires=[ - 'mitmproxy==9.0.1', - 'markupsafe==2.0.1', + 'mitmproxy==10.1.5', + 'markupsafe>=2.1.3', ], )