taze 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- taze-0.1.0/.github/workflows/ci.yml +26 -0
- taze-0.1.0/.github/workflows/publish.yml +49 -0
- taze-0.1.0/.gitignore +218 -0
- taze-0.1.0/LICENSE +21 -0
- taze-0.1.0/PKG-INFO +156 -0
- taze-0.1.0/README.md +145 -0
- taze-0.1.0/pyproject.toml +29 -0
- taze-0.1.0/taze/__init__.py +3 -0
- taze-0.1.0/taze/display.py +236 -0
- taze-0.1.0/taze/main.py +480 -0
- taze-0.1.0/taze/models.py +174 -0
- taze-0.1.0/taze/parsers.py +112 -0
- taze-0.1.0/taze/pypi.py +73 -0
- taze-0.1.0/taze/writers.py +57 -0
- taze-0.1.0/uv.lock +147 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
lint:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
15
|
+
|
|
16
|
+
- name: Install uv
|
|
17
|
+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
|
|
18
|
+
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
run: uv sync --frozen
|
|
21
|
+
|
|
22
|
+
- name: Check formatting
|
|
23
|
+
run: uv run ruff format --check .
|
|
24
|
+
|
|
25
|
+
- name: Lint
|
|
26
|
+
run: uv run ruff check .
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
release-build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
16
|
+
|
|
17
|
+
- name: Install uv
|
|
18
|
+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
|
|
19
|
+
|
|
20
|
+
- name: Build distributions
|
|
21
|
+
run: uv build
|
|
22
|
+
|
|
23
|
+
- name: Upload distributions
|
|
24
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
25
|
+
with:
|
|
26
|
+
name: release-dists
|
|
27
|
+
path: dist/
|
|
28
|
+
|
|
29
|
+
pypi-publish:
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
needs: release-build
|
|
32
|
+
permissions:
|
|
33
|
+
id-token: write # required for trusted publishing
|
|
34
|
+
|
|
35
|
+
environment:
|
|
36
|
+
name: pypi
|
|
37
|
+
url: https://pypi.org/project/taze/${{ github.event.release.tag_name }}
|
|
38
|
+
|
|
39
|
+
steps:
|
|
40
|
+
- name: Download distributions
|
|
41
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
42
|
+
with:
|
|
43
|
+
name: release-dists
|
|
44
|
+
path: dist/
|
|
45
|
+
|
|
46
|
+
- name: Publish to PyPI
|
|
47
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
48
|
+
with:
|
|
49
|
+
packages-dir: dist/
|
taze-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
# Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
# poetry.lock
|
|
109
|
+
# poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
# pdm.lock
|
|
116
|
+
# pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
# pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# Redis
|
|
135
|
+
*.rdb
|
|
136
|
+
*.aof
|
|
137
|
+
*.pid
|
|
138
|
+
|
|
139
|
+
# RabbitMQ
|
|
140
|
+
mnesia/
|
|
141
|
+
rabbitmq/
|
|
142
|
+
rabbitmq-data/
|
|
143
|
+
|
|
144
|
+
# ActiveMQ
|
|
145
|
+
activemq-data/
|
|
146
|
+
|
|
147
|
+
# SageMath parsed files
|
|
148
|
+
*.sage.py
|
|
149
|
+
|
|
150
|
+
# Environments
|
|
151
|
+
.env
|
|
152
|
+
.envrc
|
|
153
|
+
.venv
|
|
154
|
+
env/
|
|
155
|
+
venv/
|
|
156
|
+
ENV/
|
|
157
|
+
env.bak/
|
|
158
|
+
venv.bak/
|
|
159
|
+
|
|
160
|
+
# Spyder project settings
|
|
161
|
+
.spyderproject
|
|
162
|
+
.spyproject
|
|
163
|
+
|
|
164
|
+
# Rope project settings
|
|
165
|
+
.ropeproject
|
|
166
|
+
|
|
167
|
+
# mkdocs documentation
|
|
168
|
+
/site
|
|
169
|
+
|
|
170
|
+
# mypy
|
|
171
|
+
.mypy_cache/
|
|
172
|
+
.dmypy.json
|
|
173
|
+
dmypy.json
|
|
174
|
+
|
|
175
|
+
# Pyre type checker
|
|
176
|
+
.pyre/
|
|
177
|
+
|
|
178
|
+
# pytype static type analyzer
|
|
179
|
+
.pytype/
|
|
180
|
+
|
|
181
|
+
# Cython debug symbols
|
|
182
|
+
cython_debug/
|
|
183
|
+
|
|
184
|
+
# PyCharm
|
|
185
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
186
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
188
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
189
|
+
# .idea/
|
|
190
|
+
|
|
191
|
+
# Abstra
|
|
192
|
+
# Abstra is an AI-powered process automation framework.
|
|
193
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
194
|
+
# Learn more at https://abstra.io/docs
|
|
195
|
+
.abstra/
|
|
196
|
+
|
|
197
|
+
# Visual Studio Code
|
|
198
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
199
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
200
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
201
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
202
|
+
# .vscode/
|
|
203
|
+
# Temporary file for partial code execution
|
|
204
|
+
tempCodeRunnerFile.py
|
|
205
|
+
|
|
206
|
+
# Ruff stuff:
|
|
207
|
+
.ruff_cache/
|
|
208
|
+
|
|
209
|
+
# PyPI configuration file
|
|
210
|
+
.pypirc
|
|
211
|
+
|
|
212
|
+
# Marimo
|
|
213
|
+
marimo/_static/
|
|
214
|
+
marimo/_lsp/
|
|
215
|
+
__marimo__/
|
|
216
|
+
|
|
217
|
+
# Streamlit
|
|
218
|
+
.streamlit/secrets.toml
|
taze-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Keksi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
taze-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: taze
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: 🥬 Keep your Python deps fresh
|
|
5
|
+
License-File: LICENSE
|
|
6
|
+
Requires-Python: >=3.14
|
|
7
|
+
Requires-Dist: packaging>=26.2
|
|
8
|
+
Requires-Dist: rich>=15.0.0
|
|
9
|
+
Requires-Dist: typer>=0.26.7
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# taze 🥬
|
|
13
|
+
|
|
14
|
+
Keep your Python dependencies fresh.
|
|
15
|
+
|
|
16
|
+
Inspired by [taze](https://github.com/antfu-collective/taze) for Node.js — ported to the Python ecosystem with support for `pyproject.toml` and `requirements.txt`.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Features
|
|
21
|
+
|
|
22
|
+
- Checks all dependencies against PyPI in parallel
|
|
23
|
+
- Shows the bump level (patch / minor / **MAJOR**) with colors
|
|
24
|
+
- Displays release age for both the current and latest version
|
|
25
|
+
- Supports `pyproject.toml` (PEP 508, PEP 735, uv) and `requirements*.txt`
|
|
26
|
+
- Writes updated version constraints back to the file (`-w`)
|
|
27
|
+
- Runs `uv sync` after writing (`-i`)
|
|
28
|
+
- Interactive package selection (`-I`)
|
|
29
|
+
- Recursive monorepo scanning (`-r`)
|
|
30
|
+
- Pre-release support (`newest` / `next` mode)
|
|
31
|
+
- Regex filtering for include / exclude
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
uv tool install taze
|
|
39
|
+
# or
|
|
40
|
+
pip install taze
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Usage
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
taze [mode] [options]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Modes
|
|
52
|
+
|
|
53
|
+
| Mode | What it shows |
|
|
54
|
+
|-----------|----------------------------------------|
|
|
55
|
+
| `default` | All stable updates (default) |
|
|
56
|
+
| `major` | Same as default |
|
|
57
|
+
| `minor` | Minor and patch updates only |
|
|
58
|
+
| `patch` | Patch updates only |
|
|
59
|
+
| `latest` | All stable updates |
|
|
60
|
+
| `stable` | All stable updates |
|
|
61
|
+
| `newest` | All updates including pre-releases |
|
|
62
|
+
| `next` | Same as newest |
|
|
63
|
+
|
|
64
|
+
### Examples
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
# Check everything in the current directory
|
|
68
|
+
taze
|
|
69
|
+
|
|
70
|
+
# Only show minor and patch updates
|
|
71
|
+
taze minor
|
|
72
|
+
|
|
73
|
+
# Write patch updates back to pyproject.toml
|
|
74
|
+
taze patch -w
|
|
75
|
+
|
|
76
|
+
# Write all updates and run uv sync
|
|
77
|
+
taze -w -i
|
|
78
|
+
|
|
79
|
+
# Interactive — pick which packages to update
|
|
80
|
+
taze -I
|
|
81
|
+
|
|
82
|
+
# Include pre-releases
|
|
83
|
+
taze newest
|
|
84
|
+
|
|
85
|
+
# Scan all subdirectories (monorepo)
|
|
86
|
+
taze -r
|
|
87
|
+
|
|
88
|
+
# Only check specific packages
|
|
89
|
+
taze -n requests,httpx
|
|
90
|
+
|
|
91
|
+
# Skip packages matching a pattern
|
|
92
|
+
taze -x /^pytest/
|
|
93
|
+
|
|
94
|
+
# Sort by largest update first
|
|
95
|
+
taze --sort diff-desc
|
|
96
|
+
|
|
97
|
+
# Machine-readable JSON output
|
|
98
|
+
taze --json
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Options
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
-w, --write Write updates back to file
|
|
105
|
+
-i, --install Run uv sync after writing (implies -w)
|
|
106
|
+
-u, --update Alias for --install
|
|
107
|
+
-I, --interactive Choose which packages to update interactively
|
|
108
|
+
-r, --recursive Scan subdirectories for pyproject.toml / requirements*.txt
|
|
109
|
+
-a, --all Show up-to-date packages too
|
|
110
|
+
-n, --include <deps> Only check these packages (comma-separated or /regex/)
|
|
111
|
+
-x, --exclude <deps> Skip these packages (comma-separated or /regex/)
|
|
112
|
+
-C, --cwd <path> Working directory
|
|
113
|
+
-s, --silent No output
|
|
114
|
+
-v, --version Show version
|
|
115
|
+
--sort <type> Sort output: name-asc | name-desc | diff-asc | diff-desc
|
|
116
|
+
--fail-on-outdated Exit with code 1 if any outdated dependencies are found
|
|
117
|
+
--concurrency <n> Number of concurrent PyPI requests (default: 10)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Output
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
📦 pyproject.toml /home/user/myproject/pyproject.toml
|
|
126
|
+
|
|
127
|
+
dependencies 3 outdated
|
|
128
|
+
packaging ~8mo >=25.2 → >=26.2 ~3mo MAJOR
|
|
129
|
+
rich ~4mo >=14.0.0 → >=15.0.0 ~3d MAJOR
|
|
130
|
+
typer ~6mo >=0.25.7 → >=0.26.7 ~3d minor
|
|
131
|
+
|
|
132
|
+
group:dev 1 outdated
|
|
133
|
+
ruff ~8mo >=0.14.1 → >=0.15.19 ~1d minor
|
|
134
|
+
|
|
135
|
+
Run taze -w to write 4 update(s) to pyproject.toml
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The age columns show how old the **current** pinned version is and how recently the **latest** version was released — green for < 4 weeks, yellow for < 6 months, red for older.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Supported file formats
|
|
143
|
+
|
|
144
|
+
| File | Section |
|
|
145
|
+
|-------------------------|------------------------------------|
|
|
146
|
+
| `pyproject.toml` | `[project] dependencies` |
|
|
147
|
+
| `pyproject.toml` | `[project.optional-dependencies.*]`|
|
|
148
|
+
| `pyproject.toml` | `[dependency-groups.*]` (PEP 735) |
|
|
149
|
+
| `pyproject.toml` | `[tool.uv.dev-dependencies]` |
|
|
150
|
+
| `requirements*.txt` | Standard pip format |
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## License
|
|
155
|
+
|
|
156
|
+
MIT
|
taze-0.1.0/README.md
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# taze 🥬
|
|
2
|
+
|
|
3
|
+
Keep your Python dependencies fresh.
|
|
4
|
+
|
|
5
|
+
Inspired by [taze](https://github.com/antfu-collective/taze) for Node.js — ported to the Python ecosystem with support for `pyproject.toml` and `requirements.txt`.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- Checks all dependencies against PyPI in parallel
|
|
12
|
+
- Shows the bump level (patch / minor / **MAJOR**) with colors
|
|
13
|
+
- Displays release age for both the current and latest version
|
|
14
|
+
- Supports `pyproject.toml` (PEP 508, PEP 735, uv) and `requirements*.txt`
|
|
15
|
+
- Writes updated version constraints back to the file (`-w`)
|
|
16
|
+
- Runs `uv sync` after writing (`-i`)
|
|
17
|
+
- Interactive package selection (`-I`)
|
|
18
|
+
- Recursive monorepo scanning (`-r`)
|
|
19
|
+
- Pre-release support (`newest` / `next` mode)
|
|
20
|
+
- Regex filtering for include / exclude
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
uv tool install taze
|
|
28
|
+
# or
|
|
29
|
+
pip install taze
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
taze [mode] [options]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Modes
|
|
41
|
+
|
|
42
|
+
| Mode | What it shows |
|
|
43
|
+
|-----------|----------------------------------------|
|
|
44
|
+
| `default` | All stable updates (default) |
|
|
45
|
+
| `major` | Same as default |
|
|
46
|
+
| `minor` | Minor and patch updates only |
|
|
47
|
+
| `patch` | Patch updates only |
|
|
48
|
+
| `latest` | All stable updates |
|
|
49
|
+
| `stable` | All stable updates |
|
|
50
|
+
| `newest` | All updates including pre-releases |
|
|
51
|
+
| `next` | Same as newest |
|
|
52
|
+
|
|
53
|
+
### Examples
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
# Check everything in the current directory
|
|
57
|
+
taze
|
|
58
|
+
|
|
59
|
+
# Only show minor and patch updates
|
|
60
|
+
taze minor
|
|
61
|
+
|
|
62
|
+
# Write patch updates back to pyproject.toml
|
|
63
|
+
taze patch -w
|
|
64
|
+
|
|
65
|
+
# Write all updates and run uv sync
|
|
66
|
+
taze -w -i
|
|
67
|
+
|
|
68
|
+
# Interactive — pick which packages to update
|
|
69
|
+
taze -I
|
|
70
|
+
|
|
71
|
+
# Include pre-releases
|
|
72
|
+
taze newest
|
|
73
|
+
|
|
74
|
+
# Scan all subdirectories (monorepo)
|
|
75
|
+
taze -r
|
|
76
|
+
|
|
77
|
+
# Only check specific packages
|
|
78
|
+
taze -n requests,httpx
|
|
79
|
+
|
|
80
|
+
# Skip packages matching a pattern
|
|
81
|
+
taze -x /^pytest/
|
|
82
|
+
|
|
83
|
+
# Sort by largest update first
|
|
84
|
+
taze --sort diff-desc
|
|
85
|
+
|
|
86
|
+
# Machine-readable JSON output
|
|
87
|
+
taze --json
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Options
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
-w, --write Write updates back to file
|
|
94
|
+
-i, --install Run uv sync after writing (implies -w)
|
|
95
|
+
-u, --update Alias for --install
|
|
96
|
+
-I, --interactive Choose which packages to update interactively
|
|
97
|
+
-r, --recursive Scan subdirectories for pyproject.toml / requirements*.txt
|
|
98
|
+
-a, --all Show up-to-date packages too
|
|
99
|
+
-n, --include <deps> Only check these packages (comma-separated or /regex/)
|
|
100
|
+
-x, --exclude <deps> Skip these packages (comma-separated or /regex/)
|
|
101
|
+
-C, --cwd <path> Working directory
|
|
102
|
+
-s, --silent No output
|
|
103
|
+
-v, --version Show version
|
|
104
|
+
--sort <type> Sort output: name-asc | name-desc | diff-asc | diff-desc
|
|
105
|
+
--fail-on-outdated Exit with code 1 if any outdated dependencies are found
|
|
106
|
+
--concurrency <n> Number of concurrent PyPI requests (default: 10)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Output
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
📦 pyproject.toml /home/user/myproject/pyproject.toml
|
|
115
|
+
|
|
116
|
+
dependencies 3 outdated
|
|
117
|
+
packaging ~8mo >=25.2 → >=26.2 ~3mo MAJOR
|
|
118
|
+
rich ~4mo >=14.0.0 → >=15.0.0 ~3d MAJOR
|
|
119
|
+
typer ~6mo >=0.25.7 → >=0.26.7 ~3d minor
|
|
120
|
+
|
|
121
|
+
group:dev 1 outdated
|
|
122
|
+
ruff ~8mo >=0.14.1 → >=0.15.19 ~1d minor
|
|
123
|
+
|
|
124
|
+
Run taze -w to write 4 update(s) to pyproject.toml
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
The age columns show how old the **current** pinned version is and how recently the **latest** version was released — green for < 4 weeks, yellow for < 6 months, red for older.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Supported file formats
|
|
132
|
+
|
|
133
|
+
| File | Section |
|
|
134
|
+
|-------------------------|------------------------------------|
|
|
135
|
+
| `pyproject.toml` | `[project] dependencies` |
|
|
136
|
+
| `pyproject.toml` | `[project.optional-dependencies.*]`|
|
|
137
|
+
| `pyproject.toml` | `[dependency-groups.*]` (PEP 735) |
|
|
138
|
+
| `pyproject.toml` | `[tool.uv.dev-dependencies]` |
|
|
139
|
+
| `requirements*.txt` | Standard pip format |
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## License
|
|
144
|
+
|
|
145
|
+
MIT
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "taze"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "🥬 Keep your Python deps fresh"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.14"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"packaging>=26.2",
|
|
9
|
+
"rich>=15.0.0",
|
|
10
|
+
"typer>=0.26.7",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
[project.scripts]
|
|
14
|
+
taze = "taze.main:app"
|
|
15
|
+
|
|
16
|
+
[dependency-groups]
|
|
17
|
+
dev = [
|
|
18
|
+
"ruff>=0.15.19",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[build-system]
|
|
22
|
+
requires = ["hatchling"]
|
|
23
|
+
build-backend = "hatchling.build"
|
|
24
|
+
|
|
25
|
+
[tool.hatch.build.targets.wheel]
|
|
26
|
+
packages = ["taze"]
|
|
27
|
+
|
|
28
|
+
[tool.ruff.lint]
|
|
29
|
+
extend-select = ["RUF","I", "UP", "E", "F"]
|