Skip to content

Commit f13f634

Browse files
authored
Mixed bag clean up (#1425)
yeah handful of things 1) Combined some layer 2) made comments referring to bugs use consistent format 3) removed low usage packages and tests, we recently launched package manager. we can confidently remove more unused packages. The following packages are to be removed: - pykalman - preprocessing - hmmlearn - gplearn - geoplot - polyglot - ggplot - descartes - fitter - imagecodecs - wfdb - hpsklearn - cleverhans - osmnx - pysal - wordsegment - vowpalwabbit - feather - kmodes - ortools - mlens - vecstack - Geohash - geoviews - s2sphere - flashtext - kmapper - stemming - hunspell - spectral - essentia - hypertools - stop_words - scattertext - vaex - blake3 - catalyst (note no longer maintained since 2022)
1 parent 9e84258 commit f13f634

11 files changed

+119
-450
lines changed

Dockerfile.tmpl

+112-181
Large diffs are not rendered by default.

tests/test_catalyst.py

-158
This file was deleted.

tests/test_essentia.py

-7
This file was deleted.

tests/test_geoviews.py

-17
This file was deleted.

tests/test_ggplot.py

-12
This file was deleted.

tests/test_imports.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ class TestImport(unittest.TestCase):
44
# Basic import tests for packages without any.
55
def test_basic(self):
66
import bq_helper
7-
import cleverhans
87
import tensorflow_datasets
98
import segment_anything

tests/test_kmapper.py

-7
This file was deleted.

tests/test_matplotlib.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import unittest
22
import os.path
33

4+
from distutils.version import StrictVersion
5+
6+
import matplotlib
47
import matplotlib.pyplot as plt
58
import numpy as np
69

710
class TestMatplotlib(unittest.TestCase):
11+
def test_version(self):
12+
# b/308525631: newer versions of Matplotlib causes learntools to fail
13+
self.assertLess(StrictVersion(matplotlib.__version__), StrictVersion("3.8.0"))
14+
815
def test_plot(self):
916
plt.plot(np.linspace(0,1,50), np.random.rand(50))
1017
plt.savefig("plot1.png")

tests/test_pykalman.py

-47
This file was deleted.

tests/test_vaex.py

-10
This file was deleted.

tests/test_vowpalwabbit.py

-10
This file was deleted.

0 commit comments

Comments
 (0)