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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated "slave" aliases #541

Merged
merged 10 commits into from
Aug 5, 2020
Merged

Remove deprecated "slave" aliases #541

merged 10 commits into from
Aug 5, 2020

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Jun 12, 2020

We started this process in 2017 with #234, and it's time to complete it. Xref pytest-dev/pytest#7344

Implementation note: after is in a released version of pytest, I'll bump the pytest required version for pytest-xdist and then merge this 馃檪

  • Merge Finish deprecation of "slave"聽pytest#7356 for upstream pytest support
  • Bump minimum dependency version to pytest >= 6.0.0 (after that release)
  • Fix other plugin compatibility issues linked below
    • PRs opened for all plugins
    • PRs merged for all plugins
    • Fix released for all plugins (mostly done, not treating this as a blocker)
  • Merge this PR
  • Release pytest-xdist 2.0 馃帀

@Zac-HD
Copy link
Member Author

Zac-HD commented Jun 12, 2020

And it looks like we'll need to start with some upstream fixes, and then bump the minimum version of pytest that pytest-xdist works with.

For future reference, if we're deprecating an attribute we should really turn it into a property which emits deprecation warnings so that people know they need to migrate - in this case even the pytest team seems to have missed it!

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

Lovely, thanks

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

Needs to be a major release 馃憤

@hugovk
Copy link
Member

hugovk commented Jun 13, 2020

Some other pytest-dev repos that'll need updating:

https://github.com/search?l=Python&q=sort%3Aupdated-desc+slave+org%3Apytest-dev+xdist&type=Code

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Thanks @Zac-HD!

As you commented, we will need to update the requirements in setup.py to pytest>=6.0, and we will need
to release this only after pytest 6.0 is released. 馃憤

Just marking this as "requested changes" so it is clear this is not yet ready for merging.

@nicoddemus
Copy link
Member

I've posted an issue to all repositories from @hugovk's search warning about the upcoming changes. 馃憤

@asottile
Copy link
Member

for those looking for messaging, the minimum version necessary appears to be pytest-xdist 1.22.3

Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

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

@Zac-HD
Copy link
Member Author

Zac-HD commented Jul 11, 2020

I've bumped the dependency to pytest >= 6.0.0rc1, and everything works 馃帀

@nicoddemus @RonnyPfannschmidt @asottile - the plan was to wait for 6.0.0 final, but I guess we could also do a pytest-xdist 2.0.0rc1 prerelease if users are installing preview versions at the moment?

@Zac-HD
Copy link
Member Author

Zac-HD commented Jul 29, 2020

@nicoddemus (et al 鉂わ笍), pytest 6 is out 馃帀 and I think we're finally ready to merge this!

Then merge #557 into master, and do the release magic...

@Zac-HD Zac-HD requested a review from nicoddemus August 3, 2020 11:45
@Zac-HD Zac-HD dismissed nicoddemus鈥檚 stale review August 3, 2020 12:45

was waiting for pytest 6.0, which is now out!

@hugovk
Copy link
Member

hugovk commented Aug 4, 2020

All the issues/PRs referencing this one are now closed/merged 馃憤

@nicoddemus
Copy link
Member

Hey everyone, sorry for the delay here; I did not forget this, it is on my radar, I will get to it sometime this week. 馃憤

@nicoddemus nicoddemus mentioned this pull request Aug 5, 2020
2 tasks
@nicoddemus
Copy link
Member

Merged! 馃帀

Thanks a lot @Zac-HD, for implementing it here and the amazing work on pursuing/helping other plugins to get compatible, @hugovk for neatly cleaning up old Python 2.7 support (as he is prone to do! 馃榿), and everybody else who participated/helped.

@nicoddemus
Copy link
Member

I want to take a pass at the opening PRs before releasing 2.0, will try to do it by the end of the week. 馃憤

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.

None yet

7 participants