-
Notifications
You must be signed in to change notification settings - Fork 41
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
Make boto3 dependency optional/soft for cases where only PureS3Path is needed #122
Comments
Hi @echernyavskiy I don't full understand your use case |
@liormizr, right - since |
Hi @echernyavskiy, We have an issue to move boto3 from the dependencies. Now I don't see a nice way to exclude dependency. |
There does seem to be a lively discussion about this here: https://discuss.python.org/t/optional-dependency-groups-omitting-package-requirements/20833/1 - I agree that this would be useful. I have some libraries that need to manipulate both local filesystem paths and S3 paths, and the PureS3Path functionality would be extremely useful, but adding the full boto3 library as a required dependency is a non-starter since many consumers won't even use the AWS functionality. |
Boto3 is currently a hard requirement |
Looking at the code it seems
PureS3Path
does not need anything fromboto3
.However
boto3
is a hard requirement fors3path
. This is problematic for environments like AWS Lambda Python runtime that hasboto3
"built-in".Could
boto3
be a soft dependency likeawacs
for troposphere for example?The text was updated successfully, but these errors were encountered: