From f5a31ff02b068795ff093adf05a4661917c65ea9 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Tue, 24 Jan 2023 22:51:06 +0000 Subject: [PATCH 1/4] fix: web3.py v5.31.3 fixes the async provider for threaded applicaions --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3f70a76ed..ce1faf9a2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -246,7 +246,7 @@ vyper==0.3.7 # via -r requirements.in wcwidth==0.2.5 # via prompt-toolkit -web3==5.31.1 +web3==5.31.3 # via -r requirements.in websockets==9.1 # via web3 From 6cca8869f87471a140401543896fba3298a81a18 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Tue, 24 Jan 2023 20:49:57 -0500 Subject: [PATCH 2/4] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbd72a310..2d55fb3b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ This changelog format is based on [Keep a Changelog](https://keepachangelog.com/ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased](https://github.com/eth-brownie/brownie) +### Changed +- Bump web3.py dep to support async provider in threaded applications ## [1.19.2](https://github.com/eth-brownie/brownie/tree/v1.19.2) - 2022-10-16 ### Added From 9457120e37ba680c03f04cd1c7f8141aa0695ecb Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Thu, 26 Jan 2023 21:19:31 +0000 Subject: [PATCH 3/4] chore: pin version in reuirements.in --- requirements.in | 2 +- requirements.txt | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/requirements.in b/requirements.in index ad82b203e..0dd5af93e 100644 --- a/requirements.in +++ b/requirements.in @@ -27,5 +27,5 @@ semantic-version<3 tqdm<5 vvm>=0.1.0,<1 vyper>=0.2.11,<1 -web3>=5.22.0,<6 +web3>=5.22.0,!=5.29.*,!=5.30.*,!=5.31.1,!=5.31.2,<6 wrapt>=1.12.1,<2 diff --git a/requirements.txt b/requirements.txt index ce1faf9a2..fc2e6b255 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.8 +# by the following command: # -# pip-compile requirements.in +# pip-compile # aiohttp==3.8.3 # via web3 @@ -236,6 +236,8 @@ toolz==0.12.0 # via cytoolz tqdm==4.64.1 # via -r requirements.in +typing-extensions==4.4.0 + # via black urllib3==1.26.12 # via requests varint==1.0.2 From c36ee171e114bc1001cac3363f54488cfa2d3a29 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Thu, 26 Jan 2023 21:30:15 +0000 Subject: [PATCH 4/4] chore: comment changes --- requirements.in | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.in b/requirements.in index 0dd5af93e..3256d529f 100644 --- a/requirements.in +++ b/requirements.in @@ -27,5 +27,6 @@ semantic-version<3 tqdm<5 vvm>=0.1.0,<1 vyper>=0.2.11,<1 +# web3 versions 5.29.0 thru 5.31.2 have a bug when using the async provider in subthreads. This is relevant for some ecosystem libs downstream from brownie. web3>=5.22.0,!=5.29.*,!=5.30.*,!=5.31.1,!=5.31.2,<6 wrapt>=1.12.1,<2