Skip to content
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

Remove pkg_resources usage #100

Merged
merged 3 commits into from
Jan 12, 2023
Merged

Remove pkg_resources usage #100

merged 3 commits into from
Jan 12, 2023

Conversation

luizirber
Copy link
Member

@luizirber luizirber commented Jan 12, 2023

pkg_resources is part of setuptools, so removing it allows not having a runtime dep on setuptools. Its usage is also discouraged since importlib has the necessary features.
https://setuptools.pypa.io/en/latest/pkg_resources.html

Declare importlib_resources as a dependency for tests in 3.8 (since the .files() method was added in 3.9 stdlib)

Update Read the Docs config to avoid the default 3.7 version.

Relevant to sourmash-bio/sourmash#2433 and NixOS/nixpkgs#205878

@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.53%. Comparing base (6fb3e49) to head (98796cf).
Report is 11 commits behind head on latest.

Additional details and impacted files
@@           Coverage Diff           @@
##           latest     #100   +/-   ##
=======================================
  Coverage   87.53%   87.53%           
=======================================
  Files          15       15           
  Lines         634      634           
=======================================
  Hits          555      555           
  Misses         79       79           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@luizirber luizirber force-pushed the lirber/remove_pkg_resources branch 2 times, most recently from af90b10 to 5cfc315 Compare January 12, 2023 02:38
@luizirber luizirber force-pushed the lirber/remove_pkg_resources branch from 5cfc315 to 98796cf Compare January 12, 2023 02:40
@luizirber luizirber requested a review from ctb January 12, 2023 02:51
@luizirber luizirber merged commit ba1d4eb into latest Jan 12, 2023
@luizirber luizirber deleted the lirber/remove_pkg_resources branch January 12, 2023 03:44
luizirber added a commit to sourmash-bio/sourmash that referenced this pull request Mar 5, 2023
Close #2491 

Similar to dib-lab/screed#100 but also dealing
with `entry_points` (and the differences in stdlib for
[`importlib.metadata`](https://pypi.org/project/backports.entry-points-selectable/)...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants