cartography icon indicating copy to clipboard operation
cartography copied to clipboard

[Chore] Migrate from deprecated pdpyras to pagerduty package

Open jychp opened this issue 4 months ago • 4 comments

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

  • pdpyras is 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 pagerduty package.
  • This ensures long-term support, security updates, and compatibility.

Scope

  • Replace pdpyras with pagerduty in dependencies.
  • Update codebase to use the new package API (see migration guide).
  • Adjust tests accordingly.

Checklist

  • [ ] Update dependencies
  • [ ] Refactor code to use pagerduty API
  • [ ] Update / add tests if necessary
  • [ ] Remove pdpyras from requirements
  • [ ] Verify no warnings remain in CI

Additional Notes

  • Migration guide: https://pagerduty.github.io/python-pagerduty/pdpyras_migration_guide.html

jychp avatar Aug 21 '25 20:08 jychp

Hi, I'm new here and would like to work on this issue to replace pdpyras with pagerduty. Can I please take it?

leaf5135 avatar Aug 23 '25 00:08 leaf5135

Sure, feel free to open a PR ;)

jychp avatar Aug 23 '25 06:08 jychp

@jychp Could you please review my pull request for the PagerDuty migration

Roniscend avatar Aug 23 '25 21:08 Roniscend

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

jychp avatar Aug 24 '25 07:08 jychp