Automated Dependency Updates for PEP 621
Categories: python
Renovate supports updating PEP 621 dependencies.
File Matching¶
By default, Renovate will check any files matching the following regular expression: /(^|/)pyproject\.toml$/.
For details on how to extend a manager's managerFilePatterns value, please follow this link.
Supported datasources¶
This manager supports extracting the following datasources: pypi.
Default config¶
{
"managerFilePatterns": [
"/(^|/)pyproject\\.toml$/"
]
}
Additional Information¶
This manager supports updating dependencies inside pyproject.toml files.
In addition to standard dependencies, these toolsets are also supported:
pdm(includingpdm.lockfiles)uv(includinguv.lockfiles anduvworkspaces)hatch
Available depTypes:
project.dependenciesproject.optional-dependenciesdependency-groupsbuild-system.requirestool.pdm.dev-dependenciestool.uv.dev-dependenciestool.uv.sourcestool.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
hostTypeis defined, or hostTypeispep621, orhostTypeis a platform (github,gitlab,azure, etc.)