-
Notifications
You must be signed in to change notification settings - Fork 1
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
Namespace packaging #1
Comments
Yep, the name should absolutely be Not sure about adding a |
What about the other two submodules I proposed?
|
I don't remember that proposal - are you suggesting the import should look like: from nipreps.interfaces.synthstrip import SynthStrip |
Yes, hatchling and setuptools will (per spec) ignore each other's config. I think you're right that this should work (I would just build and unpack the sdist and wheel to verify) as-is, but if you want to be explicit, you will want the package to be |
Sorry, it's this - nipreps/nireports#71 (comment)
I think so, for the interface. But to ease our lives we can put the nipype interface with the other interfaces, and leave this package even more lightweight. |
I would be up for trying to keep the interface and wrapped utility in the same package. We could even add a pydra task while we're at it.
That way adapting the interface/task can be done in lockstep with changes to the utility and we can use PyPI don't need to depend on any versioning machinery in nipype or pydra. I would keep nipype and pydra as optional dependencies. |
This would be a good topic to discuss in the next IT - don't you think? cc/ @esavary |
My inclination is on keeping the namespace as lightweight as possible, and IMO
+1 on anytime we can make the installation smaller. What we could then do is create a separate cookiecutter (nipreps-submodules?) that creates the expected layout (building off chris's)
|
Yeah, I'm fine with bundling it inside one namespace. I would just be explicit and call the submodule from nipreps.<tool>.wrapper.nipype import <Interface>
from nipreps.<tool>.wrapper.pydra import <Task> |
@mgxd can we finalize this? Having a pypi package would allow me to drop the code from mriqc and start using it elsewhere. |
Thanks! |
shouldn't this:
synthstrip/pyproject.toml
Line 6 in dcc89be
be
as per https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#native-namespace-packages?
And then also (https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#finding-namespace-packages):
The text was updated successfully, but these errors were encountered: