File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 runs-on : ubuntu-latest
1717 strategy :
1818 matrix :
19- python-version : ["3.10 ", "3.11 ", "3.12 "]
19+ python-version : ["3.11 ", "3.12 ", "3.13 "]
2020
2121 steps :
2222 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ classifiers = [
1010 " Development Status :: 4 - Beta" ,
1111 " Intended Audience :: Science/Research" ,
1212 " Natural Language :: English" ,
13- " Programming Language :: Python :: 3.10" ,
1413 " Programming Language :: Python :: 3.11" ,
1514 " Programming Language :: Python :: 3.12" ,
15+ " Programming Language :: Python :: 3.13" ,
1616 " Operating System :: POSIX :: Linux" ,
1717 " Topic :: Scientific/Engineering :: Bio-Informatics" ,
1818]
Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ def install(
4040 fixes that are pinned in this function.
4141 """
4242
43- from pkg_resources import ContextualVersionConflict
44-
4543 if not run_outside_colab :
4644 IN_COLAB = "google.colab" in sys .modules
4745 if not IN_COLAB :
@@ -98,10 +96,16 @@ def install(
9896
9997 try :
10098 import scvi # noqa: F401
101- except ContextualVersionConflict :
102- logger .warning (
103- "Import unsuccessful. Try restarting (not resetting) the session and running again."
104- )
99+ except Exception as exc :
100+ if any (
101+ base .__name__ == "ContextualVersionConflict"
102+ for base in exc .__class__ .__mro__
103+ ):
104+ logger .warning (
105+ "Import unsuccessful. Try restarting (not resetting) the session and running again."
106+ )
107+ else :
108+ raise
105109
106110
107111def _run_command (command : str ):
You can’t perform that action at this time.
0 commit comments