-
-
Notifications
You must be signed in to change notification settings - Fork 30
Updated s3 support in mc #4749
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
base: master
Are you sure you want to change the base?
Updated s3 support in mc #4749
Conversation
Signed-off-by: Aleck <[email protected]>
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 updating this to Boto3 and Futures. After integrating the Python 3 update, we didn't have the time or energy to tackle the Boto3 migration.
Is there an easy way to test this without using AWS credentials before merging?
handle_client_error('Unable to list buckets', e) | ||
|
||
# Import python timezones (pytz) | ||
try: |
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.
Starting with Python 3.9, the standard library includes time zone support. It would be best to try in the following order: 1) the standard library, 2) pytz, and 3) the fallback.
@@ -1,7 +1,7 @@ | |||
#! @PYTHON@ | |||
#!/usr/bin/env python3 |
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 leave it as is. It will be replaced during the build.
# Settings: (should be set via environment) | ||
# Required: | ||
# AWS_ACCESS_KEY_ID : Amazon AWS access key (required) | ||
# AWS_SECRET_ACCESS_KEY : Amazon AWS secret access key (required) | ||
# Optional: | ||
# MCVFS_EXTFS_S3_LOCATION : where to create new buckets: "EU" - default, "USWest", "APNortheast" etc. | ||
# MCVFS_EXTFS_S3_DEBUGFILE : write debug info to this file (no info by default) | ||
# MCVFS_EXTFS_S3_DEBUGLEVEL : debug messages level ("WARNING" - default, "DEBUG" - verbose) |
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.
Could you please leave the settings block and update it to reflect the current state?
Proposed changes
S3 support was outdated and broken
The fix is simply a 2 minutes one by Q dev. Works fine, but surely code review is a must
Checklist
👉 Our coding style can be found here: https://midnight-commander.org/coding-style/ 👈
git commit --amend -s
make indent && make check
)