-
Notifications
You must be signed in to change notification settings - Fork 386
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
PEP621 #1076
Comments
Hey @LecrisUT , yes indeed while trying to do #1077 I found out that the current |
That is really tricky and non-standard. It's also incompatible with CI tools, e.g. in steup-python, it uses setup.py/pyproject.toml, etc. to setup pypi cache. If there are two setup environments there can be contamination from one to another. How about splitting it into In Fedora packaging it is often that the pip will install in a package subfolder to make it python self-consistent, but when packaging it is moved to the system's locations. Maybe these can give some design ideas. |
What is the objective of controlling the building of extension via env variable? I assume you must be distributing the transpiled JS with the python package. So, unless users are doing a developmental install, they do not have to build the extension themselves. I will be happy to port the extension to JLab 4 and |
Hey @mahendrapaipuri , the environment variable was introduced to reduce the build time of the package in the contexts when the Jupyter Lab extension was not required. I guess that now with Jupyter Lab 4 we always want the extension to be bundled with the Python package, so yes we can remove it.
Oh yes that would be much appreciated! The JLab extension is the part that I find the most difficult to maintain. A few months back I had a look at the JLab extension cookie cutters, and I could see that the build tools have changed significantly, but I could not really identify how to make the update, so definitively I'd take any help on this! BTW, we currently have an extension that is compatible with both Jupyter Lab 3 and Jupyter Lab 4. If you need to make it JLab 4 only I would be fine with that option too. |
Alright, I see your point. If I understand correctly, the frontend extension is not critical for
Yes, JupyterLab extensions are using Cheers! |
It does not have to be two repos. Modern design can have them in subdirectories. But also a common approach is to include all files in the wheel, but have a specific I don't know if I can help and research the packaging there, but if you can make a PR, I can catch up and help with a review. |
Ok. I will try to put up a draft PR and we can discuss over it. Cheers! |
Awesome, thanks! I am also in favor of just one repository. For information this repository contains the Jupytext Python API and CLI, a contents manager, a short Jupyter Lab server extension (which only role is to activate the contents manager), and the Jupyter Lab front end extension (so two Jlab extensions). There is also a former Jupyter Notebook extension but I guess that one can be discarded now. |
Looking at the
setup.py
, it seems quite straightforward to upgrade to a single PEP621pyproject.toml
file. The one thing that I am not sure of isjupyter_packaging
. Is there a way to build it withoutsetup.py
?The text was updated successfully, but these errors were encountered: