Skip to content

Remove importlib.metadata dependency #55

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

Merged
merged 2 commits into from
Aug 20, 2021
Merged

Remove importlib.metadata dependency #55

merged 2 commits into from
Aug 20, 2021

Conversation

aboelhamd
Copy link
Contributor

@aboelhamd aboelhamd commented Aug 20, 2021

Description of changes:

Remove importlib.metadata dependency & introduce __version__ .

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@carlzogh carlzogh merged commit c92c8ad into main Aug 20, 2021
@aboelhamd aboelhamd deleted the aboelhamd branch August 20, 2021 09:16
DavidCain added a commit to DavidCain/aws-lambda-python-runtime-interface-client that referenced this pull request Jul 1, 2022
This should complete a previous attempt to remove dependency on the
package, unblocking use of `awslambdaric` in projects that use a newer
version of `importlib-metadata`. Version 2 of `importlib-metadata` is
reasonably old - version 4.4 is present in Python 3.10 for instance.

Motivation for the change
=========================
I think issue aws#61 covers it well, but essentially it becomes difficult
to use `awslambdaric` in a virtualenv with other dependencies that
expect a newer version of `importlib-metadata`:

aws#61

`awslambdaric` isn't supposed to need `importlib-metadata` anyway
=================================================================
Previous work (in August of 2021, with version 1.2.2) removed all
dependency on the `importlib-metadata` package, but accidentally left
`importlib-metadata` as a full dependency of this package:

- aws#55

Most recent version still has `importlib-metadata` dependency
=============================================================
```
$ pip show awslambdaric
Name: awslambdaric
Version: 2.0.4
...
Requires: importlib-metadata, simplejson
```
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.

3 participants