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

Deprecate Node constuctor fspath argument, and other small changes/fixes #9232

Merged
merged 7 commits into from Oct 27, 2021

Conversation

bluetech
Copy link
Member

The main thing here is formally deprecating the fspath argument to Node ctors, as discussed in #9208 (comment). Also some other things I noticed - please see the commits.

Since path <-> fspath are converted to each other, we need to check both
before looking at the parent, in case fspath is set but path is not.
The Node ctor will take care of the check.
Only one usage left, and we certainly don't expect more!

Rename `_imply_path_only` to `_imply_path`, that's a less confusing name
now.
The plans have changed, next version will be 7.0 not 6.3.
@bluetech
Copy link
Member Author

From the plugins we test, pytest-flakes will need to be updated, will send a PR.

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.

looks good, thanks for expanding this

rge where/was changes in the warnings tools will conflict with my other pr that i hope to complete, should i rebase onto yours

@bluetech
Copy link
Member Author

You mean #8508, I forgot about it! I'm OK with whatever if you have a preference. If you think you can complete #8508 before the release then should definitely drop it.

@RonnyPfannschmidt
Copy link
Member

while i plan to work on it today to pull in the comments,
im under the impression yours is going in first, so i would like to coordinate in that way

im still slightly suffering from my cold and will take things slow

@bluetech
Copy link
Member Author

Fixing the deprecation warnings in pytest-flakes is easier with version-checks. But I'd like the version check to be on pytest.version_tuple >= (7, 0) rather than (6, 3) as currently needed. So I want to push a 7.0.0.dev0 tag to commit 109312b (first breaking change) so setuptools-scm starts giving us 7.0.0 versions.

@RonnyPfannschmidt @nicoddemus @The-Compiler WDYT?

Alternatively I can just add an ignore for this deprecation warning in the plugins tests for now.

@RonnyPfannschmidt
Copy link
Member

Im fine with dev Tag pushed, having towncrier as indicator for setuptools_scm is on my todo

Please check the exact dev tag needed for setuptools_scm not to error out

@bluetech
Copy link
Member Author

OK, I pushed the tag.

This is unfortunately a dependency on `py.path` which cannot be moved to
an external plugins or eased in any way, so has to be deprecated in
order for pytest to be able to eventually remove the dependency on `py`.
@bluetech
Copy link
Member Author

pytest-flakes was updated, so this is good to go.

@bluetech bluetech merged commit b7fc000 into pytest-dev:main Oct 27, 2021
@bluetech bluetech deleted the deprecate-node-fspath-args branch October 28, 2021 18:40
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

2 participants