Repository navigation
Description
related #348
Pendulum is a fairly heavy dependency (requires cargo at install???), which maintenance over time doesn't see guaranteed (author fatigue).
We have only 3 (non-test) files making references to this dependency, with a total of 12 references to parsing functions.
https://github.com/search?q=repo%3Amicrosoft%2Fkiota-python+pendulum+language%3APython+NOT+path%3A%2F%5Epackages%5C%2Fserialization%5C%2Fjson%5C%2Ftests%5C%2Funit%5C%2F%2F+NOT+path%3A%2F%5Epackages%5C%2Fserialization%5C%2Fform%5C%2Ftests%5C%2Funit%5C%2F%2F&type=code&l=Python
Except for time delta, all those parsing functions have equivalents in the main python BCL.
https://docs.python.org/3/library/datetime.html#datetime.datetime.fromisoformat
https://docs.python.org/3/library/datetime.html#datetime.time.fromisoformat
https://docs.python.org/3/library/datetime.html#datetime.date.fromisoformat
Here are the steps to take:
- implement a static function parseTimeDeltaFromIsoFormat in abstractions use the duration ABNF from RFC 3339
- replace all calls to pendulum by the equivalent BCL/abstractions methods
- remove the dependency from the packages.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone ✔️
Activity
svrooij commentedon Jan 14, 2025
I was having this exact issue only minutes ago, then I found this exact issue. Really looking forward into trying this out.
baywet commentedon Jan 14, 2025
Stephan van Rooij (@svrooij) Is this something you'd like to submit a pull request for provided some guidance?
svrooij commentedon Jan 14, 2025
Vincent Biret (@baywet) I would, but I have no idea what I'm doing python wise 😄
Let's see what Github Copilot workspace has to say about this issue.
Remove pendulum dependency
feat: remove pendulum from dependencies to prepare for 3.13 support