bump-deps-index
Update pinned Python and JavaScript dependencies against their package indexes while preserving each file's layout.
Install
pipx install bump-deps-index
Use
Run the command in a project root to update every supported file it finds:
bump-deps-index
Pass package specifications to inspect them without editing files:
bump-deps-index 'httpx>=0.27' prettier@3.0.0
Use --file to limit updates. Supported inputs include pyproject.toml, tox.toml, tox.ini, setup.cfg,
package.json, .pre-commit-config.yaml, Python scripts with PEP 723 metadata,
and requirements files. Without --file you get the files whose names start with requirements or constraints and
end in .txt or .in; with --file you can name any such file, such as dev-requirements.txt. You get a non-zero
exit code when you have no file to update.
Without --index-url you get the index from PIP_INDEX_URL, UV_DEFAULT_INDEX or UV_INDEX_URL, then the default
index of the nearest uv.toml or [tool.uv] table, then index-url from your pip
configuration, then your user uv.toml. With an --index-url or -i line in a requirements file, or in a file it
includes with -r, you get updates from that index. For a named uv index you send the
credentials from UV_INDEX_<NAME>_USERNAME and UV_INDEX_<NAME>_PASSWORD.
For the pyproject.toml of a project, with the settings of its workspace root, and for a PEP 723 script with its own
[tool.uv] table, you follow uv and take a package from the first index that has it: the indexes of UV_INDEX and
UV_EXTRA_INDEX_URL, then the [[tool.uv.index]] entries that are neither default nor explicit, then the default
index. For a package [tool.uv.sources] pins to an index, you query that index alone; for one from git, a path or a
URL, you keep the spec.
For the other Python files you follow pip and merge the releases of the default index with those of the extra indexes
from PIP_EXTRA_INDEX_URL, extra-index-url in your pip configuration and --extra-index-url lines.
Without --npm-registry you get NPM_CONFIG_REGISTRY, then registry from the .npmrc in the working directory, then
from your user .npmrc. From those files you get the @scope:registry of a scoped package and the _authToken,
_auth or username and _password credentials of each registry. As npm does, you get
${NAME} from the environment, and keep it as written when NAME is unset; you read ${NAME?} as empty then.
Set [project].requires-python in a pyproject.toml and you get Python updates from distributions that support the
oldest interpreter you allow there, for files in that directory and its subdirectories. For a PEP 723 script with its
own requires-python, you get updates for that range. Without either field, you get the newest release on the index.
For a package you name on the command line, you get the requires-python floor and the [tool.uv.sources] index pins
of the project in the working directory. By default you accept pre-releases in .pre-commit-config.yaml and stable
releases in the other files; -p yes or -p no sets one rule for all of them.
For an == pin you move to the highest release the other specifiers allow, or leave the pin as written, and you keep
wildcards at their depth, so you go from ==1.* to ==2.*. You move a pin with a local label, such as ==1.0+cpu,
only to a release with the same label. On ~= bounds you keep the precision you wrote, so you go from ~=1.4 to
~=1.9. You keep hashed requirements as you wrote them, since you would need new hashes for a new version.
On npm ranges you stay inside the range, so ^1.2.0 goes to the newest 1.x release and ~1.2.0 to the newest
1.2.x. You get the newest release for >=1.2.0 and for a full or partial version, and you leave ranges such as
1 || 2, latest or an empty one untouched. As npm does, you get the latest dist-tag over a newer release when it
fits the range. In package.json you get updates for dependencies, devDependencies and optionalDependencies.
With --exclude-newer you only move to releases uploaded before the cutoff, and the flag beats every other source.
--no-exclude-newer drops every cutoff, the per-package and per-group ones too, beating every other source as well, and
it cannot be combined with --exclude-newer, --exclude-newer-package or --exclude-newer-group.
Without a flag you get the cutoff from PIP_UPLOADED_PRIOR_TO, then UV_EXCLUDE_NEWER (the variable uv reads for its
lock step), then exclude-newer in the nearest uv.toml or [tool.uv] table, then uploaded-prior-to in your pip
configuration, then exclude-newer in your user uv.toml. The first one set wins. An exclude-newer = false in a uv
file disables the cutoff and stops the lookup, so the pip configuration and the user uv.toml are not read; an
environment variable still ranks above it.
With --exclude-newer-package NAME=CUTOFF a package takes its own cutoff in place of the global one, in any form
--exclude-newer accepts, and NAME=false lifts the cutoff for that package, so you can expedite one release. The flag
repeats, and it beats the same package in the settings: an exclude-newer-package table in the nearest uv.toml or
[tool.uv] table that names packages, and in your user uv.toml for the packages the project does not name. A package
in both takes the project's entry. Python names match after PEP 503 normalization,
so Foo_Bar and foo-bar are one package, and npm names match exactly.
With --exclude-newer-group GROUP=CUTOFF a PEP 735 dependency group takes its own
cutoff, in any form --exclude-newer accepts, and GROUP=false lifts the global cutoff for it. The name project
stands for the project's own dependencies and extras, so
--exclude-newer-group project=false --exclude-newer-group test=false keeps a library's direct and test dependencies
fresh while its build and tool requirements stay cooled. Each requirement takes the group it is listed under:
[project] dependencies, extras, the install requirements and extras of setup.cfg, and the dependencies of a PEP 723
script are project, and each [dependency-groups] table is its own group. Requirements outside any group, such as
build requirements, requirements files, tox, pre-commit hooks and package.json, keep the global cutoff. A package flag
or table entry wins over a group cutoff, which wins over the global one. Group names match after PEP 503 normalization,
as Test and test are one group. Nothing in the settings files sets group cutoffs, as uv has no equivalent. A
requirement that several groups list with different cutoffs takes the stricter one, the earliest cutoff among them, and
the run prints a notice. It is uncooled only when every group leaves it uncooled, and every occurrence takes the same
value, since a rewrite edits the text of a requirement rather than one line.
The cutoff is an RFC 3339 timestamp, a local date, a datetime without an
offset (read as local time), or a duration counted back from now, such as P7D or 7 days. As uv does, you skip a
file without an upload time. You read upload times from the PEP 700 fields of the
JSON simple API and from the time map of the npm registry, so an index that serves only HTML offers no candidates
under a cutoff.
A requirement already above the newest eligible release keeps its floor. Pre-commit hooks
take their versions from PyPI or npm, so the cutoff applies to their dependencies too.
In .pre-commit-config.yaml, you get PyPI updates for python hooks and npm updates for node hooks, and no
updates for hooks in other languages. For a remote hook without a language, you get the language from the
.pre-commit-hooks.yaml of its GitHub or GitLab repository at rev; when
that file is out of reach, you get a guess from the shape of the dependency. You see changes on disk for files with a
new version, with their line endings intact.
See the documentation for all options.
Metadata
Release files for bump-deps-index 1.19.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bump_deps_index-1.19.0.tar.gz | 116.5 kB | With provenance | Details for bump_deps_index-1.19.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bump_deps_index-1.19.0-py3-none-any.whl | Python 3 | none | any | Details for bump_deps_index-1.19.0-py3-none-any.whl |
Total release size: 174.9 kB
Release files / bump_deps_index-1.19.0.tar.gz
| Download URL | bump_deps_index-1.19.0.tar.gz |
|---|---|
| Size | 116.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b38fff069c6c53822a564b886aed0b773b318aa5a0ca769b248ca8f85044f1f5
|
|
BLAKE2b-256 checksum How to use checksums |
d77d398b9076f21d548429d9dd73c06e553cf3f1dc849dffdd4f0ff936d98c86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / bump_deps_index-1.19.0-py3-none-any.whl
| Download URL | bump_deps_index-1.19.0-py3-none-any.whl |
|---|---|
| Size | 58.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6d974196380b80dbfbc67b24f282102565fe6b275ef943db61eb512e412ce18
|
|
BLAKE2b-256 checksum How to use checksums |
35fcbfcd64fe93fb5243d25706844705b824d10280f7339a188ab46888ffb250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for bump-deps-index 1.19.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for bump_deps_index-1.19.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.