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

Deprecations for #136 and #284 #309

Merged
merged 23 commits into from
Aug 31, 2017

Conversation

njsmith
Copy link
Member

@njsmith njsmith commented Aug 22, 2017

Deprecates nursery.spawn and most of the nursery and task APIs.

Todo:

  • do a pass through the docs to get rid of now-irrelevant prose
  • Move now-less-central stuff into hazmat (Task, UnboundedQueue, Result?)

For python-triogh-136

This commit contains:

- the actual deprecations
- changes to _run.py to prevent warnings
- changes to test_run.py to prevent warnings

Still need to clean up everything else.
spawn's deprecation is really part of 284, not 136, though I'm
handling them both together because they're closely related.
@njsmith njsmith mentioned this pull request Aug 22, 2017
17 tasks
@codecov
Copy link

codecov bot commented Aug 22, 2017

Codecov Report

Merging #309 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #309      +/-   ##
==========================================
+ Coverage   99.23%   99.24%   +0.01%     
==========================================
  Files          83       84       +1     
  Lines       10159    10328     +169     
  Branches      720      725       +5     
==========================================
+ Hits        10081    10250     +169     
  Misses         61       61              
  Partials       17       17
Impacted Files Coverage Δ
trio/_core/_local.py 100% <ø> (ø) ⬆️
trio/_socket.py 100% <ø> (ø) ⬆️
trio/_abc.py 100% <ø> (ø) ⬆️
trio/testing/_sequencer.py 100% <ø> (ø) ⬆️
trio/_sync.py 100% <ø> (ø) ⬆️
trio/_signals.py 100% <ø> (ø) ⬆️
trio/_threads.py 100% <ø> (ø) ⬆️
trio/_core/_parking_lot.py 100% <ø> (ø) ⬆️
trio/_core/_traps.py 100% <ø> (ø) ⬆️
trio/testing/_memory_streams.py 99.56% <ø> (ø) ⬆️
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 058c985...b290a96. Read the comment docs.

@njsmith njsmith merged commit 3613ca6 into python-trio:master Aug 31, 2017
@njsmith njsmith deleted the deprecations-for-136 branch August 31, 2017 05:23
@matham
Copy link
Contributor

matham commented Sep 7, 2017

Should this be mentioned in the first issue?

@njsmith
Copy link
Member Author

njsmith commented Sep 7, 2017

I'm planning to make a consolidated post to the first issue once I have all these deprecations sorted out. It looks like the actual breakage in 0.2.0 will be very minimal in any case; almost all the changes are easy to put in backcompat shims with warnings.

@njsmith
Copy link
Member Author

njsmith commented Sep 7, 2017

Sorry, just unearthed this tab again and realized that last sentence was pretty incomprehensible. What I mean is, I realized that almost all the changes are ones where it's easy to do a proper deprecation cycle, so I'm less worried about the disruptiveness of 0.2.0 than I was when I set up issue number 1. (But of course I will still raise a flag there ahead of the release.)

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.

2 participants