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

Add compatibility with awscli v2 #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drewish
Copy link

@drewish drewish commented Oct 11, 2021

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.

@CLAassistant
Copy link

CLAassistant commented Oct 11, 2021

CLA assistant check
All committers have signed the CLA.

README.md Outdated

# alternatively, edit ~/.aws/config and add the plugin manually
[plugins]
name = awscli.plugins.s3touch
name = s3touch
Copy link
Author

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

Copy link
Author

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'],
Copy link
Author

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'],
Copy link
Author

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
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.

2 participants