Skip to content

Commit

Permalink
requirements.txt: Generate package lock file
Browse files Browse the repository at this point in the history
- Use pip-tools' pip-compile command via '.venv/bin/pip-compile'
- Note: For pip-compile to work for this project we have to add:
```
[tool.setuptools]
py-modules = []
```
  Details here:
  - jazzband/pip-tools#1711 (comment)
  - pypa/setuptools#3197 (comment)
  • Loading branch information
letam committed May 16, 2023
1 parent ee8b386 commit 90d4bde
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ dev = [
"black",
"isort",
"ruff",

"pip-tools",
]

[tool.black]
skip-string-normalization = true

[tool.isort]
profile = "black"

[tool.setuptools]
py-modules = []
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile
#
asgiref==3.6.0
# via django
django==4.2.1
# via mypythondjangoproject (pyproject.toml)
sqlparse==0.4.4
# via django

0 comments on commit 90d4bde

Please sign in to comment.