-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use eth_utils.toolz aliasing for cytoolz/toolz #138
Conversation
@@ -66,7 +66,7 @@ pip install eth-tester | |||
## Development | |||
|
|||
```sh | |||
pip install -e . -r requirements-dev.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[08:48:27 PM] @stefanmendoza ➜ eth-tester git:(master) python3 -m venv venv
[08:48:33 PM] @stefanmendoza ➜ eth-tester git:(master) source venv/bin/activate
(venv) [08:48:37 PM] @stefanmendoza ➜ eth-tester git:(master) git last
commit fb6d5b9a4e498c2c7a581722d9cc7f24a948f200 (HEAD -> master, tag: v0.1.0-beta.33, upstream/master, origin/master, origin/HEAD)
Author: Jason Carver <[email protected]>
Date: Thu Oct 4 13:24:39 2018 -0700
Bump version: 0.1.0-beta.32 → 0.1.0-beta.33
(venv) [08:48:38 PM] @stefanmendoza ➜ eth-tester git:(master) pip install -e . -r requirements-dev.txt
Could not open requirements file: [Errno 2] No such file or directory: 'requirements-dev.txt'
setup.py
Outdated
"toolz>0.8.2,<1;implementation_name=='pypy'", | ||
"cytoolz>=0.8.2,<1.0.0;implementation_name=='cpython'", | ||
install_requires=[ | ||
"eth-abi>=1.0.0,<2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed allowing betas as 1.0.0 came out:
https://github.com/ethereum/eth-abi/releases
Still getting this
eth-utils 1.2.2 has requirement eth-typing<2.0.0,>=1.3.0, but you'll have eth-typing 2.0.0 which is incompatible.
py-evm 0.2.0a33 has requirement eth-typing<2.0.0,>=1.1.0, but you'll have eth-typing 2.0.0 which is incompatible.
due to the eth-abi mention here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stefanmendoza if you look through the full pip install
logs there should be a line which indicates where/why eth-typing==2.0.0
was chosen.
If that doesn't lead to a fix, the ultimate fix for this is to upgrade both eth-utils
and py-evm
to newer versions which support eth-typing
(@carver we may need to cut a new py-evm
beta for that since the newer eth-typing
support was just recently merged).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm kind of confused by whatcha mean?
I think it's coming from eth-abi because in the dependencies (gist here), eth-abi
is the only thing that allows eth-typing-2.x:
eth-tester==0.1.0b33
- eth-abi [required: >=1.0.0-beta.1r,<2, installed: 1.2.0]
- eth-typing [required: <=2, installed: 2.0.0]
I ran into a similar situation in ethereum/web3.py#1056 (comment), but realized @carver had already fixed this in 1.x and 2.x - patch versions just haven't been released yet. Once eth-abi-1.2.1 is released, this should be fixed automatically by pulling in the latest version on pip install
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll get some eth-abi releases out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: v1.2.1 and v2.0.0-beta.2
@carver / @pipermerriam ready for review! |
], | ||
extras_require=extras_require, | ||
python_requires='>=3.5.3,<4', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restricted to >=3.5.3 because of the following issues:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good but we should figure out and fix the eth-typing
issue.
@stefanmendoza try updating eth-utils
to the latest release, I have a hunch...
setup.py
Outdated
"toolz>0.8.2,<1;implementation_name=='pypy'", | ||
"cytoolz>=0.8.2,<1.0.0;implementation_name=='cpython'", | ||
install_requires=[ | ||
"eth-abi>=1.0.0,<2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll get some eth-abi releases out.
Looks good locally 👍 |
setup.py
Outdated
@@ -50,15 +50,14 @@ | |||
url='https://github.com/ethereum/eth-tester', | |||
include_package_data=True, | |||
install_requires=[ | |||
"toolz>0.8.2,<1;implementation_name=='pypy'", | |||
"cytoolz>=0.8.2,<1.0.0;implementation_name=='cpython'", | |||
"eth-abi>=1.0.0,<2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carver do we want to bump the minimum to 1.2.1? Also, we probably need to rerun the last build to pick up the new release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that's fine 👍 -- I tried rerunning, but it still didn't pick up 1.2.1 (until I ssh in, and then ~/.local/bin/tox -elint
runs fine.
Anyway, changing the eth-abi req to>=1.2.1,<2
will trigger it again cleanly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed: 23bd953
What was wrong?
Fixes #111
How was it fixed?
Replaced all the
cytoolz
imports witheth_tools.toolz
. Didn't see any non-cytoolz
(i.e.toolz
) imports.Cute Animal Picture