Skip to content
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

Define all requirements required in setup.py file on the extension. #4

Open
sujen1412 opened this issue Mar 28, 2024 · 4 comments
Open

Comments

@sujen1412
Copy link

sujen1412 commented Mar 28, 2024

The current one requires the following

jupyter_packaging==0.12.3
jupyter_server==2.13.0
nbformat==5.10.3
notebook==7.1.2
pytest==8.1.1
PyYAML==6.0.1
Requests==2.31.0
setuptools==68.2.2
tornado==6.4
xmltodict==0.13.0
git+https://github.com/MAAP-Project/[email protected]#egg=maapPy
@grallewellyn
Copy link
Collaborator

BTW going use jupyter_server==2.12.5 because of this PR fixing a bug: https://github.com/MAAP-Project/jupyter-server-extension/pull/2/files

@sujen1412
Copy link
Author

Feel free to change the versions as needed. This is just a template.

@grallewellyn
Copy link
Collaborator

@sujen1412 why would I need to add git+https://github.com/MAAP-Project/[email protected]#egg=maapPy to the install_requires?
Both are installed when we build our images so this would just be another place we need to change the version of maap-py

@sujen1412
Copy link
Author

sujen1412 commented Mar 29, 2024

Agreed that it is installed when building the image. But how would we know if updating maap-py in the image will break this extension or not ?

This extension uses maap-py in its code here - https://github.com/MAAP-Project/jupyter-server-extension/blob/main/jupyter_server_extension/handlers.py#L9.

So if we were to say build a base image without maap-py in it, this extension would fail as it is relying on something else to provide its dependency (which also was the root cause of the xmltodict error we are seeing now).

So, yes this would be another place we would have to change the version, but in my opinion that is how it should be, independent.
Once we move to pypi, we could change the setup.py to say install maap-py>=3.0,<4.0

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

No branches or pull requests

2 participants