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

Drop Python 3.5 (third take) #1481

Merged
merged 20 commits into from
Apr 30, 2020
Merged

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Apr 29, 2020

Closes #1390, closes #75

I went to great lengths to make this easy to review commit by commit, by reorganizing the previous pull request.

There's one major change compared to #1390: even if it's not needed in Python 3.6, I decided to keep support for async_generator in user code. I also added a test for native async generators.

@codecov
Copy link

codecov bot commented Apr 29, 2020

Codecov Report

Merging #1481 into master will increase coverage by 6.88%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1481      +/-   ##
==========================================
+ Coverage   92.82%   99.70%   +6.88%     
==========================================
  Files         106      106              
  Lines       13292    13216      -76     
  Branches     1004      995       -9     
==========================================
+ Hits        12338    13177     +839     
+ Misses        903       24     -879     
+ Partials       51       15      -36     
Impacted Files Coverage Δ
trio/__init__.py 100.00% <ø> (ø)
trio/_abc.py 100.00% <ø> (ø)
trio/_core/_entry_queue.py 100.00% <ø> (ø)
trio/_core/_run.py 99.74% <ø> (+0.90%) ⬆️
trio/_core/_unbounded_queue.py 100.00% <ø> (ø)
trio/_deprecated_ssl_reexports.py 100.00% <ø> (ø)
trio/_highlevel_ssl_helpers.py 100.00% <ø> (ø)
trio/_sync.py 100.00% <ø> (ø)
trio/_util.py 100.00% <ø> (+5.66%) ⬆️
trio/tests/test_exports.py 96.42% <ø> (-0.07%) ⬇️
... and 41 more

@pquentin pquentin changed the title Drop Python 3.5 (take #3) Drop Python 3.5 (take 3) Apr 29, 2020
@pquentin
Copy link
Member Author

Unfortunately the coverage isn't really useful, but the important thing to notice is that we were missing 24 lines before and that it's still the case now.

Also, @njsmith will need to stop requiring the Python 3.5 checks.

@pquentin pquentin changed the title Drop Python 3.5 (take 3) Drop Python 3.5 (third take) Apr 29, 2020
@@ -21,6 +21,7 @@ jobs:
env:
- "JOB_NAME='Ubuntu 19.10, full VM'"
- "VM_IMAGE=https://cloud-images.ubuntu.com/eoan/current/eoan-server-cloudimg-amd64.img"
- python: 3.6.1 # earliest 3.6 version available on Travis
Copy link
Member

Choose a reason for hiding this comment

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

Is there a specific motivation for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really, I think I just mirrored the fact that we were supporting early versions of Python 3.5. In fact it looks like test_ki_wakes_us_up could be simplified if we decide to only support 3.6.2+.

Now that we're dropping 3.5 support, we can just write the code directly in the source file.
@njsmith
Copy link
Member

njsmith commented Apr 30, 2020

One question and a few more small cleanups that I noticed while reviewing, but otherwise looks great.

Thanks to @wgwz for the initial work, and @pquentin for making this such a pleasure to review!

@pquentin
Copy link
Member Author

I can't approve my own pull request, but your additions look good to me, thanks!

@njsmith njsmith merged commit 293d08e into python-trio:master Apr 30, 2020
@pquentin pquentin mentioned this pull request Apr 30, 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.

Dropping python 3.5 support?
4 participants