Skip to content

Commit f9b10f9

Browse files
authored
Pin dev dependency versions (#225)
This will let us avoid mistakes with some of our dependencies transparently updating and breaking our CI.
1 parent 587f855 commit f9b10f9

File tree

4 files changed

+34
-6
lines changed

4 files changed

+34
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
python-version: ${{ matrix.python-version }}
1818
- name: Install dependencies
1919
run: |
20-
pip install --upgrade -r requirements.txt -r requirements-dev.txt
20+
pip install --upgrade -r requirements-dev.txt
2121
pip install .
2222
- name: Run tests
2323
run: |

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include *.py
22
include *.toml
3+
include requirements-dev.in
34
include *.txt
45
include CHANGES
56
include COPYING

requirements-dev.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Our direct dependencies used in development/CI.
2+
#
3+
# We generate requirements-dev.txt from this file by running
4+
#
5+
# pip install -r requirements-dev.in && pip freeze > requirements-dev.txt
6+
#
7+
# and then modifying the file manually to restrict black and mypy to CPython
8+
9+
pytest
10+
pytest-cov>=2.5.1
11+
mypy;implementation_name=="cpython"
12+
black;implementation_name=="cpython"
13+
check-manifest
14+
typing_extensions>=3.7.4;python_version<"3.9"

requirements-dev.txt

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
pytest
2-
pytest-cov>=2.5.1
3-
mypy;implementation_name=="cpython"
4-
black;implementation_name=="cpython"
5-
check-manifest
1+
black==23.3.0;implementation_name=="cpython"
2+
build==0.10.0
3+
check-manifest==0.49
4+
click==8.1.3
5+
coverage==7.2.7
6+
exceptiongroup==1.1.1
7+
iniconfig==2.0.0
8+
mypy==1.4.1;implementation_name=="cpython"
9+
mypy-extensions==1.0.0
10+
packaging==23.1
11+
pathspec==0.11.1
12+
platformdirs==3.8.0
13+
pluggy==1.2.0
14+
pyproject_hooks==1.0.0
15+
pytest==7.4.0
16+
pytest-cov==4.1.0
17+
tomli==2.0.1
18+
typing_extensions==4.7.0

0 commit comments

Comments
 (0)