Skip to content

Commit

Permalink
Pin dev dependency versions (#225)
Browse files Browse the repository at this point in the history
This will let us avoid mistakes with some of our dependencies
transparently updating and breaking our CI.
  • Loading branch information
jstasiak authored Jul 27, 2023
1 parent 587f855 commit f9b10f9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade -r requirements.txt -r requirements-dev.txt
pip install --upgrade -r requirements-dev.txt
pip install .
- name: Run tests
run: |
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include *.py
include *.toml
include requirements-dev.in
include *.txt
include CHANGES
include COPYING
Expand Down
14 changes: 14 additions & 0 deletions requirements-dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Our direct dependencies used in development/CI.
#
# We generate requirements-dev.txt from this file by running
#
# pip install -r requirements-dev.in && pip freeze > requirements-dev.txt
#
# and then modifying the file manually to restrict black and mypy to CPython

pytest
pytest-cov>=2.5.1
mypy;implementation_name=="cpython"
black;implementation_name=="cpython"
check-manifest
typing_extensions>=3.7.4;python_version<"3.9"
23 changes: 18 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
pytest
pytest-cov>=2.5.1
mypy;implementation_name=="cpython"
black;implementation_name=="cpython"
check-manifest
black==23.3.0;implementation_name=="cpython"
build==0.10.0
check-manifest==0.49
click==8.1.3
coverage==7.2.7
exceptiongroup==1.1.1
iniconfig==2.0.0
mypy==1.4.1;implementation_name=="cpython"
mypy-extensions==1.0.0
packaging==23.1
pathspec==0.11.1
platformdirs==3.8.0
pluggy==1.2.0
pyproject_hooks==1.0.0
pytest==7.4.0
pytest-cov==4.1.0
tomli==2.0.1
typing_extensions==4.7.0

0 comments on commit f9b10f9

Please sign in to comment.