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

DM-42226: Write python package metadata #131

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

DM-42226: Write python package metadata #131

wants to merge 14 commits into from

Conversation

timj
Copy link
Member

@timj timj commented Nov 27, 2024

This writes an egg-info directory into the python directory, enabling entry points and importlib.metadata to function using standard Python interfaces.

Shows that a PKG-INFO file in the python/*.egg-info directory
does work with importlib.metadata. This implementation needs
to be cleaned up to not rely on an extra parameter.
This allows it to work without needing a new parameter for
SCons initialization. There is a question as to whether this
should be gated on whether the version target is going to
be enabled or not.
3.10 does not include tomllib.
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.36%. Comparing base (4771053) to head (4a8f949).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #131   +/-   ##
=======================================
  Coverage   85.36%   85.36%           
=======================================
  Files           5        5           
  Lines          41       41           
  Branches        3        3           
=======================================
  Hits           35       35           
  Misses          3        3           
  Partials        3        3           

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

dist-info is the new standard and egg-info is deprecated.
Change the directory name and PKG-INFO is now called METADATA.
SCons will clean up the files inside that directory automatically
but will not delete the directory.
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