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

fix: Remove pkg_resources dependency #230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

effigies
Copy link
Member

There is no reasonable case where a user has pkg_resources-accessible metadata (or importlib-metadata) and does not have a _version.py file.

Instead of replacing with importlib-metadata, I'm just skipping ahead to the hard-coded "unknown", using 0+unknown to satisfy PEP440.

There may be a very rare case where someone makes an editable installation and borks their directory, but knowing what the version was when they installed it won't help us a lot there.

There is no reasonable case where a user has pkg_resources-accessible
metadata (or importlib-metadata) and does not have a `_version.py` file.

Instead of replacing with importlib-metadata, I'm just skipping ahead to
the hard-coded "unknown", using `0+unknown` to satisfy PEP440.

There may be a very rare case where someone makes an editable
installation and borks their directory, but knowing what the version was
when they installed it won't help us a lot there.
Copy link

codecov bot commented Nov 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.32%. Comparing base (e280510) to head (6a248eb).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #230      +/-   ##
==========================================
+ Coverage   93.01%   95.32%   +2.31%     
==========================================
  Files          28       28              
  Lines        2976     2953      -23     
==========================================
+ Hits         2768     2815      +47     
+ Misses        208      138      -70     
Flag Coverage Δ
unittests 95.09% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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.

1 participant