0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/modules/manager/pep621
2024-12-06 20:30:13 +00:00
..
__fixtures__ feat(pep621): add support for dependency-groups (PEP 735) (#32148) 2024-10-26 15:26:35 +00:00
processors fix(pep621): handle dependency-groups (PEP 735) in pdm lockfile updates (#32952) 2024-12-06 20:30:13 +00:00
artifacts.spec.ts fix(pdm): change pdm update strategy to eager (#29183) 2024-05-21 20:32:29 +00:00
artifacts.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
extract.spec.ts fix(manager/uv): apply normalization on sources (#31297) 2024-10-29 18:56:50 +00:00
extract.ts feat(pep621): add support for dependency-groups (PEP 735) (#32148) 2024-10-26 15:26:35 +00:00
index.ts docs(managers): add missing url and displayName (#32621) 2024-12-01 08:47:27 +00:00
readme.md feat(pep621): set Git insteadOf directives when updating pdm/uv locks (#32378) 2024-11-14 06:13:12 +00:00
schema.ts feat(manager/pep621): add support for uv index configuration (#32771) 2024-11-29 08:49:37 +00:00
types.ts fix(managers/pep621): replace missing depName group with managerData (#31181) 2024-09-04 05:04:29 +00:00
update.spec.ts feat(manager/pep621): add support for bumpVersion option (#26361) 2023-12-19 08:50:34 +00:00
update.ts chore(deps): update typescript-eslint monorepo to v8 (major) (#30750) 2024-08-14 10:33:02 +00:00
utils.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
utils.ts feat(pep621): add support for dependency-groups (PEP 735) (#32148) 2024-10-26 15:26:35 +00:00

This manager supports updating dependencies inside pyproject.toml files.

In addition to standard dependencies, these toolsets are also supported:

  • pdm (including pdm.lock files)
  • uv (including uv.lock files)
  • hatch

Available depTypes:

  • project.dependencies
  • project.optional-dependencies
  • dependency-groups
  • build-system.requires
  • tool.pdm.dev-dependencies
  • tool.uv.dev-dependencies
  • tool.uv.sources
  • tool.hatch.envs.<env-name>

Private Modules Authentication

Before running the pdm or uv commands to update the pdm.lock or uv.lock respectively, Renovate exports git insteadOf directives in environment variables.

Renovate uses this logic before it updates any "artifacts":

The token from the hostRules entry matching hostType=github and matchHost=api.github.com is added as the default authentication for github.com. For those running against github.com, this token will be the default platform token.

Next, all hostRules with both a token or username/password and matchHost will be fetched, except for any github.com one from above.

Rules from this list are converted to environment variable directives if they match any of these characteristics:

  • No hostType is defined, or
  • hostType is pep621, or
  • hostType is a platform (github, gitlab, azure, etc.)