Skip to content

Change deprecated_renamed_argument to allow hiding the deprecations - #5761

Merged
pllim merged 3 commits into
astropy:masterfrom
MSeifert04:update_decorator
Feb 6, 2017
Merged

pllim merged 3 commits into
astropy:masterfrom
MSeifert04:update_decorator

Conversation

@MSeifert04

Copy link
Copy Markdown
Contributor

This is to adress the issues mentioned in #5644.

  • It is still possible with 1.3 to use overwrite.
  • It doesn't emit a deprecation when clobber is used.

I'm not exactly pleased with this. But the only other way is to create an astropy-compat package (like six for python) that affiliated packages could use if they want to continue to use the old API.

@MSeifert04

Copy link
Copy Markdown
Contributor Author

uhm, something is blocking Travis. Is OSX down again? 😢

@bsipocz

bsipocz commented Feb 2, 2017

Copy link
Copy Markdown
Member

@MSeifert04 - OSX had serious troubles yesterday, but it should be back and working now.

@bsipocz

bsipocz commented Feb 2, 2017

Copy link
Copy Markdown
Member

With a second look, it seem that we lost 4 of the astropy workers somewhere, I don't see any other repo being queued than core but it only runs with one worker. I've reported the issue to travis support.

@bsipocz

bsipocz commented Feb 2, 2017

Copy link
Copy Markdown
Member

Travis support is actually pretty good, they confirmed that there was a job number limitation due to the issues yesterday. They've lifted it and now everything should be back to normal.

@mhvk

mhvk commented Feb 2, 2017

Copy link
Copy Markdown
Contributor

This looks good to me, though I wonder if it wouldn't be better to replace pending with an argument that states when the warning will start (by default equal to since); maybe effective?

@pllim

pllim commented Feb 2, 2017

Copy link
Copy Markdown
Member

So the plan is to undo this again for v2.0? If so, we need to create an issue about it to remind ourselves.

For this one, perhaps a change log under "API change" for 1.3.1?

@mhvk

mhvk commented Feb 2, 2017

Copy link
Copy Markdown
Contributor

With effective we would need only a reminder to remove the clobber support in 2.1...

@bsipocz

bsipocz commented Feb 2, 2017

Copy link
Copy Markdown
Member

Yes, please add a changelog entry.

@MSeifert04

MSeifert04 commented Feb 2, 2017 •

Copy link
Copy Markdown
Contributor Author

@mhvk I tried something like "effective" but that makes it more complicated because we're already at "2.0.dev". So any tests against master (dev) would still have the same problems, or am I wrong?

@bsipocz I'll add a changelog. And thanks for making travis work again 👍

@mhvk

mhvk commented Feb 2, 2017

Copy link
Copy Markdown
Contributor

isn't it OK for the warning to be given in current master? I thought we cared mostly that it is not given in 1.3.1.

@pllim

pllim commented Feb 3, 2017

Copy link
Copy Markdown
Member

So, we undo this in 2.1, not 2.0? Just want to clarify before merging.

@pllim

pllim commented Feb 3, 2017

Copy link
Copy Markdown
Member

Or do we simply backport without merging to master? 🤔

@bsipocz

bsipocz commented Feb 3, 2017

Copy link
Copy Markdown
Member

Well, we need to use clobber for anything that support the LTS 1.0.x. Once 2.0 is out it become LTS, then can change to use overwrite.
So the deprecation warning can come into play either in 2.0.1 or 2.1 I think. (Or of course it can appear in 2.0, but the it has to be changed last minute so won't screw up the tests against the development version).

@bsipocz

bsipocz commented Feb 3, 2017

Copy link
Copy Markdown
Member

So my understanding is to merge this asap (it will fix the dev version testings), and release in 1.3.1 (that would fix the stable testings). Open an issue or even better a PR for adding the warning. That PR must have the flag last-before-release.

@mhvk

mhvk commented Feb 3, 2017

Copy link
Copy Markdown
Contributor

If we go with my suggestions earlier, I think we want to start warning users in 2.0 and remove clobber in 2.1.

@MSeifert04

MSeifert04 commented Feb 4, 2017 •

Copy link
Copy Markdown
Contributor Author

I added the changelog. Anything else that needs to be done now?

One point to remember: I assumed there will be no astropy 2.1 - the next (not-bugfix-)version after 2.0 is 3.0!

@bsipocz

bsipocz commented Feb 4, 2017

Copy link
Copy Markdown
Member

@MSeifert04 - yes, that's right, 2.1 above is 3.0

@pllim

pllim commented Feb 5, 2017

Copy link
Copy Markdown
Member

Okay, I opened #5773 and #5774 as follow-up issues so we don't forget.

@pllim

pllim commented Feb 5, 2017

Copy link
Copy Markdown
Member

LGTM 👍

Thanks, @MSeifert04 !

@pllim
pllim merged commit 5890e07 into astropy:master Feb 6, 2017
@pllim pllim mentioned this pull request Feb 6, 2017
@MSeifert04
MSeifert04 deleted the update_decorator branch February 6, 2017 15:45
bsipocz pushed a commit that referenced this pull request Feb 14, 2017
Change deprecated_renamed_argument to allow hiding the deprecations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants