-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pip-compile): support
uv pip compile
- Loading branch information
Showing
7 changed files
with
108 additions
and
23 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
lib/modules/manager/pip-compile/__fixtures__/requirementsWithUV.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file was autogenerated by uv via the following command: | ||
# uv pip compile --generate-hashes --output-file=requirements.txt --universal requirements.in | ||
attrs==21.2.0 \ | ||
--hash=sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1 \ | ||
--hash=sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb | ||
# via -r requirements.in | ||
setuptools==59.2.0 \ | ||
--hash=sha256:157d21de9d055ab9e8ea3186d91e7f4f865e11f42deafa952d90842671fc2576 \ | ||
--hash=sha256:4adde3d1e1c89bde1c643c64d89cdd94cbfd8c75252ee459d4500bccb9c7d05d | ||
# via -r requirements.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -488,6 +488,19 @@ describe('modules/manager/pip-compile/artifacts', () => { | |
); | ||
}); | ||
|
||
it('returns extracted arguments for uv ', () => { | ||
expect( | ||
constructPipCompileCmd( | ||
extractHeaderCommand( | ||
Fixtures.get('requirementsWithUv.txt'), | ||
'subdir/requirements.txt', | ||
), | ||
), | ||
).toBe( | ||
'uv pip compile --generate-hashes --output-file=requirements.txt --universal requirements.in', | ||
); | ||
}); | ||
|
||
it('returns --no-emit-index-url when credentials are found in PIP_INDEX_URL', () => { | ||
process.env.PIP_INDEX_URL = 'https://user:[email protected]/pypi/simple'; | ||
expect( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters