Update dependencies and optional dependencies in pyproject.toml files.
Project description
Update dependencies and optional dependencies in pyproject.toml files.
Getting Started
Install and run:
pip install uppd uppd --help usage: uppd [-h] [-i INFILE] [-o OUTFILE] [-m [{<,<=,==,>=,>,~=} ...]] [--skip [SKIP ...]] [--dev [DEV ...]] [--pre [PRE ...]] [--post [POST ...]] [--index-url INDEX_URL] [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--log-file LOG_FILE] [--dry-run] [-v] Update Python Project Dependencies. options: -h, --help show this help message and exit -i INFILE, --infile INFILE path(s) to input file(s) (default: pyproject.toml) -o OUTFILE, --outfile OUTFILE path(s) to output file(s). (default: []) -m [{<,<=,==,>=,>,~=} ...], --match-operators [{<,<=,==,>=,>,~=} ...] operators to upgrade. (default: ['==', '<=', '~=']) --skip [SKIP ...] dependencies to skip upgrade. (default: []) --dev [DEV ...] dependencies to upgrade to dev release. (default: []) --pre [PRE ...] dependencies to upgrade to pre release. (default: []) --post [POST ...] dependencies to upgrade to post release. (default: ['*']) --index-url INDEX_URL base URL of the Python Package Index. (default: https://pypi.org) --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL} logging level. (default: INFO) --log-file LOG_FILE pipe loggining to file instead of stdout. (default: None) --dry-run do not save changes to output file(s). (default: False) -v, --version show program's version number and exit
Usage
Set inputs and output files:
uppd -i dev/pyproject.toml uppd -i pyproject.toml -o pyproject.toml.updated
Skip dependencies:
uppd --skip foo bar
Allow upgrade to pre releases:
uppd --pre foo bar
The following settings (with defaults) can be overwritten in the infile:
[tool.uppd] match_operators = ["==", "<=", "~="] skip = [] dev = [] pre = [] post = ["*"] index_url = "https://pypi.org"
Development
Setup, run tests and release:
pip install -e .[dev] brundle pytest bouillon release
Credits
This project aims to enable a similar workflow as pur for requirements.txt files
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uppd-1.4.0.tar.gz
(9.9 kB
view details)
Built Distribution
uppd-1.4.0-py3-none-any.whl
(6.9 kB
view details)
File details
Details for the file uppd-1.4.0.tar.gz
.
File metadata
- Download URL: uppd-1.4.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9618acf3d0df31c3e4c17fbeb2e412fd5f80203ba8c292faa174d19896b23fe4 |
|
MD5 | f41e0ad57b6aca27828dc38b18ea6bba |
|
BLAKE2b-256 | 1e09e41378e3f686773800b0c476fba7899f6177a033f478b8d04b1fa9cb61cc |
File details
Details for the file uppd-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: uppd-1.4.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2d1ab6b109b44271920680fe0aae5d436d1fe500046c0af5d177643354f31a |
|
MD5 | a5437f062d03e92c1729ad0296667156 |
|
BLAKE2b-256 | 06fe4e69a9c0329b1afce4e341ecea9b6e506d882056dc15192f7d3883e973dc |