-
Notifications
You must be signed in to change notification settings - Fork 124
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
Deprecate implprefix #144
Deprecate implprefix #144
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, great work!
Note I've also put up pytest-dev/pytest#3487 as requested to get this moving! |
Could you add a hint to the deprecation warning on what to replace the functionality with? |
Would it also be possible to throw a deprecation warning if a plugin provides a hook without using the marker? That is much more important, because people have to update their plugins first before the functionality is removed. |
I would even say that there should be a pluggy release which only deprecates hooks without the marker before deprecating implprefix itself. |
@fschulze yes definitely to both of these.
@fschulze deprecating |
The difference is, that I would see DeprecationWarnings for implprefix as long as devpi supports plugins without the marker. What I would like is to let plugins see the warning that they should use the marker, but ignore the implprefix for that time. I guess I can use the warnings module to add a filter for it though. |
@fschulze see the related pytest pr for a solution |
89fa9bc
to
39f2136
Compare
@fschulze pushed up the changes you requested. Let me know if that's good enough! |
@tgoodlet Thanks! Now one knows what to look for in the documentation when this deprecation pops up. Question about Travis: |
@fschulze Not sure what you mean. The tests are run with different versions of
I actually think the error on warnings is good because it shows where I haven't fixed up the tests yet. We should only be getting warnings where the tests are written to expect them. |
Just waiting on CI after fixing up warning expectations in the tests then I'll merge as long as there's no more concerns 👍 |
Pertains to starting work on #116.
I'll have a corresponding PR to
pytest
to ensure the warning is avoided - turned out it's a trivial change.