gitpure 1.0.0__tar.gz → 1.0.2__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.
- {gitpure-1.0.0 → gitpure-1.0.2}/.github/workflows/CI.yml +9 -15
- {gitpure-1.0.0 → gitpure-1.0.2}/.releaserc.json +1 -1
- {gitpure-1.0.0 → gitpure-1.0.2}/Cargo.lock +11 -11
- {gitpure-1.0.0 → gitpure-1.0.2}/Cargo.toml +2 -2
- {gitpure-1.0.0 → gitpure-1.0.2}/PKG-INFO +2 -2
- {gitpure-1.0.0 → gitpure-1.0.2}/README.md +1 -1
- {gitpure-1.0.0 → gitpure-1.0.2}/gitpure.pyi +3 -2
- {gitpure-1.0.0 → gitpure-1.0.2}/package-lock.json +910 -660
- gitpure-1.0.2/package.json +8 -0
- {gitpure-1.0.0 → gitpure-1.0.2}/src/lib.rs +7 -27
- {gitpure-1.0.0 → gitpure-1.0.2}/tests/test_repo.py +5 -5
- gitpure-1.0.0/package.json +0 -8
- {gitpure-1.0.0 → gitpure-1.0.2}/.gitignore +0 -0
- {gitpure-1.0.0 → gitpure-1.0.2}/LICENSE +0 -0
- {gitpure-1.0.0 → gitpure-1.0.2}/pyproject.toml +0 -0
- {gitpure-1.0.0 → gitpure-1.0.2}/renovate.json +0 -0
|
@@ -17,7 +17,7 @@ permissions:
|
|
|
17
17
|
jobs:
|
|
18
18
|
# Determine the next version of the codebase.
|
|
19
19
|
get-next-version:
|
|
20
|
-
uses: semantic-release-action/next-release-version/.github/workflows/next-release-version.yml@v4
|
|
20
|
+
uses: semantic-release-action/next-release-version/.github/workflows/next-release-version.yml@0cdefe1224944c23645e5131f7a5189672c0df92 # v4
|
|
21
21
|
permissions:
|
|
22
22
|
contents: write
|
|
23
23
|
|
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
- name: Set up Rust toolchain
|
|
47
47
|
uses: dtolnay/rust-toolchain@stable
|
|
48
48
|
- name: Set Cargo.toml package version
|
|
49
|
-
uses: colt-1/toml-editor@1.1.1
|
|
49
|
+
uses: colt-1/toml-editor@da6b46ee7779ed730d2160393ed95fb20e82696d # 1.1.1
|
|
50
50
|
with:
|
|
51
51
|
file: Cargo.toml
|
|
52
52
|
key: package.version
|
|
@@ -84,7 +84,7 @@ jobs:
|
|
|
84
84
|
with:
|
|
85
85
|
python-version: 3.x
|
|
86
86
|
- name: Set Cargo.toml package version
|
|
87
|
-
uses: colt-1/toml-editor@1.1.1
|
|
87
|
+
uses: colt-1/toml-editor@da6b46ee7779ed730d2160393ed95fb20e82696d # 1.1.1
|
|
88
88
|
with:
|
|
89
89
|
file: Cargo.toml
|
|
90
90
|
key: package.version
|
|
@@ -123,7 +123,7 @@ jobs:
|
|
|
123
123
|
with:
|
|
124
124
|
python-version: 3.x
|
|
125
125
|
- name: Set Cargo.toml package version
|
|
126
|
-
uses: colt-1/toml-editor@1.1.1
|
|
126
|
+
uses: colt-1/toml-editor@da6b46ee7779ed730d2160393ed95fb20e82696d # 1.1.1
|
|
127
127
|
with:
|
|
128
128
|
file: Cargo.toml
|
|
129
129
|
key: package.version
|
|
@@ -158,7 +158,7 @@ jobs:
|
|
|
158
158
|
python-version: 3.x
|
|
159
159
|
architecture: ${{ matrix.platform.target }}
|
|
160
160
|
- name: Set Cargo.toml package version
|
|
161
|
-
uses: colt-1/toml-editor@1.1.1
|
|
161
|
+
uses: colt-1/toml-editor@da6b46ee7779ed730d2160393ed95fb20e82696d # 1.1.1
|
|
162
162
|
with:
|
|
163
163
|
file: Cargo.toml
|
|
164
164
|
key: package.version
|
|
@@ -191,7 +191,7 @@ jobs:
|
|
|
191
191
|
with:
|
|
192
192
|
python-version: 3.x
|
|
193
193
|
- name: Set Cargo.toml package version
|
|
194
|
-
uses: colt-1/toml-editor@1.1.1
|
|
194
|
+
uses: colt-1/toml-editor@da6b46ee7779ed730d2160393ed95fb20e82696d # 1.1.1
|
|
195
195
|
with:
|
|
196
196
|
file: Cargo.toml
|
|
197
197
|
key: package.version
|
|
@@ -214,7 +214,7 @@ jobs:
|
|
|
214
214
|
steps:
|
|
215
215
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
|
216
216
|
- name: Set Cargo.toml package version
|
|
217
|
-
uses: colt-1/toml-editor@1.1.1
|
|
217
|
+
uses: colt-1/toml-editor@da6b46ee7779ed730d2160393ed95fb20e82696d # 1.1.1
|
|
218
218
|
with:
|
|
219
219
|
file: Cargo.toml
|
|
220
220
|
key: package.version
|
|
@@ -249,7 +249,7 @@ jobs:
|
|
|
249
249
|
url: https://pypi.org/p/gitpure
|
|
250
250
|
steps:
|
|
251
251
|
- name: Checkout
|
|
252
|
-
uses: actions/checkout@v5
|
|
252
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
|
253
253
|
with:
|
|
254
254
|
fetch-depth: 0
|
|
255
255
|
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
|
|
@@ -257,22 +257,16 @@ jobs:
|
|
|
257
257
|
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3
|
|
258
258
|
with:
|
|
259
259
|
subject-path: 'wheels-*/*'
|
|
260
|
-
- name: Install semantic-release-cargo
|
|
261
|
-
run: cargo install --locked semantic-release-cargo
|
|
262
|
-
|
|
263
260
|
- name: Set up Node.js
|
|
264
|
-
uses: actions/setup-node@
|
|
261
|
+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
|
|
265
262
|
with:
|
|
266
263
|
node-version: 'lts/*'
|
|
267
|
-
|
|
268
264
|
- name: Install npm dependencies
|
|
269
265
|
run: npm ci
|
|
270
|
-
|
|
271
266
|
- name: Run semantic-release
|
|
272
267
|
env:
|
|
273
268
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
274
269
|
run: npx semantic-release
|
|
275
|
-
|
|
276
270
|
- name: Publish to PyPI
|
|
277
271
|
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1
|
|
278
272
|
with:
|
|
@@ -406,7 +406,7 @@ checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7"
|
|
|
406
406
|
|
|
407
407
|
[[package]]
|
|
408
408
|
name = "gitpure"
|
|
409
|
-
version = "1.0.
|
|
409
|
+
version = "1.0.2"
|
|
410
410
|
dependencies = [
|
|
411
411
|
"gix",
|
|
412
412
|
"pyo3",
|
|
@@ -1814,9 +1814,9 @@ dependencies = [
|
|
|
1814
1814
|
|
|
1815
1815
|
[[package]]
|
|
1816
1816
|
name = "pyo3"
|
|
1817
|
-
version = "0.
|
|
1817
|
+
version = "0.27.1"
|
|
1818
1818
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1819
|
-
checksum = "
|
|
1819
|
+
checksum = "37a6df7eab65fc7bee654a421404947e10a0f7085b6951bf2ea395f4659fb0cf"
|
|
1820
1820
|
dependencies = [
|
|
1821
1821
|
"indoc",
|
|
1822
1822
|
"libc",
|
|
@@ -1831,18 +1831,18 @@ dependencies = [
|
|
|
1831
1831
|
|
|
1832
1832
|
[[package]]
|
|
1833
1833
|
name = "pyo3-build-config"
|
|
1834
|
-
version = "0.
|
|
1834
|
+
version = "0.27.1"
|
|
1835
1835
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1836
|
-
checksum = "
|
|
1836
|
+
checksum = "f77d387774f6f6eec64a004eac0ed525aab7fa1966d94b42f743797b3e395afb"
|
|
1837
1837
|
dependencies = [
|
|
1838
1838
|
"target-lexicon",
|
|
1839
1839
|
]
|
|
1840
1840
|
|
|
1841
1841
|
[[package]]
|
|
1842
1842
|
name = "pyo3-ffi"
|
|
1843
|
-
version = "0.
|
|
1843
|
+
version = "0.27.1"
|
|
1844
1844
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1845
|
-
checksum = "
|
|
1845
|
+
checksum = "2dd13844a4242793e02df3e2ec093f540d948299a6a77ea9ce7afd8623f542be"
|
|
1846
1846
|
dependencies = [
|
|
1847
1847
|
"libc",
|
|
1848
1848
|
"pyo3-build-config",
|
|
@@ -1850,9 +1850,9 @@ dependencies = [
|
|
|
1850
1850
|
|
|
1851
1851
|
[[package]]
|
|
1852
1852
|
name = "pyo3-macros"
|
|
1853
|
-
version = "0.
|
|
1853
|
+
version = "0.27.1"
|
|
1854
1854
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1855
|
-
checksum = "
|
|
1855
|
+
checksum = "eaf8f9f1108270b90d3676b8679586385430e5c0bb78bb5f043f95499c821a71"
|
|
1856
1856
|
dependencies = [
|
|
1857
1857
|
"proc-macro2",
|
|
1858
1858
|
"pyo3-macros-backend",
|
|
@@ -1862,9 +1862,9 @@ dependencies = [
|
|
|
1862
1862
|
|
|
1863
1863
|
[[package]]
|
|
1864
1864
|
name = "pyo3-macros-backend"
|
|
1865
|
-
version = "0.
|
|
1865
|
+
version = "0.27.1"
|
|
1866
1866
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1867
|
-
checksum = "
|
|
1867
|
+
checksum = "70a3b2274450ba5288bc9b8c1b69ff569d1d61189d4bff38f8d22e03d17f932b"
|
|
1868
1868
|
dependencies = [
|
|
1869
1869
|
"heck",
|
|
1870
1870
|
"proc-macro2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "gitpure"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.2"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
authors = [ "Max Dymond <cmeister2@gmail.com>" ]
|
|
6
6
|
license = "MIT"
|
|
@@ -17,7 +17,7 @@ name = "gitpure"
|
|
|
17
17
|
crate-type = [ "cdylib" ]
|
|
18
18
|
|
|
19
19
|
[dependencies]
|
|
20
|
-
pyo3 = "0.
|
|
20
|
+
pyo3 = "0.27.0"
|
|
21
21
|
|
|
22
22
|
[dependencies.gix]
|
|
23
23
|
version = "0.73.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitpure
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -121,7 +121,7 @@ pytest tests/
|
|
|
121
121
|
Releases are fully automated with [semantic-release](https://semantic-release.gitbook.io/). The pipeline will:
|
|
122
122
|
|
|
123
123
|
1. Inspect the commit history on `main` using Conventional Commits to determine the next semantic version.
|
|
124
|
-
2. Prepare the Rust crate
|
|
124
|
+
2. Prepare the Rust crate, using the next version (or a dev version if available).
|
|
125
125
|
3. Build wheels and source distributions with `maturin` and attach them to the GitHub release.
|
|
126
126
|
4. Publish the distribution artifacts to PyPI.
|
|
127
127
|
|
|
@@ -82,7 +82,7 @@ pytest tests/
|
|
|
82
82
|
Releases are fully automated with [semantic-release](https://semantic-release.gitbook.io/). The pipeline will:
|
|
83
83
|
|
|
84
84
|
1. Inspect the commit history on `main` using Conventional Commits to determine the next semantic version.
|
|
85
|
-
2. Prepare the Rust crate
|
|
85
|
+
2. Prepare the Rust crate, using the next version (or a dev version if available).
|
|
86
86
|
3. Build wheels and source distributions with `maturin` and attach them to the GitHub release.
|
|
87
87
|
4. Publish the distribution artifacts to PyPI.
|
|
88
88
|
|
|
@@ -55,8 +55,9 @@ class Repo:
|
|
|
55
55
|
"""
|
|
56
56
|
...
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
@property
|
|
59
|
+
def branches(self) -> list[Head]:
|
|
60
|
+
"""Return all local branches as Head objects."""
|
|
60
61
|
...
|
|
61
62
|
|
|
62
63
|
@property
|