Skip to content

Replace usage of pkg_resources #877 #882

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

Conversation

georgehaws
Copy link
Contributor

Description

  • Updated orbit.diagnostics.plot to use importlib.metadata and importlib.resources instead of pkg_resources.
  • Updated orbit.diagnostics.plot to use MarkerStyle from matlplotlib.markers
  • Some very light refactoring to make type checker (Pylance) happy (i.e. defensive programming constructs)

Fixes # (Replace usage of pkg_resources #877)

Type of change

  • Bug fix (non-breaking change that fixes an issue)

How Has This Been Tested?

  • Ran $ pytest -vs tests/ --cov orbit/

  • 350 passed, 82% cov

  • Ran $ pytest -vs test_plot.py --cov orbit/diagnostics/

  • 4 passed, 5 warnings (some Pandas and Orbit package warnings)

  • Chart output appears correct

Thanks for your consideration — I am downstream from this repo on several personal projects.

@CLAassistant
Copy link

CLAassistant commented May 30, 2025

CLA assistant check
All committers have signed the CLA.

@edwinnglabs edwinnglabs self-assigned this May 31, 2025
@edwinnglabs edwinnglabs added the review needed need someone to review label May 31, 2025
@edwinnglabs edwinnglabs self-requested a review June 4, 2025 21:01
Copy link
Collaborator

@edwinnglabs edwinnglabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but we need to double check with the GA @swotai

@edwinnglabs edwinnglabs merged commit d2c13be into uber:dev Jun 5, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review needed need someone to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants