Skip to content

Add support for 3.8 #44

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

Merged
merged 1 commit into from
Aug 18, 2019
Merged

Add support for 3.8 #44

merged 1 commit into from
Aug 18, 2019

Conversation

naphta
Copy link
Contributor

@naphta naphta commented Jul 30, 2019

Just a nice quick change hopefully. I've ran tox and the tests passed but really I'm just making sure when used with 3.8 it no longer pulls in the version of mypy which depends on typed_ast as that's been removed in 3.8.

I'm not very familiar with tox so correct me if I've made an erroneous change to the tox.ini (I ran tox -e py38 inside a 3.8-dev interpreter)

Copy link
Collaborator

@dmtucker dmtucker left a comment

Choose a reason for hiding this comment

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

@dmtucker dmtucker added this to the 0.4.0 milestone Jul 31, 2019
@naphta
Copy link
Contributor Author

naphta commented Jul 31, 2019

I've put a few of the suggested changes in (and looking at the ongoing travis build) I can't see any reason why it wouldn't pass.

I did add in support for 0.720 too.

@neozenith
Copy link
Contributor

@naphta For that failing job in Travis:

The job exceeded the maximum time limit for jobs, and has been terminated.

It think the test matrix for py36 is too big now. May have to partition the matrix by python and pytest version or some other means.

@naphta
Copy link
Contributor Author

naphta commented Aug 1, 2019

@naphta For that failing job in Travis:

The job exceeded the maximum time limit for jobs, and has been terminated.

It think the test matrix for py36 is too big now. May have to partition the matrix by python and pytest version or some other means.

I'm not hugely familiar with Travis so I'm just wondering if you can give me any guidance for doing so?

@dmtucker
Copy link
Collaborator

dmtucker commented Aug 1, 2019

@naphta I suspect it's because of the 0.720 addition. Maybe we should add that in a separate PR.

@neozenith neozenith mentioned this pull request Aug 1, 2019
@neozenith
Copy link
Contributor

Happy to chase up adding 0.720 support and addressing the travis yml in issue #46 if you want to remove it from this PR.

@naphta
Copy link
Contributor Author

naphta commented Aug 2, 2019

Happy to chase up adding 0.720 support and addressing the travis yml in issue #46 if you want to remove it from this PR.

All done.

@naphta
Copy link
Contributor Author

naphta commented Aug 2, 2019

Righteo, looking at the build now the errors you can see against 3.8 are what I needed to bump the version past 0.710 to solve. I'm not sure if there were other changes made to support 3.8 which fell outside of that pull request I mentioned earlier. I'm happy to bump the version up again but I'll have a look for any changes made between those releases which might be causing it.

I know there's an open issue to put in a version matrix in the documentation to make this a little bit clearer so speaking to whomever opened that issue might give me the answer.

@naphta
Copy link
Contributor Author

naphta commented Aug 2, 2019

Righteo, looking at the build now the errors you can see against 3.8 are what I needed to bump the version past 0.710 to solve. I'm not sure if there were other changes made to support 3.8 which fell outside of that pull request I mentioned earlier. I'm happy to bump the version up again but I'll have a look for any changes made between those releases which might be causing it.

I know there's an open issue to put in a version matrix in the documentation to make this a little bit clearer so speaking to whomever opened that issue might give me the answer.

I'm still struggling to find wind of what makes the versions different but I did track down python/mypy#7001 which suggests a release after the 16th of June would work, which sure enough v0.710 is just that. I did do a comparison of the two changesets and nothing specifically jumped out at me but I can't say I'm very familiar with their source code.

I think for now since 3.8 is a prerelease we can revisit the proper supported version once it drops for real if there's a problem.

Signed-off-by: Jake Hill <[email protected]>
@naphta
Copy link
Contributor Author

naphta commented Aug 8, 2019

Any reason not to merge now?

@dmtucker dmtucker merged commit c19142d into realpython:master Aug 18, 2019
@naphta naphta deleted the feature/add-3-8-support branch August 23, 2019 10:08
@dmtucker
Copy link
Collaborator

dmtucker commented Oct 28, 2019

I think this is why 0.710 was needed: python/mypy#6937
In other words, mypy 0.70x itself works with Python 3.8, but a bug in its packaging requires a version of typed-ast that does not (< 1.4.0).

python/typed_ast#124

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.

3 participants