-
Notifications
You must be signed in to change notification settings - Fork 10
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
add ModuleNotFoundError to catch all possible errors #96
base: main
Are you sure you want to change the base?
Conversation
Oof. Did the api change or something? |
Also, feel free to drop older python versions as you see fit |
Codecov ReportPatch coverage has no change and project coverage change:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #96 +/- ##
==========================================
- Coverage 90.90% 90.80% -0.11%
==========================================
Files 7 7
Lines 451 446 -5
==========================================
- Hits 410 405 -5
Misses 41 41
☔ View full report in Codecov by Sentry. |
I'm not even sure why this failed in my tests. According to this it should be OK without it.
I think that making depfinder >=3.8 is pretty safe at this point. I'll add that change. |
I'll fix the CIs tomorrow... |
74ef570
to
aa667c4
Compare
99fc944
to
5700250
Compare
@ericdill this should be ready for a review. I kind of need a new release after it. We are putting together a very hackish way for a jupyter notebook to inspect itself and install the necessary dependencies to run using !pip install ipynbname depfinder --quiet
import subprocess
import sys
def _install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", "--quiet", package])
def _colab_install_missing_deps():
import ipynbname
import depfinder
import importlib
nb_path = ipynbname.path()
deps = depfinder.notebook_path_to_dependencies(nb_path)
for dep in deps["required"]:
if importlib.find_loader(dep) is None:
_install(dep)
_colab_install_missing_deps() The annoying thing is that |
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.
I can review later. Merge and release as you see fit.
We are still tweaking the GoogleColab situation, so we can wait. No rush! |
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.
lgtm, sorry for the super delayed review
This is required for py311 I guess.