Skip to main content

Creates PRs for dependency updates in python projects

Project description

upgrade-dependencies

CLI tool to check for dependency updates in your python project. Automatically creates GitHub pull requests for dependencies you wish to update!

Usage

If you have uv installed, you can install upgrade-dependencies with

uv tool install upgrade-dependencies

You can then navigate to your project directory and execute:

uvx upgrade-dependencies [OPTIONS] COMMAND [ARGS]...

See the CLI documentation for information about how each command works.

Requirements

All python requirements are installed by default. To successfully use the update command the following executables must be installed into your shell:

  • git
  • gh, i.e. GitHub CLI - ensure you have already run gh auth login and added appropriate permissions

GitHub API Rate Limit

The GitHub API is used to fetch data for GitHub actions and pre-commit repos. Unauthenticated users have a rate limit of 60 requests per hour, whereas authenticated users have a rate limit of 5,000 requests per hour. You can use a GitHub personal access token to utilise this higher rate limit by setting the GH_PAT environment variable:

export GH_PAT=github_pat_xxx

Limitations

  • Currently only supports a single specifier, e.g. numpy~=2.0.2, not numpy>=2,<2.1
  • The project file structure is fixed and assumed, see Project File Structure.
  • GH actions must only use major version, e.g. actions/checkout@v4 not actions/checkout@v4.2.2
  • It is recommended to have a clean git before running update (a warning will be printed to the terminal if this is not the case).

Project File Structure

The following project file structure is assumed:

project
├── .github
│   └── workflows
│       └── *.yml
├── .pre-commit-config.yml
└── pyproject.toml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upgrade_dependencies-0.2.1.tar.gz (51.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

upgrade_dependencies-0.2.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file upgrade_dependencies-0.2.1.tar.gz.

File metadata

  • Download URL: upgrade_dependencies-0.2.1.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for upgrade_dependencies-0.2.1.tar.gz
Algorithm Hash digest
SHA256 32400ea1bdc9a4f9ee888ee071833e7cd4019b20c7498546b08424ff094eee82
MD5 e88f2c1fec49680e0f13ac364a31dd65
BLAKE2b-256 851021a2303347c988f3a53ad0be5b067448f5039a308ad14fa1200326009dd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for upgrade_dependencies-0.2.1.tar.gz:

Publisher: release.yml on robbievanleeuwen/upgrade-dependencies

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file upgrade_dependencies-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for upgrade_dependencies-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e14545e63d487cbe272c054f0bbd1a8d9b7e59724391e2bbedf7a003cdd1c6b
MD5 9b7a69e69797c309d2ab3927f544d449
BLAKE2b-256 cf956d0281ea125fb0898091161e8e7a9e1577cd96a124274e2f12a610715c02

See more details on using hashes here.

Provenance

The following attestation bundles were made for upgrade_dependencies-0.2.1-py3-none-any.whl:

Publisher: release.yml on robbievanleeuwen/upgrade-dependencies

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page