Commit 18f0768
committed
🔧 requirements.in contains the direct dependencies
Now `requirements.in` contains the project's direct dependencies (i.e., top-level),
whereas the generated `requirements.txt` includes all dependencies (direct + indirect).
To add/update dependencies, use `requirements.in` as the source to build `requirements.txt`:
```shell
# Edit requirements.in
# Remove all installed dependencies
python -m pip freeze --exclude-editable | xargs python -m pip uninstall -y
# Install direct dependencies (and their dependencies)
python -m pip install -r requirements.in
# Pin all dependencies in requirements.txt
# ie. List all the dependencies (direct and indirect) in
# requirements.txt with their version number
python -m pip freeze > requirements.txt
````
# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date: Wed Dec 25 17:21:40 2024 +0100
#
# interactive rebase in progress; onto 04db1c4
# Last commands done (2 commands done):
# edit 1ced63a ⬆️ Upgrade project dependencies
# edit d10ed83 🔧 Add the list of direct project dependencies
# No commands remaining.
# You are currently splitting a commit while rebasing branch 'config/upgrade_dependencies' on '04db1c4'.
#
# Changes to be committed:
# new file: requirements.in
#
# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date: Wed Dec 25 17:21:40 2024 +0100
#
# interactive rebase in progress; onto 04db1c4
# Last commands done (2 commands done):
# edit 1ced63a ⬆️ Upgrade project dependencies
# edit d10ed83 🔧 Add the list of direct project dependencies
# No commands remaining.
# You are currently splitting a commit while rebasing branch 'config/upgrade_dependencies' on '04db1c4'.
#
# Changes to be committed:
# new file: requirements.in
#1 parent ef12993 commit 18f0768
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments