Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

avoid using deprecated pkg_resources #93

Merged
merged 2 commits into from
Mar 10, 2023
Merged

avoid using deprecated pkg_resources #93

merged 2 commits into from
Mar 10, 2023

Conversation

alessandrofelder
Copy link
Member

@alessandrofelder alessandrofelder commented Mar 10, 2023

Before submitting a pull request (PR), please read the contributing guide.

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?

We use pkg_resources which is deprecated (and therefore our tests fail).

What does this PR do?

Uses a relative path to config files instead of pkg_resources.filename.

References

How has this PR been tested?

Tests were failing before due to the deprecation warning, and now pass.

Is this a breaking change?

No.

Does this PR require an update to the documentation?

No.

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality (unit & integration)
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (b31ff82) 99.13% compared to head (da1dd7e) 99.13%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #93   +/-   ##
=======================================
  Coverage   99.13%   99.13%           
=======================================
  Files           9        9           
  Lines         231      231           
=======================================
  Hits          229      229           
  Misses          2        2           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@alessandrofelder alessandrofelder marked this pull request as ready for review March 10, 2023 11:27
@dstansby dstansby merged commit df1ea3b into main Mar 10, 2023
@dstansby dstansby deleted the remove-pkg_resources branch March 10, 2023 11:53
willGraham01 pushed a commit that referenced this pull request Aug 24, 2023
* Add docstrings/typing to utils.py

* Add docstring to sample data

* Add docstrings/typing to thread_worker.py

* Add docstrings/typing to detect.py

* Add missing None return typing
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants