diff --git a/README.rst b/README.rst index ef920c2..a237a67 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ trio_http_proxy.py Simple HTTP CONNECT proxy implemented with `Trio `__. -Tested with Python 3.8 and Trio 0.17.0 +Tested with Python 3.12 and Trio 0.25.0 (but other versions probably work too). @@ -46,11 +46,12 @@ Why Instructions ------------ -#. Install Trio if you haven't already. +#. Install Trio and h11 if you haven't already. .. code-block:: - pip install trio + uv venv .venv # create a virtualenv (recommended) + uv pip install -r requirements-lock.txt # install dependencies #. In one shell session, run this script to start the proxy on port 8080: diff --git a/__init__.py b/__init__.py deleted file mode 100644 index 489d44d..0000000 --- a/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright 2018-2019 Joshua Bronson. All Rights Reserved. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -from .trio_http_proxy import * diff --git a/requirements-lock.txt b/requirements-lock.txt new file mode 100644 index 0000000..162234e --- /dev/null +++ b/requirements-lock.txt @@ -0,0 +1,16 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.in -o requirements-lock.txt +attrs==23.2.0 + # via + # outcome + # trio +h11==0.14.0 +idna==3.7 + # via trio +outcome==1.3.0.post0 + # via trio +sniffio==1.3.1 + # via trio +sortedcontainers==2.4.0 + # via trio +trio==0.25.0 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index e65ef44..0000000 --- a/requirements.txt +++ /dev/null @@ -1,14 +0,0 @@ -# -# This file is autogenerated by pip-compile -# To update, run: -# -# pip-compile -# -async-generator==1.10 # via trio -attrs==20.2.0 # via trio -h11==0.10.0 # via -r requirements.in -idna==2.10 # via trio -outcome==1.0.1 # via trio -sniffio==1.1.0 # via trio -sortedcontainers==2.2.2 # via trio -trio==0.17.0 # via -r requirements.in