-
Notifications
You must be signed in to change notification settings - Fork 832
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
base: master
Are you sure you want to change the base?
Conversation
15e6e31
to
7b4c66f
Compare
7b4c66f
to
789e841
Compare
b27ab32
to
f665237
Compare
f665237
to
c8a8af3
Compare
e33972c
to
8a3aabc
Compare
metaflow/meta_files.py
Outdated
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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).
8a3aabc
to
51323cf
Compare
if _py_ver >= (3, 8): | ||
from importlib import metadata | ||
elif _py_ver >= (3, 7): | ||
from metaflow._vendor.v3_7 import importlib_metadata as metadata |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
No description provided.