cartography
cartography copied to clipboard
[Chore] Migrate from deprecated pdpyras to pagerduty package
Description
The project currently triggers a deprecation warning due to the use of the pdpyras package:
/home/runner/work/cartography-github-action/cartography-github-action/.venv/lib/python3.10/site-packages/pdpyras.py:26: UserWarning: The package "pdpyras" is deprecated and as of 2025-06-20 will no longer receive updates. Please use "pagerduty" instead. Migration guide: https://pagerduty.github.io/python-pagerduty/pdpyras_migration_guide.html
Motivation
pdpyrasis officially deprecated and will no longer receive updates after 2025-06-20.- To avoid relying on an unmaintained dependency, we should migrate to the new
pagerdutypackage. - This ensures long-term support, security updates, and compatibility.
Scope
- Replace
pdpyraswithpagerdutyin dependencies. - Update codebase to use the new package API (see migration guide).
- Adjust tests accordingly.
Checklist
- [ ] Update dependencies
- [ ] Refactor code to use
pagerdutyAPI - [ ] Update / add tests if necessary
- [ ] Remove
pdpyrasfrom requirements - [ ] Verify no warnings remain in CI
Additional Notes
- Migration guide: https://pagerduty.github.io/python-pagerduty/pdpyras_migration_guide.html
Hi, I'm new here and would like to work on this issue to replace pdpyras with pagerduty.
Can I please take it?
Sure, feel free to open a PR ;)
@jychp Could you please review my pull request for the PagerDuty migration
@Roniscend before review please check your PR pass the CI tests (testing locally is even better)
And @leaf5135 has started working on that issue, please discuss with him to avoid doing the same job twice.