0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 23:51:55 +00:00
renovatebot_renovate/lib/modules/manager/pep621
2025-05-11 07:39:51 +00:00
..
__fixtures__ feat(pep621): add support for dependency-groups (PEP 735) (#32148) 2024-10-26 15:26:35 +00:00
processors fix(manager/pep621): use depName in lock update commands (#35855) 2025-05-11 07:39:51 +00:00
artifacts.spec.ts test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
artifacts.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
extract.spec.ts feat(pep621): extract python as a dependency (#35534) 2025-04-27 11:51:04 +00:00
extract.ts feat(pep621): extract python as a dependency (#35534) 2025-04-27 11:51:04 +00:00
index.ts feat(config): managerFilePatterns (#34615) 2025-05-04 08:30:24 +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 fix(pep621): make name for uv index optional (#35150) 2025-04-28 14:19:06 +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 fix(pep621): pep508 version spec with parens (#33632) 2025-01-17 15:26:29 +00:00
utils.ts fix(poetry): Template keys handling (#34460) 2025-03-03 17:35:16 +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.)