Print dependencies and optional dependencies from pyproject.toml files.
Project description
Print or save to a file, dependencies in a pyproject.toml file based on defined match operators. This is similar to a dependency ‘freeze’ but with added configurability.
This can be useful for finding and testing with the oldest versions of the dependencies for which support is declared in pyproject.toml.
Getting Started
Install and run:
pip install dlister dlister --help usage: dlister [-h] [-i INFILE] [-o OUTPUT] [-m [{<,<=,==,>=,>,~=} ...]] [--skip [SKIP ...]] [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--log-file LOG_FILE] [-v] [dependencies ...] Print Python Project Dependencies. positional arguments: dependencies path(s) to input file(s) (default: []) options: -h, --help show this help message and exit -i INFILE, --infile INFILE path(s) to input file(s) (default: pyproject.toml) -o OUTPUT, --output OUTPUT output file. (default: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>) -m [{<,<=,==,>=,>,~=} ...], --match-operators [{<,<=,==,>=,>,~=} ...] operators to upgrade. (default: ['==', '>=']) --skip [SKIP ...] dependencies to skip. (default: []) --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL} logging level. (default: WARNING) --log-file LOG_FILE pipe loggining to file instead of stdout. (default: None) -v, --version show program's version number and exit
Usage
Run:
dlister packaging==22.0 tomli==2.0.0; python_version < "3.11" dlister -m "<=" "==" packaging==24.1 tomli==2.0.2; python_version < "3.11" dlister test packaging==22.0 tomli==2.0.0; python_version < "3.11" brundle==1.1.0 isort==5.13.2 mypy==1.13.0 ruff==0.7.1 pytest==8.3.3 pytest-cov==5.0.0 dlister "*" packaging==22.0 tomli==2.0.0; python_version < "3.11" brundle==1.1.0 isort==5.13.2 mypy==1.13.0 ruff==0.7.1 pytest==8.3.3 pytest-cov==5.0.0 bouillon==2.6.0 build==1.2.2.post1 licensecheck==2024.3 uppd==1.3.0 twine==5.1.1 dlister test -o requirements.old
Development
Setup, run tests and release:
pip install .[dev] brundle pytest bouillon release 1.2.3
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
dlister-1.2.0.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file dlister-1.2.0.tar.gz
.
File metadata
- Download URL: dlister-1.2.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fa64e53986fddf960c21c1ed5967ea31578b10882a32544fa0130e9848451b1 |
|
MD5 | 32521abed5b1d01f690befc72e926f36 |
|
BLAKE2b-256 | 7b4db21a51caf6c3bd38b56dc02e4af8d4259e8eda56f016a57128f0a3af92b4 |
File details
Details for the file dlister-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: dlister-1.2.0-py3-none-any.whl
- Upload date:
- Size: 5.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 | c21474dc2d3f40c75ee0f9ca5a4a5994cfcfb8ad60d27a62b4f311caa6e01652 |
|
MD5 | ad99157fe41f5eded94149f5ce37c3f5 |
|
BLAKE2b-256 | a469195a4132f2209e01954ef19007ba9ebf6100a1b2471e7864596e708072b2 |