Skip to content

Commit

Permalink
Prevent pip-compile showing absolute contraint paths
Browse files Browse the repository at this point in the history
If the --constraints path is included in a requirements.*.in file,
the absolute path is shown in the comments in the requirements.*.txt
output. This appears to be related to a pip upgrade. Specifying the
--constraints path as a command line arg instead results in the
expected relative paths.

We can likely change back when this issue is addressed:
jazzband/pip-tools#2131
  • Loading branch information
rebkwok committed Oct 29, 2024
1 parent b677ca5 commit 26ed519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pip-compile *ARGS: devenv

update-dependencies: devenv
just pip-compile -U requirements.prod.in
just pip-compile -U requirements.dev.in
just pip-compile -U requirements.dev.in -c requirements.prod.txt

# Ensure dev and prod requirements installed and up to date
devenv: virtualenv
Expand Down
4 changes: 1 addition & 3 deletions requirements.dev.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
--constraint requirements.prod.txt

# Additional dev requirements
# To generate a requirements file that includes both prod and dev requirements, run:
# pip-compile --generate-hashes --output-file=requirements.dev.txt requirements.dev.in
# pip-compile --generate-hashes --output-file=requirements.dev.txt --constraint requirements.prod.txt requirements.dev.in

docker
hypothesis
Expand Down

0 comments on commit 26ed519

Please sign in to comment.