Skip to content

feat: explicit exports#10

Open
flying-sheep wants to merge 1 commit intomainfrom
pa/exports
Open

feat: explicit exports#10
flying-sheep wants to merge 1 commit intomainfrom
pa/exports

Conversation

@flying-sheep
Copy link
Copy Markdown
Member

@flying-sheep flying-sheep commented Apr 15, 2026

Also get rid of the __version__ attribute, I really want to discourage people from using that over importlib.metadata.version. Versions are properties of distributions (PyPI packages), not import packages, and there is a canonical way in the stdlib to retrieve them using the distribution name. This is often the same, but doing things right makes things way less confusing when it isn’t the same.

Also regarding __version_tuple__: If people want a structured version, they can depend on packaging and parse the version using packaging.version.Version. It’s extremely fast and all our packages import packaging anyway at import time.

@flying-sheep flying-sheep requested a review from ilia-kats April 15, 2026 14:46
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.47%. Comparing base (a77c3d6) to head (17bb3b5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
+ Coverage   97.43%   97.47%   +0.04%     
==========================================
  Files           3        3              
  Lines         117      119       +2     
==========================================
+ Hits          114      116       +2     
  Misses          3        3              
Files with missing lines Coverage Δ
src/scverse_misc/__init__.py 100.00% <100.00%> (ø)
src/scverse_misc/_deprecated.py 100.00% <100.00%> (ø)
src/scverse_misc/_extensions.py 96.34% <100.00%> (+0.04%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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