Skip to content

Deprecations for #136 and #284 - #309

Merged
njsmith merged 23 commits into
python-trio:masterfrom
njsmith:deprecations-for-136
Aug 31, 2017
Merged

njsmith merged 23 commits into
python-trio:masterfrom
njsmith:deprecations-for-136

Conversation

@njsmith

@njsmith njsmith commented Aug 22, 2017 •

Copy link
Copy Markdown
Member

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
15 of 17 tasks
@codecov

codecov Bot commented Aug 22, 2017 •

Copy link
Copy Markdown

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 force-pushed the deprecations-for-136 branch from 9a2a63b to a07218e Compare August 23, 2017 08:02
@njsmith
njsmith force-pushed the deprecations-for-136 branch from 088620e to b290a96 Compare August 31, 2017 02:30
@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

matham commented Sep 7, 2017

Copy link
Copy Markdown
Contributor

Should this be mentioned in the first issue?

@njsmith

njsmith commented Sep 7, 2017

Copy link
Copy Markdown
Member Author

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

njsmith commented Sep 7, 2017

Copy link
Copy Markdown
Member Author

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