mpatch 1.6.2__tar.gz → 1.6.4__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.
- {mpatch-1.6.2 → mpatch-1.6.4}/.github/workflows/pypi.yml +14 -21
- {mpatch-1.6.2 → mpatch-1.6.4}/CHANGELOG.md +4 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/Cargo.lock +2 -2
- {mpatch-1.6.2 → mpatch-1.6.4}/Cargo.toml +1 -1
- {mpatch-1.6.2 → mpatch-1.6.4}/PKG-INFO +1 -1
- {mpatch-1.6.2 → mpatch-1.6.4}/README.md +2 -2
- {mpatch-1.6.2 → mpatch-1.6.4}/bindings/python/Cargo.toml +1 -1
- {mpatch-1.6.2 → mpatch-1.6.4}/pyproject.toml +1 -1
- {mpatch-1.6.2 → mpatch-1.6.4}/src/lib.rs +1 -1
- {mpatch-1.6.2 → mpatch-1.6.4}/.github/workflows/ci.yml +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/.github/workflows/docs.yml +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/.github/workflows/python-ci.yml +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/.github/workflows/release.yml +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/.github/workflows/test-report.yml +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/.gitignore +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/LICENSE +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/benches/mpatch_bench.rs +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/bindings/python/.gitignore +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/bindings/python/README.md +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/bindings/python/mpatch.pyi +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/bindings/python/src/lib.rs +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/bindings/python/tests/test_mpatch.py +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/src/main.rs +0 -0
- {mpatch-1.6.2 → mpatch-1.6.4}/tests/patch_apply_tests.rs +0 -0
|
@@ -10,32 +10,25 @@ permissions:
|
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
12
|
build-wheels:
|
|
13
|
-
name: Build wheels on ${{ matrix.os }} (${{ matrix.target }}) ${{ matrix.free-threaded && 'Free-Threaded' || '' }}
|
|
14
|
-
runs-on: ${{ matrix.os }}
|
|
13
|
+
name: Build wheels on ${{ matrix.platform.os }} (${{ matrix.platform.target }}) ${{ matrix.free-threaded && 'Free-Threaded' || '' }}
|
|
14
|
+
runs-on: ${{ matrix.platform.os }}
|
|
15
15
|
strategy:
|
|
16
16
|
fail-fast: false
|
|
17
17
|
matrix:
|
|
18
18
|
free-threaded: [false, true]
|
|
19
|
-
|
|
19
|
+
platform:
|
|
20
20
|
# --- Linux ---
|
|
21
|
-
- os: ubuntu-latest
|
|
22
|
-
|
|
23
|
-
- os: ubuntu-latest
|
|
24
|
-
|
|
25
|
-
- os: ubuntu-latest
|
|
26
|
-
target: x86_64-unknown-linux-musl
|
|
27
|
-
- os: ubuntu-latest
|
|
28
|
-
target: aarch64-unknown-linux-musl
|
|
21
|
+
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
|
|
22
|
+
- { os: ubuntu-latest, target: aarch64-unknown-linux-gnu }
|
|
23
|
+
- { os: ubuntu-latest, target: x86_64-unknown-linux-musl }
|
|
24
|
+
- { os: ubuntu-latest, target: aarch64-unknown-linux-musl }
|
|
29
25
|
# --- macOS ---
|
|
30
|
-
- os: macos-
|
|
31
|
-
|
|
32
|
-
- os: macos-14
|
|
33
|
-
target: aarch64-apple-darwin
|
|
26
|
+
- { os: macos-14, target: x86_64-apple-darwin }
|
|
27
|
+
- { os: macos-14, target: aarch64-apple-darwin }
|
|
28
|
+
- { os: macos-14, target: universal2-apple-darwin }
|
|
34
29
|
# --- Windows ---
|
|
35
|
-
- os: windows-latest
|
|
36
|
-
|
|
37
|
-
- os: windows-latest
|
|
38
|
-
target: aarch64-pc-windows-msvc
|
|
30
|
+
- { os: windows-latest, target: x86_64-pc-windows-msvc }
|
|
31
|
+
- { os: windows-latest, target: aarch64-pc-windows-msvc }
|
|
39
32
|
|
|
40
33
|
steps:
|
|
41
34
|
- uses: actions/checkout@v4
|
|
@@ -53,7 +46,7 @@ jobs:
|
|
|
53
46
|
- name: Build wheels
|
|
54
47
|
uses: PyO3/maturin-action@v1
|
|
55
48
|
with:
|
|
56
|
-
target: ${{ matrix.target }}
|
|
49
|
+
target: ${{ matrix.platform.target }}
|
|
57
50
|
manylinux: auto
|
|
58
51
|
working-directory: bindings/python
|
|
59
52
|
# Pass `-i python3.13t` to explicitly tell maturin to build a cp313t wheel alongside abi3
|
|
@@ -64,7 +57,7 @@ jobs:
|
|
|
64
57
|
uses: actions/upload-artifact@v4
|
|
65
58
|
with:
|
|
66
59
|
# Use dynamic artifact names to prevent overwriting between parallel free-threaded and standard jobs
|
|
67
|
-
name: wheels-${{ matrix.target }}${{ matrix.free-threaded && '-freethreaded' || '' }}
|
|
60
|
+
name: wheels-${{ matrix.platform.target }}${{ matrix.free-threaded && '-freethreaded' || '' }}
|
|
68
61
|
path: bindings/python/dist/*.whl
|
|
69
62
|
|
|
70
63
|
build-sdist:
|
|
@@ -684,7 +684,7 @@ dependencies = [
|
|
|
684
684
|
|
|
685
685
|
[[package]]
|
|
686
686
|
name = "mpatch"
|
|
687
|
-
version = "1.6.
|
|
687
|
+
version = "1.6.4"
|
|
688
688
|
dependencies = [
|
|
689
689
|
"anyhow",
|
|
690
690
|
"arboard",
|
|
@@ -702,7 +702,7 @@ dependencies = [
|
|
|
702
702
|
|
|
703
703
|
[[package]]
|
|
704
704
|
name = "mpatch_py"
|
|
705
|
-
version = "1.6.
|
|
705
|
+
version = "1.6.4"
|
|
706
706
|
dependencies = [
|
|
707
707
|
"mpatch",
|
|
708
708
|
"pyo3",
|
|
@@ -94,7 +94,7 @@ The integrity of all released binaries is verified with GPG. The `.sig` signatur
|
|
|
94
94
|
2. **Verify the archive:**
|
|
95
95
|
```bash
|
|
96
96
|
# Example for Linux x64
|
|
97
|
-
gpg --verify mpatch-x86_64-unknown-linux-gnu-v1.6.
|
|
97
|
+
gpg --verify mpatch-x86_64-unknown-linux-gnu-v1.6.4.tar.gz.sig mpatch-x86_64-unknown-linux-gnu-v1.6.4.tar.gz
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
### Option 2: Build from Source
|
|
@@ -163,7 +163,7 @@ mpatch -vvvv changes.md ./src
|
|
|
163
163
|
Add to `Cargo.toml`:
|
|
164
164
|
```toml
|
|
165
165
|
[dependencies]
|
|
166
|
-
mpatch = "1.6.
|
|
166
|
+
mpatch = "1.6.4"
|
|
167
167
|
```
|
|
168
168
|
|
|
169
169
|
### 1. Simple One-Shot (String to String)
|
|
@@ -5,7 +5,7 @@ build-backend = "maturin"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "mpatch"
|
|
7
7
|
# Keep this in sync with your Rust crate version
|
|
8
|
-
version = "1.6.
|
|
8
|
+
version = "1.6.4"
|
|
9
9
|
description = "A smart, context-aware patch tool that applies diffs using fuzzy matching, ideal for AI-generated code."
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
authors = [
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
//! - **To disable this feature**, specify `default-features = false` in your `Cargo.toml`:
|
|
401
401
|
//! ```toml
|
|
402
402
|
//! [dependencies]
|
|
403
|
-
//! mpatch = { version = "1.6.
|
|
403
|
+
//! mpatch = { version = "1.6.4", default-features = false }
|
|
404
404
|
//! ```
|
|
405
405
|
//! You might want to disable this feature if you are compiling for a target that
|
|
406
406
|
//! does not support threading (like `wasm32-unknown-unknown`) or if you want to
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|