Commit 21f7b3a
Relax dependency constraints (#1713)
* Define dependencies in pyproject.toml
Moves dependency constraints to pyproject.toml.
Makes requirements.txt a lockfile.
* Support click 8.3.0
Fixes an incompatibility caused by click 8.3.0, which passes the default value as-is.
* Support pyreadstat 1.2.9
Fixes an incompatibility caused by pyreadstat 1.2.9, which changed original_variable_type from 'NULL' to None
* Support jsonpath-ng 1.8.0
Works around an behavior change in jsonpath-ng 1.8.0 where Child.str gets wrapped in parenthesis.
* Suport dask 2024.8.1
Fixes tokenization errors when using dask 2024.8.1+. Starting with this
version, dask enforces that tokens remain stable across pickle
round-trips (dask/dask#11320). Capturing self in a lambda fails this
check because instance objects can have non-deterministic pickle
representations. Since calculate_variable_value_length is already a
static method, replacing self with the class name is enough to remove
the capture.
* Support dask 2024.12.1
Fixes an import error caused by dask 2024.12.1, which removed the
legacy dask.dataframe.dd submodule (dask/dask#11604). Changes the
import to `import dask.dataframe as dd`, consistent with every other
file in the codebase.
* Support dask 2025.4.0
Dask 2025.4.0 optimizes multiple DataFrames together, which exposes
division mismatches when assigning a pandas Series to a dask DataFrame
column. The old reset_index/set_index workaround no longer avoids this.
Replacing it with compute-assign-rewrap via dd.from_pandas, which builds
a clean expression graph. This is safe because __getitem__ already
computes the DataFrame to produce the Series being assigned.
* Support pandas 2.2.0
Fixes a unit test to support pandas 2.2.0+. The pandas release fixes a
sorting bug with pandas-dev/pandas#54611. This
commit changes the expected results accordingly.
Also fixes a merge type mismatch introduced by upstream #1709: the
codelist metadata side was cast to StringDtype but the evaluation
dataset side was not. With pandas 2.2.0, empty columns infer as float64,
and merging float64 with string is rejected. Casting both sides to
string before the merge resolves this.
---------
Co-authored-by: Samuel Johnson <96841389+SFJohnson24@users.noreply.github.com>1 parent 4afe6e2 commit 21f7b3a
16 files changed
Lines changed: 74 additions & 26 deletions
File tree
- .github/workflows
- cdisc_rules_engine
- dataset_builders
- models/dataset
- operations
- services
- data_readers
- data_services
- docs
- tests/unit/test_dataset_builders
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
403 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
404 | 415 | | |
405 | 416 | | |
406 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
364 | 363 | | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
368 | | - | |
369 | 367 | | |
370 | 368 | | |
371 | 369 | | |
| |||
0 commit comments