Skip to content

Commit bfcbaf6

Browse files
mufaddal-rohawalanavinns
authored andcommitted
change: pin test dependencies (#2929)
1 parent 4a0f4f6 commit bfcbaf6

File tree

3 files changed

+35
-32
lines changed

3 files changed

+35
-32
lines changed

README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ SageMaker Python SDK is tested on:
9090
- Python 3.6
9191
- Python 3.7
9292
- Python 3.8
93+
- Python 3.9
9394

9495
AWS Permissions
9596
~~~~~~~~~~~~~~~

setup.py

+23-21
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def read_version():
3333

3434
# Declare minimal set for installation
3535
required_packages = [
36-
"attrs",
36+
"attrs==20.3.0",
3737
"boto3>=1.20.21",
3838
"google-pasta",
3939
"numpy>=1.9.0",
@@ -49,36 +49,38 @@ def read_version():
4949
# Specific use case dependencies
5050
extras = {
5151
"local": [
52-
"urllib3>=1.21.1,!=1.25,!=1.25.1",
53-
"docker-compose>=1.25.2",
54-
"docker==5.0.0",
55-
"PyYAML>=5.3, <6", # PyYAML version has to match docker-compose requirements
52+
"urllib3==1.26.8",
53+
"docker-compose==1.29.2",
54+
"docker~=5.0.0",
55+
"PyYAML==5.4.1", # PyYAML version has to match docker-compose requirements
5656
],
57-
"scipy": ["scipy>=0.19.0"],
57+
"scipy": ["scipy==1.5.4"],
5858
}
5959
# Meta dependency groups
6060
extras["all"] = [item for group in extras.values() for item in group]
6161
# Tests specific dependencies (do not need to be included in 'all')
6262
extras["test"] = (
6363
[
6464
extras["all"],
65-
"tox",
66-
"flake8",
67-
"pytest<6.1.0",
68-
"pytest-cov",
69-
"pytest-rerunfailures",
70-
"pytest-timeout",
65+
"tox==3.24.5",
66+
"flake8==4.0.1",
67+
"pytest==6.0.2",
68+
"pytest-cov==3.0.0",
69+
"pytest-rerunfailures==10.2",
70+
"pytest-timeout==2.1.0",
7171
"pytest-xdist==2.4.0",
72-
"coverage<6.2",
73-
"mock",
74-
"contextlib2",
75-
"awslogs",
76-
"black",
72+
"coverage>=5.2, <6.2",
73+
"mock==4.0.3",
74+
"contextlib2==21.6.0",
75+
"awslogs==0.14.0",
76+
"black==22.1.0",
7777
"stopit==1.1.2",
78-
"apache-airflow==1.10.11",
79-
"fabric>=2.0",
80-
"requests>=2.20.0, <3",
81-
"sagemaker-experiments",
78+
"apache-airflow==2.2.3",
79+
"apache-airflow-providers-amazon==3.0.0",
80+
"attrs==20.3.0",
81+
"fabric==2.6.0",
82+
"requests==2.27.1",
83+
"sagemaker-experiments==0.1.35",
8284
],
8385
)
8486

tox.ini

+11-11
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ markers =
5959
timeout: mark a test as a timeout.
6060

6161
[testenv]
62-
pip_version = pip==20.2
62+
pip_version = pip==21.3
6363
passenv =
6464
AWS_ACCESS_KEY_ID
6565
AWS_SECRET_ACCESS_KEY
@@ -80,8 +80,8 @@ depends =
8080
skipdist = true
8181
skip_install = true
8282
deps =
83-
flake8
84-
flake8-future-import
83+
flake8==4.0.1
84+
flake8-future-import==0.4.6
8585
commands = flake8
8686

8787
[testenv:pylint]
@@ -106,7 +106,7 @@ commands =
106106
# twine check was added starting in 1.12.0
107107
# https://github.com/pypa/twine/blob/master/docs/changelog.rst
108108
deps =
109-
twine>=1.12.0
109+
twine==3.8.0
110110
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
111111
commands =
112112
python setup.py sdist
@@ -118,23 +118,23 @@ changedir = doc
118118
# having the requirements.txt installed in deps above results in Double Requirement exception
119119
# https://github.com/pypa/pip/issues/988
120120
deps =
121-
pip==20.2
121+
pip==21.3
122122
commands =
123123
pip install --exists-action=w -r requirements.txt
124124
sphinx-build -T -W -b html -d _build/doctrees-readthedocs -D language=en . _build/html
125125

126126
[testenv:doc8]
127127
deps =
128-
doc8
129-
Pygments
128+
doc8==0.10.1
129+
Pygments==2.11.2
130130
commands = doc8
131131

132132
[testenv:black-format]
133133
# Used during development (before committing) to format .py files.
134134
setenv =
135135
LC_ALL=C.UTF-8
136136
LANG=C.UTF-8
137-
deps = black
137+
deps = black==22.1.0
138138
commands =
139139
black -l 100 ./
140140

@@ -143,12 +143,12 @@ commands =
143143
setenv =
144144
LC_ALL=C.UTF-8
145145
LANG=C.UTF-8
146-
deps = black
146+
deps = black==22.1.0
147147
commands =
148148
black -l 100 --check ./
149149

150150
[testenv:clean]
151-
deps = coverage
151+
deps = coverage==6.2
152152
skip_install = true
153153
commands = coverage erase
154154

@@ -158,7 +158,7 @@ commands =
158158
mypy src/sagemaker
159159

160160
[testenv:docstyle]
161-
deps = pydocstyle
161+
deps = pydocstyle==6.1.1
162162
commands =
163163
pydocstyle src/sagemaker
164164

0 commit comments

Comments
 (0)