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

Add support for Python3.8 #1678

Merged
merged 7 commits into from
Nov 11, 2019
Merged

Conversation

iamdefinitelyahuman
Copy link
Contributor

What I did

Add support for Python 3.8

How I did it

  • Replace Constant python AST type with deprecated type names when generating Vyper AST nodes.
  • Add python3.8 build to CI

How to verify it

Run the tests

Description for the changelog

  • support for Python3.8

Cute Animal Picture

image

@fubuloubu
Copy link
Member

Huh, fuzzing actually caught something this time lol

@iamdefinitelyahuman
Copy link
Contributor Author

Failing test should be fixed by #1679

@iamdefinitelyahuman iamdefinitelyahuman marked this pull request as ready for review November 5, 2019 05:23
@fubuloubu
Copy link
Member

@iamdefinitelyahuman rebase master

@fubuloubu
Copy link
Member

I'd like to merge #1657 first and rebase on that to ensure we're playing with all the latest toys

else:
class_name = node.__class__.__name__
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure I understand the fix here, as far as I can tell all these types are replaced by Constant(value=) now, doesn't that mean we have to translate each constant type and port over the value attribute (e.g. .s for Str and .n for number) ?

Copy link
Contributor

@jacqueswww jacqueswww Nov 7, 2019

Choose a reason for hiding this comment

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

And would that mean something the replacement step would have to map something like isinstance(node.value, str) => vyper_ast.Str(s=node.value) (if isinstance(node, python_ast.Constant).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See new commits based on our discussion 👍

@fubuloubu
Copy link
Member

fubuloubu commented Nov 7, 2019

technically, eth-tester (and py-evm) doesn't support 3.8 yet. That could be why this is an issue.

cc @carver

@carver
Copy link

carver commented Nov 7, 2019

technically, eth-tester (and py-evm) doesn't support 3.8 yet. That could be why this is an issue.

cc @carver

Ahh, it looks like it's the blake2b-py build that's not compatible somehow. cc @davesque

@davesque
Copy link
Contributor

davesque commented Nov 8, 2019

Spending some time on this today.

@davesque
Copy link
Contributor

davesque commented Nov 8, 2019

Just released blake2b-py v0.1.3 that includes support for python 3.8.

@jacqueswww jacqueswww merged commit 14aa9d6 into vyperlang:master Nov 11, 2019
@protolambda protolambda mentioned this pull request Jan 20, 2020
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

5 participants