Skip to content

Commit feed788

Browse files
committed
fix: consume smdebug_ruleconfig .whl for ITs (aws#295)
1 parent 4fa9b3c commit feed788

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/smdebug_rulesconfig/_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
def _get_rule_config(rule_name):
99
rule_config = None
10-
print(rule_name)
1110
config_file_path = os.path.dirname(os.path.abspath(__file__)) + "/" + RULE_CONFIG_FILE
12-
print(config_file_path)
1311

1412
if os.path.exists(config_file_path):
1513
with open(config_file_path) as json_data:

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ passenv =
5959
# Can be used to specify which tests to run, e.g.: tox -- -s
6060
# TODO: Remove pip install python-dateutil==2.8.0 once botocore no longer requires a pinned version:
6161
# https://github.com/boto/botocore/issues/1872
62+
# TODO-reinvent-2019: Remove pip install tests/data/smdebug_rulesconfig-0.1.2-py2.py3-none-any.whl once package is in PyPI
6263
commands =
6364
pip install python-dateutil==2.8.0
65+
pip install src/sagemaker/smdebug_rulesconfig-0.1.2-py2.py3-none-any.whl
6466
coverage run --source sagemaker -m pytest {posargs}
6567
{env:IGNORE_COVERAGE:} coverage report --fail-under=84 --omit */tensorflow/tensorflow_serving/*
6668
extras = test
@@ -102,6 +104,7 @@ install_command = python -m pip install --upgrade -I {packages}
102104
# Based on: https://github.com/rtfd/readthedocs.org/blob/8f0c78dde5edcc85acf90462a8518735a25482d3/readthedocs/doc_builder/python_environments.py#L280
103105
# TODO: Remove pip install python-dateutil==2.8.0 once botocore no longer requires a pinned version:
104106
# https://github.com/boto/botocore/issues/1872
107+
# TODO-reinvent-2019: Remove pip install ../tests/data/smdebug_rulesconfig-0.4a0-py2.py3-none-any.whl once package is in PyPI
105108
deps =
106109
Pygments==2.2.0
107110
setuptools<40
@@ -119,6 +122,7 @@ deps =
119122
# TODO: Remove pip install python-dateutil==2.8.0 once botocore no longer requires a pinned version
120123
commands =
121124
pip install python-dateutil==2.8.0
125+
pip install ../src/sagemaker/smdebug_rulesconfig-0.1.2-py2.py3-none-any.whl
122126
pip install --exists-action=w -r requirements.txt
123127
sphinx-build -T -W -b html -d _build/doctrees-readthedocs -D language=en . _build/html
124128

0 commit comments

Comments
 (0)