Skip to content

Commit 3c93800

Browse files
change: pin test dependencies
1 parent bb7563f commit 3c93800

File tree

3 files changed

+28
-30
lines changed

3 files changed

+28
-30
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

+18-18
Original file line numberDiff line numberDiff line change
@@ -49,36 +49,36 @@ 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",
52+
"urllib3==1.26.8",
53+
"docker-compose==1.29.2",
5454
"docker==5.0.0",
55-
"PyYAML>=5.3, <6", # PyYAML version has to match docker-compose requirements
55+
"PyYAML==5.4.1", # PyYAML version has to match docker-compose requirements
5656
],
57-
"scipy": ["scipy>=0.19.0"],
57+
"scipy": ["scipy==1.8.0"],
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==6.1.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",
7878
"apache-airflow==1.10.11",
79-
"fabric>=2.0",
80-
"requests>=2.20.0, <3",
81-
"sagemaker-experiments",
79+
"fabric==2.6.0",
80+
"requests==2.27.1",
81+
"sagemaker-experiments==0.1.35",
8282
],
8383
)
8484

tox.ini

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

6161
[testenv]
62-
pip_version = pip==20.2
6362
passenv =
6463
AWS_ACCESS_KEY_ID
6564
AWS_SECRET_ACCESS_KEY
@@ -80,8 +79,8 @@ depends =
8079
skipdist = true
8180
skip_install = true
8281
deps =
83-
flake8
84-
flake8-future-import
82+
flake8==4.0.1
83+
flake8-future-import==0.4.6
8584
commands = flake8
8685

8786
[testenv:pylint]
@@ -106,7 +105,7 @@ commands =
106105
# twine check was added starting in 1.12.0
107106
# https://github.com/pypa/twine/blob/master/docs/changelog.rst
108107
deps =
109-
twine>=1.12.0
108+
twine==3.8.0
110109
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
111110
commands =
112111
python setup.py sdist
@@ -117,24 +116,22 @@ changedir = doc
117116
# pip install requirements.txt is separate as RTD does it in separate steps
118117
# having the requirements.txt installed in deps above results in Double Requirement exception
119118
# https://github.com/pypa/pip/issues/988
120-
deps =
121-
pip==20.2
122119
commands =
123120
pip install --exists-action=w -r requirements.txt
124121
sphinx-build -T -W -b html -d _build/doctrees-readthedocs -D language=en . _build/html
125122

126123
[testenv:doc8]
127124
deps =
128-
doc8
129-
Pygments
125+
doc8==0.10.1
126+
Pygments==2.11.2
130127
commands = doc8
131128

132129
[testenv:black-format]
133130
# Used during development (before committing) to format .py files.
134131
setenv =
135132
LC_ALL=C.UTF-8
136133
LANG=C.UTF-8
137-
deps = black
134+
deps = black==22.1.0
138135
commands =
139136
black -l 100 ./
140137

@@ -143,12 +140,12 @@ commands =
143140
setenv =
144141
LC_ALL=C.UTF-8
145142
LANG=C.UTF-8
146-
deps = black
143+
deps = black==22.1.0
147144
commands =
148145
black -l 100 --check ./
149146

150147
[testenv:clean]
151-
deps = coverage
148+
deps = coverage==6.2
152149
skip_install = true
153150
commands = coverage erase
154151

@@ -158,7 +155,7 @@ commands =
158155
mypy src/sagemaker
159156

160157
[testenv:docstyle]
161-
deps = pydocstyle
158+
deps = pydocstyle==6.1.1
162159
commands =
163160
pydocstyle src/sagemaker
164161

0 commit comments

Comments
 (0)