Skip to content

Commit ee8b8fa

Browse files
authoredApr 3, 2024
Merge pull request #1380 from Kaggle/clean-up-everybody-everywhere
package removal pt 2
2 parents 5afea0a + 69ad60a commit ee8b8fa

File tree

4 files changed

+7
-38
lines changed

4 files changed

+7
-38
lines changed
 

Diff for: ‎Dockerfile.tmpl

+4-13
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ RUN JAXVER=$(pip freeze | grep -e "^jax==") && \
191191
"matplotlib<3.8.0" \
192192
seaborn \
193193
python-dateutil dask dask-expr igraph \
194-
pyyaml joblib husl geopy mne pyshp \
194+
pyyaml joblib geopy mne pyshp \
195195
pandas \
196196
polars \
197197
flax \
@@ -242,7 +242,6 @@ RUN apt-get install -y libfreetype6-dev && \
242242
wordcloud \
243243
xgboost \
244244
pydot \
245-
python-Levenshtein \
246245
hep_ml && \
247246
# NLTK Project datasets
248247
mkdir -p /usr/share/nltk_data && \
@@ -309,8 +308,6 @@ RUN pip install mpld3 \
309308
arrow \
310309
nilearn \
311310
nibabel \
312-
pronouncing \
313-
markovify \
314311
imgaug \
315312
preprocessing \
316313
path.py \
@@ -325,7 +322,6 @@ RUN pip install mpld3 \
325322
hyperopt \
326323
fitter \
327324
langid \
328-
trueskill \
329325
# Useful data exploration libraries (for missing data and generating reports)
330326
missingno \
331327
pandas-profiling \
@@ -349,7 +345,6 @@ RUN pip install mpld3 \
349345
SimpleITK \
350346
hmmlearn \
351347
gplearn \
352-
PyAstronomy \
353348
squarify \
354349
fuzzywuzzy \
355350
python-louvain \
@@ -379,19 +374,16 @@ RUN pip install mpld3 \
379374
kaggle \
380375
kagglehub \
381376
google-generativeai \
382-
mock \
383377
pytest && \
384378
/tmp/clean-layer.sh
385379

386380
RUN rm -rf /opt/conda/lib/python3.10/site-packages/numpy-1.23.5.dist-info*
387-
RUN pip install tensorpack && \
388-
# Add google PAIR-code Facets
389-
cd /opt/ && git clone https://github.com/PAIR-code/facets && cd facets/ && jupyter nbextension install facets-dist/ --user && \
381+
# Add google PAIR-code Facets
382+
RUN cd /opt/ && git clone https://github.com/PAIR-code/facets && cd facets/ && jupyter nbextension install facets-dist/ --user && \
390383
export PYTHONPATH=$PYTHONPATH:/opt/facets/facets_overview/python/ && \
391384
pip install kmodes --no-dependencies && \
392385
pip install librosa \
393386
polyglot \
394-
mmh3 \
395387
sentencepiece \
396388
cufflinks \
397389
lime \
@@ -606,8 +598,7 @@ RUN apt-get install tesseract-ocr -y && \
606598
pip install pytesseract \
607599
wand \
608600
pdf2image \
609-
PyPDF \
610-
pyocr && \
601+
PyPDF && \
611602
/tmp/clean-layer.sh
612603
ENV TESSERACT_PATH=/usr/bin/tesseract
613604

Diff for: ‎tests/test_levenshtein.py

-9
This file was deleted.

Diff for: ‎tests/test_rapidfuzz.py

-13
This file was deleted.

Diff for: ‎tests/test_user_secrets.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from test.support.os_helper import EnvironmentVarGuard
88
from urllib.parse import urlparse
99
from datetime import datetime, timedelta
10-
import mock
10+
from unittest.mock import Mock, patch
1111

1212
from google.auth.exceptions import DefaultCredentialsError
1313
from google.cloud import bigquery
@@ -182,11 +182,11 @@ def test_fn():
182182

183183
self._test_client(test_fn, '/requests/GetUserSecretByLabelRequest', {'Label': "__gcloud_sdk_auth__"}, secret=secret)
184184

185-
@mock.patch('kaggle_secrets.datetime')
185+
@patch('kaggle_secrets.datetime')
186186
def test_get_access_token_succeeds(self, mock_dt):
187187
secret = '12345'
188188
now = datetime(1993, 4, 24)
189-
mock_dt.utcnow = mock.Mock(return_value=now)
189+
mock_dt.utcnow = Mock(return_value=now)
190190

191191
def call_get_bigquery_access_token():
192192
client = UserSecretsClient()

0 commit comments

Comments
 (0)