Skip to content

Commit 467f170

Browse files
committed
chore: relock deps to newer versions and fix now-failing tests
1 parent 8f50f1d commit 467f170

File tree

5 files changed

+2892
-2319
lines changed

5 files changed

+2892
-2319
lines changed

mismo/conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@
1111
from ibis.expr import types as ir
1212
import pytest
1313

14+
try:
15+
# Workaround for https://github.com/explosion/thinc/pull/965
16+
import thinc.util
17+
18+
_original_fix_random_seed = thinc.util.fix_random_seed
19+
20+
def _patched_fix_random_seed(seed: int = 0) -> None:
21+
seed = seed % (2**32)
22+
_original_fix_random_seed(seed)
23+
24+
thinc.util.fix_random_seed = _patched_fix_random_seed
25+
except ImportError:
26+
pass
27+
1428
# we want to have pytest assert introspection in the helpers
1529
pytest.register_assert_rewrite("mismo.tests.util")
1630

mismo/lib/geo/_census.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ def us_census_geocode(
129129
if col != "__row_number"
130130
}
131131
)
132-
re_joined = t.inner_join(unduped, "__row_number").drop("__row_number")
132+
input_cols = [c for c in t.columns if c != "__row_number"]
133+
geocode_cols = [c for c in unduped.columns if c != "__row_number"]
134+
re_joined = t.inner_join(unduped, "__row_number").select(*input_cols, *geocode_cols)
133135
return re_joined
134136

135137

mismo/types/_linked_table.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ def with_linked_values(
185185
t,
186186
self_id_to_other_array_vals,
187187
uname,
188-
).drop(uname)
188+
)
189+
with_other = with_other.select(*self.columns, *value_names)
189190
return self.__class__(with_other, other=self.other_, links=self.links_)
190191

191192
def with_n_links(self, /, *, name: str = "n_links") -> _typing.Self:

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ viz = [
4848
"anywidget>=0.9.18",
4949
]
5050
postal = [
51-
"postal>=1.1.7; sys_platform == 'linux' or sys_platform == 'darwin'",
51+
# pin to below 1.1.11 due to breaking changes in the build system
52+
# https://github.com/openvenues/pypostal/commits/df602af33f28c2c9d9dd198de8764244d063734f/
53+
"postal>=1.1.7,<1.1.11; sys_platform == 'linux' or sys_platform == 'darwin'",
5254
]
5355
spacy = [
5456
"en-us-address-ner-sm",

0 commit comments

Comments
 (0)