From 2b80d70473461ab5c09f131d51ef8166d62b6380 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 11 Oct 2022 16:37:02 -0500 Subject: [PATCH 1/3] Pin mimesis version in setup.py. --- python/cudf/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cudf/setup.py b/python/cudf/setup.py index 93948afc0f6..88a88335105 100644 --- a/python/cudf/setup.py +++ b/python/cudf/setup.py @@ -31,7 +31,7 @@ "pytest-benchmark", "pytest-xdist", "hypothesis", - "mimesis", + "mimesis<4.1", "fastavro>=0.22.9", "python-snappy>=0.6.0", "pyorc", From a2e6b5d6e68ac891f5cd1cb6af58aed64142edfd Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 11 Oct 2022 16:54:54 -0500 Subject: [PATCH 2/3] Update to mimesis>=4.1. --- conda/environments/cudf_dev_cuda11.5.yml | 2 +- python/cudf/cudf/testing/dataset_generator.py | 4 ++-- python/cudf/setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conda/environments/cudf_dev_cuda11.5.yml b/conda/environments/cudf_dev_cuda11.5.yml index 142d3c7d9cb..5e23c92264f 100644 --- a/conda/environments/cudf_dev_cuda11.5.yml +++ b/conda/environments/cudf_dev_cuda11.5.yml @@ -63,7 +63,7 @@ dependencies: - myst-nb - scipy - dask-cuda=22.12.* - - mimesis<4.1 + - mimesis>=4.1 - packaging - protobuf>=3.20.1,<3.21.0a0 - nvtx>=0.2.1 diff --git a/python/cudf/cudf/testing/dataset_generator.py b/python/cudf/cudf/testing/dataset_generator.py index 4d24e7ff2a2..2867c4d10eb 100644 --- a/python/cudf/cudf/testing/dataset_generator.py +++ b/python/cudf/cudf/testing/dataset_generator.py @@ -502,7 +502,7 @@ def rand_dataframe( cardinality=cardinality, null_frequency=null_frequency, generator=lambda cardinality=cardinality: [ - mimesis.random.random.schoice( + mimesis.random.random.generate_string( string.printable, np.random.randint( low=0, @@ -684,7 +684,7 @@ def get_values_for_nested_data(dtype, lists_max_length=None, size=None): values = float_generator(dtype=dtype, size=cardinality)() elif dtype.kind in ("U", "O"): values = [ - mimesis.random.random.schoice( + mimesis.random.random.generate_string( string.printable, 100, ) diff --git a/python/cudf/setup.py b/python/cudf/setup.py index 88a88335105..05482b98162 100644 --- a/python/cudf/setup.py +++ b/python/cudf/setup.py @@ -31,7 +31,7 @@ "pytest-benchmark", "pytest-xdist", "hypothesis", - "mimesis<4.1", + "mimesis>=4.1", "fastavro>=0.22.9", "python-snappy>=0.6.0", "pyorc", From 8f717e715c1a77d5f19cd07b08376986028e67f8 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 11 Oct 2022 16:58:58 -0500 Subject: [PATCH 3/3] Use .0 suffix. --- conda/environments/cudf_dev_cuda11.5.yml | 2 +- python/cudf/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conda/environments/cudf_dev_cuda11.5.yml b/conda/environments/cudf_dev_cuda11.5.yml index 5e23c92264f..e27e8557c80 100644 --- a/conda/environments/cudf_dev_cuda11.5.yml +++ b/conda/environments/cudf_dev_cuda11.5.yml @@ -63,7 +63,7 @@ dependencies: - myst-nb - scipy - dask-cuda=22.12.* - - mimesis>=4.1 + - mimesis>=4.1.0 - packaging - protobuf>=3.20.1,<3.21.0a0 - nvtx>=0.2.1 diff --git a/python/cudf/setup.py b/python/cudf/setup.py index 05482b98162..3ebb66cb0ad 100644 --- a/python/cudf/setup.py +++ b/python/cudf/setup.py @@ -31,7 +31,7 @@ "pytest-benchmark", "pytest-xdist", "hypothesis", - "mimesis>=4.1", + "mimesis>=4.1.0", "fastavro>=0.22.9", "python-snappy>=0.6.0", "pyorc",