Update dependencies.

This commit is contained in:
Joshua Bronson 2024-04-12 08:22:35 -04:00
parent f3f36cf8bf
commit a8c5e2250b
4 changed files with 20 additions and 24 deletions

View File

@ -4,7 +4,7 @@ trio_http_proxy.py
Simple HTTP CONNECT proxy implemented with Simple HTTP CONNECT proxy implemented with
`Trio <https://trio.readthedocs.io>`__. `Trio <https://trio.readthedocs.io>`__.
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). (but other versions probably work too).
@ -46,11 +46,12 @@ Why
Instructions Instructions
------------ ------------
#. Install Trio if you haven't already. #. Install Trio and h11 if you haven't already.
.. code-block:: .. 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: #. In one shell session, run this script to start the proxy on port 8080:

View File

@ -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 *

16
requirements-lock.txt Normal file
View File

@ -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

View File

@ -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