uv-upsync 2.4.2__tar.gz → 2.4.3__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.
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/.github/workflows/ci.yaml +8 -5
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/.github/workflows/release.yaml +22 -9
- uv_upsync-2.4.2/CLAUDE.md → uv_upsync-2.4.3/AGENTS.md +2 -5
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/CHANGELOG.md +31 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/CONTRIBUTING.md +17 -10
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/PKG-INFO +4 -4
- uv_upsync-2.4.3/justfile +37 -0
- uv_upsync-2.4.3/pyproject.toml +114 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/__main__.py +1 -2
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/config.py +1 -2
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/parsers.py +4 -8
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/pypi.py +1 -2
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/report.py +1 -2
- uv_upsync-2.4.3/uv.lock +806 -0
- uv_upsync-2.4.2/AGENTS.md +0 -1
- uv_upsync-2.4.2/justfile +0 -23
- uv_upsync-2.4.2/pyproject.toml +0 -97
- uv_upsync-2.4.2/uv.lock +0 -535
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/.editorconfig +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/.gitignore +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/.pre-commit-hooks.yaml +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/.python-version +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/CODE_OF_CONDUCT.md +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/LICENSE +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/README.md +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/SECURITY.md +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/action.yaml +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/assets/logo.svg +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/cliff.toml +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/__init__.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/commands.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/exceptions.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/logging.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/src/uv_upsync/uv.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/__init__.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/conftest.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/test_commands.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/test_config.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/test_exceptions.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/test_logging.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/test_parsers.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/test_pypi.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/test_report.py +0 -0
- {uv_upsync-2.4.2 → uv_upsync-2.4.3}/tests/test_uv.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
name: CI
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
+
pull_request:
|
|
4
5
|
push:
|
|
5
6
|
branches: ["main"]
|
|
6
|
-
pull_request:
|
|
7
7
|
workflow_dispatch:
|
|
8
8
|
|
|
9
9
|
concurrency:
|
|
@@ -14,7 +14,7 @@ permissions:
|
|
|
14
14
|
contents: read
|
|
15
15
|
|
|
16
16
|
jobs:
|
|
17
|
-
ci:
|
|
17
|
+
ci-package:
|
|
18
18
|
runs-on: ubuntu-24.04-arm
|
|
19
19
|
steps:
|
|
20
20
|
- name: Checkout repository
|
|
@@ -29,10 +29,13 @@ jobs:
|
|
|
29
29
|
python-version: "3.14"
|
|
30
30
|
|
|
31
31
|
- name: Install dependencies
|
|
32
|
-
run: just install
|
|
32
|
+
run: just install-package
|
|
33
33
|
|
|
34
34
|
- name: Run linters
|
|
35
|
-
run: just lint
|
|
35
|
+
run: just lint-package
|
|
36
|
+
|
|
37
|
+
- name: Run audit
|
|
38
|
+
run: just audit-package
|
|
36
39
|
|
|
37
40
|
- name: Run tests
|
|
38
|
-
run: just test
|
|
41
|
+
run: just test-package
|
|
@@ -40,10 +40,15 @@ jobs:
|
|
|
40
40
|
|
|
41
41
|
- name: Resolve version
|
|
42
42
|
id: version
|
|
43
|
+
env:
|
|
44
|
+
INPUT_VERSION: ${{ github.event.inputs.version }}
|
|
43
45
|
run: |
|
|
44
|
-
if [[ -n "$
|
|
45
|
-
VERSION="${
|
|
46
|
-
|
|
46
|
+
if [[ -n "$INPUT_VERSION" ]]; then
|
|
47
|
+
VERSION="${INPUT_VERSION#v}"
|
|
48
|
+
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
49
|
+
echo "version '${INPUT_VERSION}' is not MAJOR.MINOR.PATCH" >&2
|
|
50
|
+
exit 1
|
|
51
|
+
fi
|
|
47
52
|
else
|
|
48
53
|
VERSION=$(git-cliff --bumped-version)
|
|
49
54
|
VERSION="${VERSION#v}"
|
|
@@ -71,6 +76,15 @@ jobs:
|
|
|
71
76
|
git tag "v${VERSION}"
|
|
72
77
|
git push origin main --tags
|
|
73
78
|
|
|
79
|
+
- name: Generate release notes
|
|
80
|
+
run: git-cliff --latest --strip header --output notes.md
|
|
81
|
+
|
|
82
|
+
- name: Upload release notes
|
|
83
|
+
uses: actions/upload-artifact@v7
|
|
84
|
+
with:
|
|
85
|
+
name: notes
|
|
86
|
+
path: notes.md
|
|
87
|
+
|
|
74
88
|
release:
|
|
75
89
|
needs: tag
|
|
76
90
|
runs-on: ubuntu-24.04-arm
|
|
@@ -81,19 +95,18 @@ jobs:
|
|
|
81
95
|
ref: ${{ needs.tag.outputs.tag }}
|
|
82
96
|
fetch-depth: 0
|
|
83
97
|
|
|
84
|
-
- name:
|
|
85
|
-
uses:
|
|
86
|
-
id: changelog
|
|
98
|
+
- name: Download release notes
|
|
99
|
+
uses: actions/download-artifact@v8
|
|
87
100
|
with:
|
|
88
|
-
|
|
101
|
+
name: notes
|
|
89
102
|
|
|
90
103
|
- name: Create GitHub Release
|
|
91
104
|
uses: softprops/action-gh-release@v3
|
|
92
105
|
with:
|
|
93
106
|
tag_name: ${{ needs.tag.outputs.tag }}
|
|
94
|
-
|
|
107
|
+
body_path: notes.md
|
|
95
108
|
|
|
96
|
-
publish:
|
|
109
|
+
publish-pypi:
|
|
97
110
|
needs: [tag, release]
|
|
98
111
|
runs-on: ubuntu-24.04-arm
|
|
99
112
|
permissions:
|
|
@@ -51,10 +51,9 @@ The module boundaries that carry a rule (the rest is `ls src/uv_upsync/`):
|
|
|
51
51
|
|
|
52
52
|
## Commands
|
|
53
53
|
|
|
54
|
-
`just --list` and `CONTRIBUTING.md` carry the recipe table; CI runs the same recipes, so a green `just check` locally means a green CI.
|
|
54
|
+
`just --list` and `CONTRIBUTING.md` carry the recipe table; CI runs the same recipes, so a green `just check` locally means a green CI. One thing the table does not say:
|
|
55
55
|
|
|
56
|
-
- `just
|
|
57
|
-
- `just update` runs `uvx uv-upsync` against this repo - the tool eats its own dogfood here
|
|
56
|
+
- `just update` runs `uv run uv-upsync` against this repo, so it uses the working tree's own version of the tool
|
|
58
57
|
|
|
59
58
|
Run the CLI itself with `uv run uv-upsync ...` (entry point `uv_upsync.__main__:main`).
|
|
60
59
|
|
|
@@ -69,5 +68,3 @@ Run the CLI itself with `uv run uv-upsync ...` (entry point `uv_upsync.__main__:
|
|
|
69
68
|
Fully automated - **do not bump the version in `pyproject.toml` by hand.** The `Release` workflow is `workflow_dispatch` only; git-cliff derives the next version from the commit history (or takes the `version` input), `uv version` writes it, `CHANGELOG.md` is regenerated, the tag is pushed, and PyPI publication goes through trusted publishing.
|
|
70
69
|
|
|
71
70
|
This makes **Conventional Commits load-bearing**: `cliff.toml` sets `filter_unconventional = true`, so a commit that doesn't match a known prefix is dropped from the changelog entirely, and `features_always_bump_minor` / `breaking_always_bump_major` decide the version. Use `<type>(<scope>): <subject>` with scopes like `parsers`, `pypi`, `config`, `cli`. `CONTRIBUTING.md` has the full prefix table, the branch pattern and the CI/CD workflow table.
|
|
72
|
-
|
|
73
|
-
`AGENTS.md` is a symlink to this file - edit `CLAUDE.md`, never the symlink.
|
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [2.4.3] - 2026-11-20
|
|
6
|
+
|
|
7
|
+
### Build
|
|
8
|
+
|
|
9
|
+
- **justfile**: Split recipes into package parts
|
|
10
|
+
- **deps**: Upgrade python dependencies
|
|
11
|
+
- **justfile**: Add an audit recipe for known dependency vulnerabilities
|
|
12
|
+
- Standardize the pyproject configuration
|
|
13
|
+
- Standardize just recipes
|
|
14
|
+
- Drop pyupgrade in favor of ruff
|
|
15
|
+
- **deps**: Update dependencies
|
|
16
|
+
|
|
17
|
+
### CI/CD
|
|
18
|
+
|
|
19
|
+
- Fold audit into ci and standardize the release
|
|
20
|
+
|
|
21
|
+
### Documentation
|
|
22
|
+
|
|
23
|
+
- Say just update runs the working tree's uv-upsync
|
|
24
|
+
- Describe the standardized recipes
|
|
25
|
+
- Describe format without pyupgrade
|
|
26
|
+
- Move agent instructions from CLAUDE.md to AGENTS.md
|
|
27
|
+
|
|
28
|
+
### Miscellaneous
|
|
29
|
+
|
|
30
|
+
- Put docstring summaries on the first line
|
|
31
|
+
|
|
5
32
|
## [2.4.2] - 2026-09-20
|
|
6
33
|
|
|
7
34
|
### Bug fixes
|
|
@@ -66,6 +93,10 @@ All notable changes to this project will be documented in this file.
|
|
|
66
93
|
|
|
67
94
|
- **justfile**: Standardize recipe names and ordering
|
|
68
95
|
|
|
96
|
+
### Release
|
|
97
|
+
|
|
98
|
+
- V2.4.2
|
|
99
|
+
|
|
69
100
|
## [2.4.1] - 2026-05-31
|
|
70
101
|
|
|
71
102
|
### Build
|
|
@@ -63,14 +63,21 @@ This repo needs [uv](https://docs.astral.sh/uv), which manages Python 3.14 for y
|
|
|
63
63
|
|
|
64
64
|
This project uses [`just`](https://github.com/casey/just) as its task runner. Run `just --list` for the full set; these are the ones you need day to day:
|
|
65
65
|
|
|
66
|
-
| Command
|
|
67
|
-
|
|
|
68
|
-
| `just install`
|
|
69
|
-
| `just
|
|
70
|
-
| `just
|
|
71
|
-
| `just
|
|
72
|
-
| `just
|
|
73
|
-
| `just
|
|
66
|
+
| Command | What it does |
|
|
67
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
68
|
+
| `just install` | Runs `install-package` |
|
|
69
|
+
| `just install-package` | Installs every dependency group and extra into the project virtualenv |
|
|
70
|
+
| `just format` | Runs `format-package` |
|
|
71
|
+
| `just format-package` | Rewrites the sources in place: applies ruff's safe fixes, including its pyupgrade rules for Python 3.10+, and formatting |
|
|
72
|
+
| `just lint` | Runs `lint-package` |
|
|
73
|
+
| `just lint-package` | Lints the project with ruff and type-checks it with ty, without changing any file |
|
|
74
|
+
| `just audit` | Runs `audit-package` |
|
|
75
|
+
| `just audit-package` | Checks the dependencies for known vulnerabilities with uv |
|
|
76
|
+
| `just test` | Runs `test-package` |
|
|
77
|
+
| `just test-package` | Runs the test suite, skipped when the `.no-tests` sentinel is present |
|
|
78
|
+
| `just check` | Runs `lint` then `test` in sequence |
|
|
79
|
+
| `just update` | Runs `update-package` |
|
|
80
|
+
| `just update-package` | Refreshes the lockfile to the latest resolvable versions, then raises the dependency lower bounds in `pyproject.toml` with uv-upsync |
|
|
74
81
|
|
|
75
82
|
1. Fork the repository and clone your fork locally
|
|
76
83
|
2. Create a branch using the naming pattern described below
|
|
@@ -85,8 +92,8 @@ Workflows live in `.github/workflows`:
|
|
|
85
92
|
|
|
86
93
|
| Workflow | Trigger | What it does |
|
|
87
94
|
| --- | --- | --- |
|
|
88
|
-
| CI | Push to `main`, pull requests, `workflow_dispatch` |
|
|
89
|
-
| Release | `workflow_dispatch` (optional `version` input) | Three chained jobs on `ubuntu-24.04-arm`: `tag` takes the version from the `version` input or derives the next one from the commit history with git-cliff, bumps the project version, regenerates `CHANGELOG.md` and pushes the release commit and its tag to `main
|
|
95
|
+
| CI | Push to `main`, pull requests, `workflow_dispatch` | One job on `ubuntu-24.04-arm`: `ci-package` installs `just` and uv pinned to Python 3.14, installs the project dependencies, then lints the project, audits the locked dependencies, type-checks and tests it through the `*-package` recipes |
|
|
96
|
+
| Release | `workflow_dispatch` (optional `version` input) | Three chained jobs on `ubuntu-24.04-arm`: `tag` takes the version from the `version` input (must be `MAJOR.MINOR.PATCH`) or derives the next one from the commit history with git-cliff, bumps the project version, regenerates `CHANGELOG.md` and pushes the release commit and its tag to `main`, then uploads the release notes as the `notes` artifact; `release` (needs `tag`) publishes the GitHub Release with those notes; `publish-pypi` (needs `tag` and `release`) builds the package and uploads it to PyPI via trusted publishing |
|
|
90
97
|
|
|
91
98
|
CI must be green before a pull request is merged.
|
|
92
99
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: uv-upsync
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.3
|
|
4
4
|
Summary: uv-upsync - is a tool for automated dependency updates and version bumping in pyproject.toml.
|
|
5
5
|
Project-URL: Homepage, https://github.com/pivoshenko/uv-upsync
|
|
6
6
|
Project-URL: Repository, https://github.com/pivoshenko/uv-upsync
|
|
@@ -17,7 +17,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
17
17
|
Classifier: Natural Language :: English
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Classifier: Programming Language :: Python
|
|
20
|
-
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -28,10 +28,10 @@ Classifier: Topic :: Software Development
|
|
|
28
28
|
Classifier: Topic :: Software Development :: Libraries
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Requires-Python: >=3.10
|
|
31
|
-
Requires-Dist: click~=8.5.
|
|
31
|
+
Requires-Dist: click~=8.5.1
|
|
32
32
|
Requires-Dist: httpx~=0.28.1
|
|
33
33
|
Requires-Dist: packaging~=26.3
|
|
34
|
-
Requires-Dist: tomlkit~=0.15.
|
|
34
|
+
Requires-Dist: tomlkit~=0.15.2
|
|
35
35
|
Requires-Dist: typing-extensions~=4.16.0
|
|
36
36
|
Description-Content-Type: text/markdown
|
|
37
37
|
|
uv_upsync-2.4.3/justfile
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
default:
|
|
2
|
+
@just --list
|
|
3
|
+
|
|
4
|
+
install: install-package
|
|
5
|
+
|
|
6
|
+
install-package:
|
|
7
|
+
uv sync --all-groups --all-extras
|
|
8
|
+
|
|
9
|
+
format: format-package
|
|
10
|
+
|
|
11
|
+
format-package:
|
|
12
|
+
uv run ruff check --fix .
|
|
13
|
+
uv run ruff format .
|
|
14
|
+
|
|
15
|
+
lint: lint-package
|
|
16
|
+
|
|
17
|
+
lint-package:
|
|
18
|
+
uv run ruff check .
|
|
19
|
+
uv run ty check .
|
|
20
|
+
|
|
21
|
+
audit: audit-package
|
|
22
|
+
|
|
23
|
+
audit-package:
|
|
24
|
+
uv audit --preview-features audit-command
|
|
25
|
+
|
|
26
|
+
test: test-package
|
|
27
|
+
|
|
28
|
+
test-package:
|
|
29
|
+
@[ -f .no-tests ] && echo "skipping (.no-tests sentinel)" || uv run pytest .
|
|
30
|
+
|
|
31
|
+
check: lint test
|
|
32
|
+
|
|
33
|
+
update: update-package
|
|
34
|
+
|
|
35
|
+
update-package:
|
|
36
|
+
uv lock --upgrade
|
|
37
|
+
uv run uv-upsync
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
build-backend = "hatchling.build"
|
|
3
|
+
requires = ["hatchling"]
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "uv-upsync"
|
|
7
|
+
version = "2.4.3"
|
|
8
|
+
description = "uv-upsync - is a tool for automated dependency updates and version bumping in pyproject.toml."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
keywords = [
|
|
11
|
+
"dependencies",
|
|
12
|
+
"dependencies-management",
|
|
13
|
+
"dependencies-update",
|
|
14
|
+
"dependencies-upgrade",
|
|
15
|
+
"hacktoberfest",
|
|
16
|
+
"packaging",
|
|
17
|
+
"packaging-management",
|
|
18
|
+
"packaging-update",
|
|
19
|
+
"packaging-upgrade",
|
|
20
|
+
"pypi",
|
|
21
|
+
"python",
|
|
22
|
+
"uv",
|
|
23
|
+
"uv-plugin",
|
|
24
|
+
"uv-plugins",
|
|
25
|
+
"uv-tool"
|
|
26
|
+
]
|
|
27
|
+
license = "MIT"
|
|
28
|
+
maintainers = [{ name = "Volodymyr Pivoshenko", email = "contact@pivoshenko.dev" }]
|
|
29
|
+
authors = [{ name = "Volodymyr Pivoshenko", email = "contact@pivoshenko.dev" }]
|
|
30
|
+
requires-python = ">=3.10"
|
|
31
|
+
classifiers = [
|
|
32
|
+
"Development Status :: 5 - Production/Stable",
|
|
33
|
+
"Environment :: Other Environment",
|
|
34
|
+
"Intended Audience :: Developers",
|
|
35
|
+
"Intended Audience :: Information Technology",
|
|
36
|
+
"License :: OSI Approved :: MIT License",
|
|
37
|
+
"Natural Language :: English",
|
|
38
|
+
"Operating System :: OS Independent",
|
|
39
|
+
"Programming Language :: Python",
|
|
40
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
41
|
+
"Programming Language :: Python :: 3.10",
|
|
42
|
+
"Programming Language :: Python :: 3.11",
|
|
43
|
+
"Programming Language :: Python :: 3.12",
|
|
44
|
+
"Programming Language :: Python :: 3.13",
|
|
45
|
+
"Programming Language :: Python :: 3.14",
|
|
46
|
+
"Topic :: Scientific/Engineering",
|
|
47
|
+
"Topic :: Software Development",
|
|
48
|
+
"Topic :: Software Development :: Libraries",
|
|
49
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
50
|
+
]
|
|
51
|
+
dependencies = [
|
|
52
|
+
"click~=8.5.1",
|
|
53
|
+
"httpx~=0.28.1",
|
|
54
|
+
"packaging~=26.3",
|
|
55
|
+
"tomlkit~=0.15.2",
|
|
56
|
+
"typing-extensions~=4.16.0"
|
|
57
|
+
]
|
|
58
|
+
urls.Homepage = "https://github.com/pivoshenko/uv-upsync"
|
|
59
|
+
urls.Repository = "https://github.com/pivoshenko/uv-upsync"
|
|
60
|
+
scripts.uv-upsync = "uv_upsync.__main__:main"
|
|
61
|
+
|
|
62
|
+
[dependency-groups]
|
|
63
|
+
dev = ["ipdb~=0.13.13", "ipython~=9.18.1; python_version>='3.11'"]
|
|
64
|
+
formatters = ["ruff~=0.17.6"]
|
|
65
|
+
linters = ["ruff~=0.17.6", "ty~=0.0.107"]
|
|
66
|
+
tests = [
|
|
67
|
+
"coverage[toml]~=7.16.1",
|
|
68
|
+
"pytest~=9.2.0",
|
|
69
|
+
"pytest-cov~=7.1.0",
|
|
70
|
+
"pytest-mock~=3.17.0",
|
|
71
|
+
"pytest-sugar~=1.1.1",
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
[tool.ruff]
|
|
75
|
+
target-version = "py310"
|
|
76
|
+
line-length = 100
|
|
77
|
+
fix = true
|
|
78
|
+
unsafe-fixes = true
|
|
79
|
+
format.quote-style = "double"
|
|
80
|
+
format.docstring-code-format = true
|
|
81
|
+
lint.select = ["ALL"]
|
|
82
|
+
lint.ignore = [
|
|
83
|
+
"COM812",
|
|
84
|
+
"CPY001",
|
|
85
|
+
"D101",
|
|
86
|
+
"D102",
|
|
87
|
+
"D103",
|
|
88
|
+
"D107",
|
|
89
|
+
"D203",
|
|
90
|
+
"D213",
|
|
91
|
+
"G004",
|
|
92
|
+
"PLE1205",
|
|
93
|
+
"PLR0917",
|
|
94
|
+
"TRY003",
|
|
95
|
+
"TRY400",
|
|
96
|
+
"TRY401",
|
|
97
|
+
]
|
|
98
|
+
lint.per-file-ignores."tests/**" = ["INP001", "PLR2004", "S101", "SLF001"]
|
|
99
|
+
lint.isort.force-single-line = true
|
|
100
|
+
lint.isort.from-first = false
|
|
101
|
+
lint.isort.length-sort-straight = true
|
|
102
|
+
lint.isort.lines-after-imports = 2
|
|
103
|
+
lint.isort.lines-between-types = 1
|
|
104
|
+
lint.isort.required-imports = ["from __future__ import annotations"]
|
|
105
|
+
|
|
106
|
+
[tool.ty]
|
|
107
|
+
environment.python-version = "3.10"
|
|
108
|
+
|
|
109
|
+
[tool.pytest]
|
|
110
|
+
ini_options.testpaths = ["tests"]
|
|
111
|
+
ini_options.addopts = ["--color=yes", "--cov=src", "--cov-report=term-missing"]
|
|
112
|
+
|
|
113
|
+
[tool.coverage]
|
|
114
|
+
run.omit = ["*/__init__.py"]
|
|
@@ -389,8 +389,7 @@ def _apply_with_lock( # noqa: PLR0913
|
|
|
389
389
|
allow_prerelease: bool,
|
|
390
390
|
max_bump: str | None,
|
|
391
391
|
) -> tuple[list[parsers.Update], list[parsers.Update], dict[str, list[str]]]:
|
|
392
|
-
"""
|
|
393
|
-
Apply the upgrades and lock, returning the applied, held-back and conflict info.
|
|
392
|
+
"""Apply the upgrades and lock, returning the applied, held-back and conflict info.
|
|
394
393
|
|
|
395
394
|
The full set is tried first (the common, fast path). On failure, `--strict`
|
|
396
395
|
rolls everything back, while the default best-effort mode keeps the maximal
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Module that contains the reader for project-level configuration from `[tool.uv-upsync]`.
|
|
1
|
+
"""Module that contains the reader for project-level configuration from `[tool.uv-upsync]`.
|
|
3
2
|
|
|
4
3
|
Settings declared in `pyproject.toml` provide defaults so they do not have to be
|
|
5
4
|
repeated on every invocation. Command-line arguments always take precedence over
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Module that contains the TOML parsing and version-bumping logic.
|
|
1
|
+
"""Module that contains the TOML parsing and version-bumping logic.
|
|
3
2
|
|
|
4
3
|
Dependency specifiers are parsed with `packaging` (the canonical PEP 440/508
|
|
5
4
|
implementation) for correctness, while the actual rewrite is a surgical
|
|
@@ -66,8 +65,7 @@ def iter_dependency_groups(
|
|
|
66
65
|
*,
|
|
67
66
|
all_groups: bool = False,
|
|
68
67
|
) -> Iterator[tuple[str, items.Array]]:
|
|
69
|
-
"""
|
|
70
|
-
Yield `(label, array)` for every selected dependency list in the document.
|
|
68
|
+
"""Yield `(label, array)` for every selected dependency list in the document.
|
|
71
69
|
|
|
72
70
|
The yielded arrays are the live tomlkit objects, so mutating them in place
|
|
73
71
|
updates the underlying document while preserving formatting and comments.
|
|
@@ -108,8 +106,7 @@ def parse_requirement(specifier: str) -> Requirement | None:
|
|
|
108
106
|
|
|
109
107
|
|
|
110
108
|
def upgradable_specifier(requirement: Requirement) -> tuple[Specifier, SpecifierSet] | None:
|
|
111
|
-
"""
|
|
112
|
-
Return the raisable lower-bound clause and the residual constraints, or `None`.
|
|
109
|
+
"""Return the raisable lower-bound clause and the residual constraints, or `None`.
|
|
113
110
|
|
|
114
111
|
Compound specifiers such as `>=1.0,<2.0` are supported: the single lower-bound
|
|
115
112
|
clause is the one we raise, while the remaining clauses (caps, exclusions) are
|
|
@@ -163,8 +160,7 @@ def eligible_versions(
|
|
|
163
160
|
allow_prerelease: bool = False,
|
|
164
161
|
max_bump: str | None = None,
|
|
165
162
|
) -> list[str]:
|
|
166
|
-
"""
|
|
167
|
-
Return, ascending, every version `update` could be bumped to under the policies.
|
|
163
|
+
"""Return, ascending, every version `update` could be bumped to under the policies.
|
|
168
164
|
|
|
169
165
|
Used by the resolver-aware search to look for a lower version that locks when the
|
|
170
166
|
latest does not.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Module that contains a PyPI client that speaks the PEP 691 simple JSON API.
|
|
1
|
+
"""Module that contains a PyPI client that speaks the PEP 691 simple JSON API.
|
|
3
2
|
|
|
4
3
|
The client returns the full list of published versions for a set of packages
|
|
5
4
|
from any PEP 691 compatible index. By default it talks to PyPI, but it honors
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Module that contains the renderer for update results as JSON or Markdown.
|
|
1
|
+
"""Module that contains the renderer for update results as JSON or Markdown.
|
|
3
2
|
|
|
4
3
|
Text output is handled directly by the logger; this module produces the
|
|
5
4
|
machine-readable formats used for scripting and for GitHub Action pull request
|