-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add compatibility with awscli v2 #11
base: master
Are you sure you want to change the base?
Conversation
README.md
Outdated
|
||
# alternatively, edit ~/.aws/config and add the plugin manually | ||
[plugins] | ||
name = awscli.plugins.s3touch | ||
name = s3touch |
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.
It probably doesn't make sense to leave this as name
. Maybe we want to change the package name to awscli_s3touch
and then this line would be:
s3touch = awscli_s3touch
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.
Switched name
to s3touch
but we might want to choose something else.
@@ -4,10 +4,10 @@ | |||
description='Simulate S3 events without re-uploading a file.', | |||
long_description=open('README.md').read(), | |||
long_description_content_type='text/markdown', | |||
packages = ['awscli.plugins.s3touch'], |
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'm not sure why this was working before. Was something creating a plugin module in v1?
package_dir={'':'src'}, | ||
version = '0.1.0', | ||
install_requires=['awscli'], | ||
install_requires=['awscli', 'boto3'], |
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.
Was this an implicit dependency of awscli in v1?
- Move module out of awscli.plugins namespace - Add an explicit dependency on boto3
This addresses the issues I was running into with #10
I'm not sure if this is the way you'd want to do it but it allow it to be installed and used with the v2 client.