-
Notifications
You must be signed in to change notification settings - Fork 40
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
Rename package to instructlab.sdg
from instructlab_sdg
#14
Conversation
The instructlab side went in, so this can go in now once I rebase it. |
b193466
to
f5c27f1
Compare
9fa49d9
to
125f72d
Compare
I think I'm down to a linter fight between ruff wanting this import to move to its own first party section
but if I do that, there's another linter complaining that all of the |
@@ -0,0 +1 @@ | |||
__path__ = __import__("pkgutil").extend_path(__path__, __name__) |
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.
Is this __init__.py
needed here?
This will allow some portions of a namespace to be legacy portions while others are migrated to PEP 420.
https://peps.python.org/pep-0420/#migrating-from-legacy-namespace-packages
indicates (to me) that it is not necessary in the PEP 420 parts of the namespace (like this and instructlab.schema
) to have an instructlab/__init__.py
.
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.
It's needed for now until we have reconfigured all tooling and linters to deal with PEP 420 namespace packages.
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.
Looks good, waiting on gate to be fixed
Part of issue instructlab#2 This changes to use Python namespace packages where `instructlab` is the namespace used for our libraries. Signed-off-by: Russell Bryant <[email protected]>
125f72d
to
299381b
Compare
I fixed the linter issue. |
Part of issue #2
This changes to use Python namespace packages where
instructlab
isthe namespace used for our libraries.
Signed-off-by: Russell Bryant [email protected]
instructlab
instructlab#1263