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

allow Path objects to be used as directory parameter #319

Merged
merged 1 commit into from
Mar 14, 2020

Conversation

nioncode
Copy link
Contributor

@nioncode nioncode commented Mar 11, 2020

Generally, I'm copying the tests for app_custom_directory and also run them with a Path object. Is there a way to avoid the code duplication? For the test, we could use a parameterized test, but for the actual app_custom_directory_path.py file I don't see a good way, yet.

Fixes #318.

@nioncode nioncode force-pushed the path branch 2 times, most recently from d4d8101 to a0c87ab Compare March 11, 2020 17:40
@nioncode
Copy link
Contributor Author

@miguelgrinberg could you please have a look at the Travis failures? I reverted all changes, but the build still fails for some configurations. Is this known or should we first get Travis into good shape before adding the changes back?

@miguelgrinberg
Copy link
Owner

Yeah, so it looks like some of the Flask dependencies are moving on and dropping support for older Pythons, so I'll have to follow suit. Let's say we are 3.6 and up with this.

@miguelgrinberg
Copy link
Owner

@nioncode either rebase your branch from master, or just ignore your build errors on 2.7, 3.5 and pypy, as those are not being built anymore.

@nioncode
Copy link
Contributor Author

Sweet, thanks, now everything is green and I can start to implement this.

@nioncode nioncode force-pushed the path branch 2 times, most recently from bfac759 to c4f2ddb Compare March 13, 2020 19:16
@nioncode nioncode changed the title wip: add test to check if a Path can be used as directory parameter allow Path objects to be used as directory parameter Mar 13, 2020
@nioncode
Copy link
Contributor Author

@miguelgrinberg this should be ready now.

@miguelgrinberg miguelgrinberg merged commit 399cb28 into miguelgrinberg:master Mar 14, 2020
@miguelgrinberg
Copy link
Owner

Thanks!

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.

[Feature-Request] Support PathLike interface in directory parameter
2 participants