Skip to content

fix: Remove pkg_resources dependency #230

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
merged 1 commit into from
Dec 6, 2024

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).
Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #230      +/-   ##
==========================================
- Coverage   95.36%   95.32%   -0.04%     
==========================================
  Files          28       28              
  Lines        2976     2953      -23     
==========================================
- Hits         2838     2815      -23     
  Misses        138      138              
Flag Coverage Δ
unittests 95.09% <100.00%> (+0.02%) ⬆️

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.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@effigies effigies merged commit 2b0e980 into nipy:master Dec 6, 2024
15 checks passed
@effigies effigies deleted the fix/purge_setuptools branch December 6, 2024 20:57
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