From 3b19b1a0e9770a72018d4bdf206ac7e16e9ce12f Mon Sep 17 00:00:00 2001 From: Sangram K Sahu Date: Thu, 28 Nov 2024 15:26:15 +0530 Subject: [PATCH 1/4] Remove numpy dependency --- tests/test_clos/test_process_job_list.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_clos/test_process_job_list.py b/tests/test_clos/test_process_job_list.py index 671ff50..dc80549 100644 --- a/tests/test_clos/test_process_job_list.py +++ b/tests/test_clos/test_process_job_list.py @@ -3,7 +3,6 @@ import requests_mock import requests import pandas as pd -import numpy as np from cloudos.clos import Cloudos input_json = "tests/test_data/process_job_list_initial_json.json" @@ -52,7 +51,7 @@ def test_process_job_list_df_values_equal(mocked_requests_get,): 'workflow.updatedAt', 'workflow.workflowType', 'project._id', 'project.name', 'project.createdAt', 'project.updatedAt'] - assert np.all(df[columns_to_compare] == output_df[columns_to_compare]) + pd.testing.assert_frame_equal(df[columns_to_compare], output_df[columns_to_compare]) def test_process_job_list_full_has_correct_columns(mocked_requests_get): From a36647ce642f8d23035a025d9cbeb88c6f06c235 Mon Sep 17 00:00:00 2001 From: Sangram K Sahu Date: Thu, 28 Nov 2024 15:27:43 +0530 Subject: [PATCH 2/4] Update requirements.txt --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4a07ed1..33493f1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ click>=8.0.1 requests>=2.26.0 requests-mock>=1.9.3 pandas>=1.3.4 -numpy==1.26.4 pytest>=6.2.5 responses>=0.21.0 mock>=3.0.5 From 26f1c7dc52886868b10af058ef531da031be40e6 Mon Sep 17 00:00:00 2001 From: Sangram K Sahu Date: Thu, 28 Nov 2024 15:28:18 +0530 Subject: [PATCH 3/4] Update environment.yml --- environment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/environment.yml b/environment.yml index e84c89c..99049dd 100644 --- a/environment.yml +++ b/environment.yml @@ -8,4 +8,3 @@ dependencies: - requests - click - pandas - - numpy==1.26.4 From c012a898e155243728558ec43027eeb7292ccd68 Mon Sep 17 00:00:00 2001 From: Sangram K Sahu Date: Thu, 28 Nov 2024 15:28:38 +0530 Subject: [PATCH 4/4] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index ed26b80..2d610b6 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ The package requires Python >= 3.7 and the following python packages: ``` click>=8.0.1 pandas>=1.3.4 -numpy==1.26.4 requests>=2.26.0 ```