This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desertaxle
approved these changes
Dec 6, 2022
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.
This looks like it could be a breaking change. Can we verify if this still works if you provide a Path
for basepath
?
3 tasks
Would this work? basepath: Optional[Union[str, Path]] = Field(
default="",
description="Location to write to and read from in the S3 bucket. Defaults to "
"the root of the bucket.",
) |
Okay that works!
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes PrefectHQ/prefect#7583 and #161
Apparently,
cast_pathlib
does not get called when you doself.storage.basepath
so this makes type str and defaults to "" instead of None.I was initially planning to submit a PR into Prefect to update: https://github.com/PrefectHQ/prefect/blob/main/src/prefect/deployments.py#L293-L309. However, I realized that since the concept of
basepath
in PrefectS3
iss3://
--not the base path of the path and is never apathlib.Path
as in prefect-aws, I think it's more suitable for the PR to be here? Let me know if that makes sense.Example
Screenshots
Checklist
pre-commit
checks.pre-commit install && pre-commit run --all
locally for formatting and linting.mkdocs serve
view documentation locally.