Skip to content

Commit ce514a1

Browse files
committed
Pin build dependencies and configure dependabot
1 parent bca0289 commit ce514a1

File tree

7 files changed

+74
-43
lines changed

7 files changed

+74
-43
lines changed

.github/dependabot.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 2
2+
updates:
3+
# Root
4+
- package-ecosystem: "pip"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
# doc
9+
- package-ecosystem: "pip"
10+
directory: "/doc"
11+
schedule:
12+
interval: "daily"
13+
# test
14+
- package-ecosystem: "pip"
15+
directory: "/test"
16+
schedule:
17+
interval: "daily"
18+
# decrypt_oracle
19+
- package-ecosystem: "pip"
20+
directory: "/decrypt_oracle"
21+
schedule:
22+
interval: "daily"
23+
# decrypt_oracle test
24+
- package-ecosystem: "pip"
25+
directory: "/decrypt_oracle/test"
26+
schedule:
27+
interval: "daily"
28+
# Github Actions
29+
- package-ecosystem: "github-actions"
30+
directory: "/"
31+
schedule:
32+
interval: "daily"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Requirements for actual package
2-
chalice
3-
aws-encryption-sdk
2+
chalice==1.26.2
3+
aws-encryption-sdk==3.1.0

decrypt_oracle/test/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
mock
2-
pytest>=3.3.1
3-
pytest-cov
4-
pytest-mock
5-
requests
1+
mock==4.0.3
2+
pytest==6.2.5
3+
pytest-cov==3.0.0
4+
pytest-mock==3.6.1
5+
requests==2.26.0

linter-requirements.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
bandit==1.7.0
2+
black==21.12b0
3+
doc8==0.10.1
4+
flake8==4.0.1
5+
flake8-bugbear==21.11.29
6+
flake8-docstrings==1.6.0
7+
flake8-print==4.0.0
8+
isort==5.10.1
9+
pyflakes==2.4.0
10+
pylint==2.12.2
11+
readme_renderer==32.0
12+
seed-isort-config==2.2.0
13+
sphinx==4.3.1
14+
vulture==2.3

release-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pypi-parker==0.1.2
2+
setuptools==59.6.0
3+
twine==3.7.1
4+
wheel==0.37.0

test/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mock
2-
pytest>=3.3.1
3-
pytest-cov
4-
pytest-mock
1+
mock==4.0.3
2+
pytest==6.2.5
3+
pytest-cov==3.0.0
4+
pytest-mock==3.6.1

tox.ini

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -120,21 +120,13 @@ commands = {[testenv:test-upstream-requirements-base]commands}
120120
# Linters
121121
[testenv:flake8]
122122
basepython = python3
123-
deps =
124-
flake8
125-
flake8-docstrings>=1.5.0
126-
# https://github.com/JBKahn/flake8-print/pull/30
127-
flake8-print>=3.1.0
128-
flake8-bugbear
123+
deps = -rlinter-requirements.txt
129124
commands =
130125
flake8 src/aws_encryption_sdk/ setup.py
131126

132127
[testenv:flake8-tests]
133128
basepython = {[testenv:flake8]basepython}
134-
deps =
135-
flake8
136-
# https://github.com/JBKahn/flake8-print/pull/30
137-
flake8-print>=3.1.0
129+
deps = -rlinter-requirements.txt
138130
commands =
139131
flake8 \
140132
# Ignore F811 redefinition errors in tests (breaks with pytest-mock use)
@@ -159,8 +151,7 @@ commands =
159151
basepython = python3
160152
deps =
161153
{[testenv]deps}
162-
pyflakes
163-
pylint
154+
-rlinter-requirements.txt
164155
commands =
165156
pylint \
166157
--rcfile=src/pylintrc \
@@ -187,8 +178,7 @@ commands =
187178

188179
[testenv:blacken-src]
189180
basepython = python3
190-
deps =
191-
black
181+
deps = -rlinter-requirements.txt
192182
commands =
193183
black --line-length 120 \
194184
src/aws_encryption_sdk/ \
@@ -215,12 +205,12 @@ commands =
215205

216206
[testenv:isort-seed]
217207
basepython = python3
218-
deps = seed-isort-config
208+
deps = -rlinter-requirements.txt
219209
commands = seed-isort-config
220210

221211
[testenv:isort]
222212
basepython = python3
223-
deps = isort
213+
deps = -rlinter-requirements.txt
224214
commands = isort -rc \
225215
src \
226216
test \
@@ -246,26 +236,23 @@ commands =
246236

247237
[testenv:doc8]
248238
basepython = python3
249-
deps =
250-
sphinx
251-
doc8
239+
deps = -rlinter-requirements.txt
252240
commands = doc8 doc/index.rst README.rst CHANGELOG.rst
253241

254242
[testenv:readme]
255243
basepython = python3
256-
deps = readme_renderer
244+
deps = -rlinter-requirements.txt
257245
commands = python setup.py check -r -s
258246

259247
[testenv:bandit]
260248
basepython = python3
261-
deps =
262-
bandit>=1.5.1
249+
deps = -rlinter-requirements.txt
263250
commands = bandit -r src/aws_encryption_sdk/
264251

265252
# Prone to false positives: only run independently
266253
[testenv:vulture]
267254
basepython = python3
268-
deps = vulture
255+
deps = -rlinter-requirements.txt
269256
commands = vulture src/aws_encryption_sdk/
270257

271258
[testenv:linters]
@@ -320,26 +307,20 @@ commands =
320307
[testenv:park]
321308
basepython = python3
322309
skip_install = true
323-
deps =
324-
pypi-parker
325-
setuptools
310+
deps = -rrelease-requirements.txt
326311
commands = python setup.py park
327312

328313
[testenv:build]
329314
basepython = python3
330315
skip_install = true
331-
deps =
332-
wheel
333-
setuptools
316+
deps = -rrelease-requirements.txt
334317
commands =
335318
python setup.py sdist bdist_wheel
336319

337320
[testenv:release-base]
338321
basepython = python3
339322
skip_install = true
340-
deps =
341-
{[testenv:build]deps}
342-
twine
323+
deps = -rrelease-requirements.txt
343324
passenv =
344325
# Intentionally omit TWINE_REPOSITORY_URL from the passenv list,
345326
# as this overrides other ways of setting the repository and could

0 commit comments

Comments
 (0)