-
Notifications
You must be signed in to change notification settings - Fork 9
use pathlib.Path #21
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
use pathlib.Path #21
Conversation
Wow, thanks, that's a very thorough PR, updating the changelog and all 😍 That certainly makes my life easier 🙂 . I will have a look at the code. If you have time, could you do the following?
|
For the README.rst:
Additional changes are expected as well in tests (also getting rid of py.path there) |
Updated. Also fixed an existing error in the examples. |
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.
Thank you for the great work! Some comments inline and one more generic one:
- What is the purpose of src/pytest_datafiles/init.py ?
Makefile
Outdated
@echo "test-all Run tests on every Python version with tox" | ||
@echo "coverage Check code coverage quickly with Python 3" | ||
@echo "dist Package" | ||
@echo "README.rst Generate README.rst from docs/readme" |
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.
Please add the new make targets you created to the help text.
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.
done
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.
not done 🙂
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.
done again
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.
Great!
tests/examples/example_1.py
Outdated
@@ -0,0 +1,20 @@ | |||
"""Example: Reference files anywhere """ |
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.
I think all the examples should be in a top-level directory examples/
rather than tests/examples/
so they are easier to find. But I can also do that once this PR is merged, it's easy enough. As you prefer.
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.
I would also put the explanation of the example that is in the README as a docstring inside each example.py file. This way all the relevant info is in one place. Again, I can do this after merging the PR as you prefer.
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.
moved, added text to the docstring. Also included just short fragments in the README itself to focus on the highlights.
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.
🥳
Leaving the |
fixes #7