Skip to content

WIP: Add the ability to package more libraries #2269

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

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

romain-intel
Copy link
Contributor

No description provided.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the uv_environment now depends on read_info_file so the import needs to be updated. Be sure to rebase this at some point to catch such errors.

os.path.join(self.metaflow_dir.name, os.path.basename(INFO_FILE)),
os.path.join(
self.metaflow_dir.name,
os.path.basename(MetaFile.INFO_FILE.value),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MetaFile.INFO_FILE.value is just a filename so os.path.basename here seems unnecessary

@@ -162,6 +161,8 @@ def get_username():


def resolve_identity_as_tuple():
from metaflow.exception import MetaflowUnknownUser
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was moving these imports necessary? no objections, just wondering.

(Conda still needs to be fixed to use correct file)
Separating out the Tar backend portion so it can be replaced
by something else. Internally, at Netflix, we also have the need for
a zip packaging and separating it out like this make it possible.

The code in MetaflowPackaging is also much cleaner and clearer focusing
simply on *what* to package and not specifically on the how (moving out
all the walking code, the actual taring, etc).
@madhur-ob madhur-ob force-pushed the feat/extended_packaging branch from 8a3aabc to 51323cf Compare May 23, 2025 17:22
if _py_ver >= (3, 8):
from importlib import metadata
elif _py_ver >= (3, 7):
from metaflow._vendor.v3_7 import importlib_metadata as metadata
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

earlier, it was from metaflow._vendor import importlib_metadata as metadata
but we do have a separate folder for v3_7
thus, I changed the import to:
from metaflow._vendor.v3_7 import importlib_metadata as metadata

if _py_ver >= (3, 8):
from importlib import metadata
elif _py_ver >= (3, 7):
from metaflow._vendor.v3_7 import importlib_metadata as metadata
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as before:

earlier, it was from metaflow._vendor import importlib_metadata as metadata
but we do have a separate folder for v3_7
thus, I changed the import to:
from metaflow._vendor.v3_7 import importlib_metadata as metadata

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.

4 participants