Skip to content

Commit

Permalink
Merge pull request #20 from zenml-io/bug/fix-sklearn-vulnerability
Browse files Browse the repository at this point in the history
Fix scikit-learn vulnerability
  • Loading branch information
stefannica authored Jul 22, 2024
2 parents 2be4972 + 7b934f5 commit 994fa92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
scikit-learn<1.3
scikit-learn
copier
jinja2-time
zenml[server]>=0.52.0
Expand Down
2 changes: 1 addition & 1 deletion template/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
zenml[server]>=0.50.0
notebook
scikit-learn<1.3
scikit-learn
pyarrow
8 changes: 7 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# permissions and limitations under the License.


import contextlib
import os
import sys
import shutil
from typing import Generator

Expand Down Expand Up @@ -97,4 +99,8 @@ def clean_zenml_client(

# remove all traces, and change working directory back to base path
os.chdir(orig_cwd)
shutil.rmtree(str(tmp_path))
if sys.platform == "win32":
with contextlib.suppress(Exception):
shutil.rmtree(str(tmp_path))
else:
shutil.rmtree(str(tmp_path))

0 comments on commit 994fa92

Please sign in to comment.