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

package removal pt 2 #1380

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ RUN JAXVER=$(pip freeze | grep -e "^jax==") && \
"matplotlib<3.8.0" \
seaborn \
python-dateutil dask dask-expr igraph \
pyyaml joblib husl geopy mne pyshp \
pyyaml joblib geopy mne pyshp \
pandas \
polars \
flax \
Expand Down Expand Up @@ -242,7 +242,6 @@ RUN apt-get install -y libfreetype6-dev && \
wordcloud \
xgboost \
pydot \
python-Levenshtein \
hep_ml && \
# NLTK Project datasets
mkdir -p /usr/share/nltk_data && \
Expand Down Expand Up @@ -309,8 +308,6 @@ RUN pip install mpld3 \
arrow \
nilearn \
nibabel \
pronouncing \
markovify \
imgaug \
preprocessing \
path.py \
Expand All @@ -325,7 +322,6 @@ RUN pip install mpld3 \
hyperopt \
fitter \
langid \
trueskill \
# Useful data exploration libraries (for missing data and generating reports)
missingno \
pandas-profiling \
Expand All @@ -349,7 +345,6 @@ RUN pip install mpld3 \
SimpleITK \
hmmlearn \
gplearn \
PyAstronomy \
squarify \
fuzzywuzzy \
python-louvain \
Expand Down Expand Up @@ -379,19 +374,16 @@ RUN pip install mpld3 \
kaggle \
kagglehub \
google-generativeai \
mock \
pytest && \
/tmp/clean-layer.sh

RUN rm -rf /opt/conda/lib/python3.10/site-packages/numpy-1.23.5.dist-info*
RUN pip install tensorpack && \
# Add google PAIR-code Facets
cd /opt/ && git clone https://github.com/PAIR-code/facets && cd facets/ && jupyter nbextension install facets-dist/ --user && \
# Add google PAIR-code Facets
RUN cd /opt/ && git clone https://github.com/PAIR-code/facets && cd facets/ && jupyter nbextension install facets-dist/ --user && \
export PYTHONPATH=$PYTHONPATH:/opt/facets/facets_overview/python/ && \
pip install kmodes --no-dependencies && \
pip install librosa \
polyglot \
mmh3 \
sentencepiece \
cufflinks \
lime \
Expand Down Expand Up @@ -606,8 +598,7 @@ RUN apt-get install tesseract-ocr -y && \
pip install pytesseract \
wand \
pdf2image \
PyPDF \
pyocr && \
PyPDF && \
/tmp/clean-layer.sh
ENV TESSERACT_PATH=/usr/bin/tesseract

Expand Down
9 changes: 0 additions & 9 deletions tests/test_levenshtein.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/test_rapidfuzz.py

This file was deleted.

6 changes: 3 additions & 3 deletions tests/test_user_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from test.support.os_helper import EnvironmentVarGuard
from urllib.parse import urlparse
from datetime import datetime, timedelta
import mock
from unittest.mock import Mock, patch

from google.auth.exceptions import DefaultCredentialsError
from google.cloud import bigquery
Expand Down Expand Up @@ -182,11 +182,11 @@ def test_fn():

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

@mock.patch('kaggle_secrets.datetime')
@patch('kaggle_secrets.datetime')
def test_get_access_token_succeeds(self, mock_dt):
secret = '12345'
now = datetime(1993, 4, 24)
mock_dt.utcnow = mock.Mock(return_value=now)
mock_dt.utcnow = Mock(return_value=now)

def call_get_bigquery_access_token():
client = UserSecretsClient()
Expand Down