Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,13 @@ if "%InstallPythonPackages%" == "True" (
echo "Installing python packages ... "
echo "#################################"
call "%PythonExe%" -m pip install --upgrade nose pytest graphviz imageio pytest-cov "jupyter_client>=4.4.0" "nbconvert>=4.2.0"
if %PythonVersion% == 2.7 ( call "%PythonExe%" -m pip install --upgrade pyzmq )
:: Run azureml-dataprep tests only in pyhon 3.7 as its an optional dependency
if %PythonVersion% == 3.7 ( call "%PythonExe%" -m pip install --upgrade "azureml-dataprep>=1.1.12" )

if %PythonVersion% == 2.7 (
call "%PythonExe%" -m pip install --upgrade pyzmq
) else (
call "%PythonExe%" -m pip install --upgrade "azureml-dataprep>=1.1.12"
)

call "%PythonExe%" -m pip install --upgrade "%__currentScriptDir%target\%WheelFile%"
call "%PythonExe%" -m pip install "scikit-learn==0.19.2"
)
Expand Down
13 changes: 7 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,14 @@ then
if [ ${PythonVersion} = 2.7 ]
then
"${PythonExe}" -m pip install --upgrade pyzmq
elif [ ${PythonVersion} = 3.6 ] && [ "$(uname -s)" = "Darwin" ]
then
"${PythonExe}" -m pip install --upgrade pytest-remotedata
elif [ ${PythonVersion} = 3.7 ]
then
else
if [ ${PythonVersion} = 3.6 ] && [ "$(uname -s)" = "Darwin" ]
then
"${PythonExe}" -m pip install --upgrade pytest-remotedata
fi

"${PythonExe}" -m pip install --upgrade "azureml-dataprep>=1.1.12"
fi
fi
"${PythonExe}" -m pip install --upgrade "${Wheel}"
"${PythonExe}" -m pip install "scikit-learn==0.19.2"
fi
Expand Down
2 changes: 1 addition & 1 deletion src/python/nimbusml/tests/dprep/test_dprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def assert_2d_array_equal(actual, desired):
continue
assert_true(actual[i][y] == desired[i][y])

@unittest.skipIf(os.name == "posix" or sys.version_info[:2] != (3, 7), "azureml-dataprep is not installed.")
@unittest.skipIf(sys.version_info[:2] == (2, 7), "azureml-dataprep is not installed.")
class TestDprep(unittest.TestCase):

def test_fit_transform(self):
Expand Down