Skip to content
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

Bump web3 to 5.x #4

Closed
wants to merge 1 commit into from
Closed

Bump web3 to 5.x #4

wants to merge 1 commit into from

Conversation

stefanmendoza
Copy link
Contributor

@stefanmendoza stefanmendoza commented Dec 25, 2018

What was wrong?

Fixing dependency warnings found in ethereum/web3.py#829 (see here).

How was it fixed?

Try to align pytest across projects, allow ethtoken to be on 5.x alpha.

This blocks ethereum/web3.py#1175

Cute Animal Picture

put a cute animal picture link inside the parentheses

@stefanmendoza
Copy link
Contributor Author

cc @carver

@stefanmendoza stefanmendoza changed the title Bump web3 to 5.x-alpha, bump pytest to <4.0.0 Bump web3 to 5.x, bump pytest to >= 3.6.0 Jan 6, 2019
@stefanmendoza stefanmendoza changed the title Bump web3 to 5.x, bump pytest to >= 3.6.0 Bump web3 to 5.x Jan 6, 2019
@stefanmendoza
Copy link
Contributor Author

stefanmendoza commented Jan 6, 2019

Removing the pytest bump from the issue name / commit message so it can be part of #6.

Verified

This commit was signed with the committer’s verified signature.
denis-kralj-novu Denis Kralj
@@ -38,7 +38,7 @@
)

install_requires = [
'web3>=4.0.0,<5.0.0',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No CI set up on this mini project unfortunately. Were you able to test it out?

Since it doesn't look like any code changes are needed, it would be ideal to continue to support web3 v4 as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran

make lint && make build-docs && pytest tests

and everything looked good, but I'll attach test evidence 👍 And yeah, I agree if there's no need to drop v4 support we should keep it in there.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, yeah, this is a very alpha project. If you take a look at "tests", you'll see what I mean.

Maybe the best solution is actually to break the dependency from web3.py on ethtoken during testing. The web3 doctest only uses the ABI, so we could just copy that ABI directly into the web3 doctest for now. That would simplify our lives and remove a dependency on a not-really-maintained project.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notably, I think that upcoming web3 v5 changes will break ethtoken, so I'm not sure I want to mark it as supported yet. (ConciseContract will go away, for example)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One simple test is better than no tests though :)

But yeah, ideally we wouldn't be creating a circular dependency... I can look into that and see what that would entail 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants