Skip to content

Commit

Permalink
Generate requirements.txt with pip-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
bmerry committed Mar 23, 2024
1 parent 448a203 commit a1495c3
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ repos:
rev: "7.0.0"
hooks:
- id: flake8
- repo: https://github.com/jazzband/pip-tools
rev: 7.4.1
hooks:
- id: pip-compile
language_version: python3.8
args: ["--output-file=requirements.txt", "--extra=test", "--strip-extras", "setup.cfg"]
files: '^(?:setup\.cfg|requirements\.txt)$'
4 changes: 4 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pre-commit
pytest
pytest-asyncio>=0.23
pytest-mock
50 changes: 46 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,46 @@
pre-commit
pytest
pytest-asyncio
pytest-mock
#
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --extra=test --output-file=requirements.txt --strip-extras setup.cfg
#
cfgv==3.4.0
# via pre-commit
distlib==0.3.8
# via virtualenv
exceptiongroup==1.2.0
# via pytest
filelock==3.13.1
# via virtualenv
identify==2.5.35
# via pre-commit
iniconfig==2.0.0
# via pytest
nodeenv==1.8.0
# via pre-commit
packaging==24.0
# via pytest
platformdirs==4.2.0
# via virtualenv
pluggy==1.4.0
# via pytest
pre-commit==3.5.0
# via async-solipsism (setup.cfg)
pytest==8.1.1
# via
# async-solipsism (setup.cfg)
# pytest-asyncio
# pytest-mock
pytest-asyncio==0.23.6
# via async-solipsism (setup.cfg)
pytest-mock==3.14.0
# via async-solipsism (setup.cfg)
pyyaml==6.0.1
# via pre-commit
tomli==2.0.1
# via pytest
virtualenv==20.25.1
# via pre-commit

# The following packages are considered to be unsafe in a requirements file:
# setuptools
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ where = src
[options.extras_require]
test =
pre-commit
pytest
pytest-asyncio
pytest-asyncio>=0.23
pytest-mock

0 comments on commit a1495c3

Please sign in to comment.