Commit 7a9aec7
authored
fix: Add
# Description
This PR resolves an issue where installing the `a2a-sdk` from a fresh
environment resulted in a ModuleNotFoundError: No module named
'packaging' error at runtime.
The packaging library is a core runtime requirement; it is imported by
several components such as `client_factory.py`, `versions.py`, and
`helpers.py` to parse and validate protocol versions (e.g.,
Version(VERSION_STRING)). However, it was previously omitted from the
base dependencies in `pyproject.toml`.
This has been resolved by adding `packaging>=24.0` to the base
dependencies list in `pyproject.toml`.
Packaging dependency was first introduced here:
https://github.com/a2aproject/a2a-python/blob/e4b365306d554014bbb2195ad2a3d3c85e01cf78/src/a2a/client/client_factory.py#L10
# Changes Made
Added "packaging>=24.0" to the dependencies array in pyproject.toml.packaging to base dependencies (#897)1 parent 4be2064 commit 7a9aec7
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments