bibsync 0.3.3__tar.gz → 0.3.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.
Files changed (53) hide show
  1. {bibsync-0.3.3 → bibsync-0.3.4}/CITATION.cff +2 -2
  2. {bibsync-0.3.3 → bibsync-0.3.4}/Cargo.lock +5 -5
  3. {bibsync-0.3.3 → bibsync-0.3.4}/Cargo.toml +1 -1
  4. {bibsync-0.3.3 → bibsync-0.3.4}/PKG-INFO +6 -6
  5. {bibsync-0.3.3 → bibsync-0.3.4}/README.md +5 -5
  6. bibsync-0.3.4/scripts/pre-commit-bibsync +105 -0
  7. bibsync-0.3.3/scripts/pre-commit-bibsync +0 -68
  8. {bibsync-0.3.3 → bibsync-0.3.4}/.gitignore +0 -0
  9. {bibsync-0.3.3 → bibsync-0.3.4}/.markdownlint.yaml +0 -0
  10. {bibsync-0.3.3 → bibsync-0.3.4}/.pre-commit-config.yaml +0 -0
  11. {bibsync-0.3.3 → bibsync-0.3.4}/.pre-commit-hooks.yaml +0 -0
  12. {bibsync-0.3.3 → bibsync-0.3.4}/.prettierrc +0 -0
  13. {bibsync-0.3.3 → bibsync-0.3.4}/.typos.toml +0 -0
  14. {bibsync-0.3.3 → bibsync-0.3.4}/CODE_OF_CONDUCT.md +0 -0
  15. {bibsync-0.3.3 → bibsync-0.3.4}/CONTRIBUTING.md +0 -0
  16. {bibsync-0.3.3 → bibsync-0.3.4}/LICENSE +0 -0
  17. {bibsync-0.3.3 → bibsync-0.3.4}/SECURITY.md +0 -0
  18. {bibsync-0.3.3 → bibsync-0.3.4}/SUPPORT.md +0 -0
  19. {bibsync-0.3.3 → bibsync-0.3.4}/benches/greeting.rs +0 -0
  20. {bibsync-0.3.3 → bibsync-0.3.4}/cliff.toml +0 -0
  21. {bibsync-0.3.3 → bibsync-0.3.4}/deny.toml +0 -0
  22. {bibsync-0.3.3 → bibsync-0.3.4}/docs/api/index.md +0 -0
  23. {bibsync-0.3.3 → bibsync-0.3.4}/docs/contributing.md +0 -0
  24. {bibsync-0.3.3 → bibsync-0.3.4}/docs/index.md +0 -0
  25. {bibsync-0.3.3 → bibsync-0.3.4}/docs/security.md +0 -0
  26. {bibsync-0.3.3 → bibsync-0.3.4}/docs/user-guide/examples.md +0 -0
  27. {bibsync-0.3.3 → bibsync-0.3.4}/docs/user-guide/installation.md +0 -0
  28. {bibsync-0.3.3 → bibsync-0.3.4}/docs/user-guide/pre-commit.md +0 -0
  29. {bibsync-0.3.3 → bibsync-0.3.4}/docs/user-guide/providers.md +0 -0
  30. {bibsync-0.3.3 → bibsync-0.3.4}/docs/user-guide/usage.md +0 -0
  31. {bibsync-0.3.3 → bibsync-0.3.4}/examples/README.md +0 -0
  32. {bibsync-0.3.3 → bibsync-0.3.4}/examples/greet.rs +0 -0
  33. {bibsync-0.3.3 → bibsync-0.3.4}/examples/inspire-main.bib +0 -0
  34. {bibsync-0.3.3 → bibsync-0.3.4}/examples/inspire-main.tex +0 -0
  35. {bibsync-0.3.3 → bibsync-0.3.4}/examples/main.bib +0 -0
  36. {bibsync-0.3.3 → bibsync-0.3.4}/examples/main.tex +0 -0
  37. {bibsync-0.3.3 → bibsync-0.3.4}/pyproject.toml +0 -0
  38. {bibsync-0.3.3 → bibsync-0.3.4}/python/bibsync/__init__.py +0 -0
  39. {bibsync-0.3.3 → bibsync-0.3.4}/python/bibsync/__init__.pyi +0 -0
  40. {bibsync-0.3.3 → bibsync-0.3.4}/python/bibsync/__main__.py +0 -0
  41. {bibsync-0.3.3 → bibsync-0.3.4}/python/bibsync/py.typed +0 -0
  42. {bibsync-0.3.3 → bibsync-0.3.4}/renovate.json +0 -0
  43. {bibsync-0.3.3 → bibsync-0.3.4}/rust-toolchain.toml +0 -0
  44. {bibsync-0.3.3 → bibsync-0.3.4}/setup_repo.sh +0 -0
  45. {bibsync-0.3.3 → bibsync-0.3.4}/src/cli.rs +0 -0
  46. {bibsync-0.3.3 → bibsync-0.3.4}/src/lib.rs +0 -0
  47. {bibsync-0.3.3 → bibsync-0.3.4}/src/main.rs +0 -0
  48. {bibsync-0.3.3 → bibsync-0.3.4}/src/python.rs +0 -0
  49. {bibsync-0.3.3 → bibsync-0.3.4}/tests/cli.rs +0 -0
  50. {bibsync-0.3.3 → bibsync-0.3.4}/tests/examples.rs +0 -0
  51. {bibsync-0.3.3 → bibsync-0.3.4}/tests/python/test_bindings.py +0 -0
  52. {bibsync-0.3.3 → bibsync-0.3.4}/uv.lock +0 -0
  53. {bibsync-0.3.3 → bibsync-0.3.4}/zensical.toml +0 -0
@@ -1,7 +1,7 @@
1
1
  cff-version: 1.2.0
2
2
  title: "bibsync: A Rust package to automatically resolve, synchronize, and validate LaTeX citations across BibTeX databases"
3
- version: "0.3.3"
4
- date-released: "2026-06-02"
3
+ version: "0.3.4"
4
+ date-released: "2026-06-03"
5
5
  license: "BSD-3-Clause"
6
6
  type: software
7
7
  authors:
@@ -124,7 +124,7 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
124
124
 
125
125
  [[package]]
126
126
  name = "bibsync"
127
- version = "0.3.3"
127
+ version = "0.3.4"
128
128
  dependencies = [
129
129
  "assert_cmd",
130
130
  "clap",
@@ -141,9 +141,9 @@ dependencies = [
141
141
 
142
142
  [[package]]
143
143
  name = "bitflags"
144
- version = "2.11.1"
144
+ version = "2.12.1"
145
145
  source = "registry+https://github.com/rust-lang/crates.io-index"
146
- checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
146
+ checksum = "84d7ced0ae9557296835c32bf1b1e02b44c746701f898460fb000d7eaa84f00a"
147
147
 
148
148
  [[package]]
149
149
  name = "bstr"
@@ -828,9 +828,9 @@ checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
828
828
 
829
829
  [[package]]
830
830
  name = "log"
831
- version = "0.4.30"
831
+ version = "0.4.31"
832
832
  source = "registry+https://github.com/rust-lang/crates.io-index"
833
- checksum = "616ec5685824bcc94416c6d4a7a446eea774a31efd7062c8480ba6fd06d7a6e5"
833
+ checksum = "113b30b4cd05f7c06868fdb2854f66a7b9fece9a48425351cd532e810d74024f"
834
834
 
835
835
  [[package]]
836
836
  name = "lru-slab"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "bibsync"
3
- version = "0.3.3"
3
+ version = "0.3.4"
4
4
  edition = "2024"
5
5
  rust-version = "1.85"
6
6
  authors = ["Isaac C. F. Wong"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bibsync
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Science/Research
@@ -117,7 +117,7 @@ For convenience, you can also use:
117
117
  @software{wong2026bibsync,
118
118
  author = {Wong, Isaac C. F.},
119
119
  title = {bibsync: A Rust package to automatically resolve, synchronize, and validate LaTeX citations across BibTeX databases},
120
- version = {v0.3.3},
120
+ version = {v0.3.4},
121
121
  year = {2026},
122
122
  month = jun,
123
123
  doi = {10.5281/zenodo.20422622},
@@ -269,7 +269,7 @@ Use the pre-built binary hook for faster installs:
269
269
  ```yaml
270
270
  repos:
271
271
  - repo: https://github.com/isaac-cf-wong/bibsync
272
- rev: v0.3.3
272
+ rev: v0.3.4
273
273
  hooks:
274
274
  - id: bibsync-bin
275
275
  args: [--cache, --provider, inspire, --output, references.bib]
@@ -284,7 +284,7 @@ installation:
284
284
  ```yaml
285
285
  repos:
286
286
  - repo: https://github.com/isaac-cf-wong/bibsync
287
- rev: v0.3.3
287
+ rev: v0.3.4
288
288
  hooks:
289
289
  - id: bibsync
290
290
  args: [--provider, inspire, --output, references.bib]
@@ -296,7 +296,7 @@ writing changes. To let the hook update files, add `--fix` to the hook args:
296
296
  ```yaml
297
297
  repos:
298
298
  - repo: https://github.com/isaac-cf-wong/bibsync
299
- rev: v0.3.3
299
+ rev: v0.3.4
300
300
  hooks:
301
301
  - id: bibsync-bin
302
302
  args: [--fix, --cache, --provider, inspire, --output, references.bib]
@@ -307,7 +307,7 @@ To skip manually curated entries, add `--ignore-file`:
307
307
  ```yaml
308
308
  repos:
309
309
  - repo: https://github.com/isaac-cf-wong/bibsync
310
- rev: v0.3.3
310
+ rev: v0.3.4
311
311
  hooks:
312
312
  - id: bibsync-bin
313
313
  args:
@@ -90,7 +90,7 @@ For convenience, you can also use:
90
90
  @software{wong2026bibsync,
91
91
  author = {Wong, Isaac C. F.},
92
92
  title = {bibsync: A Rust package to automatically resolve, synchronize, and validate LaTeX citations across BibTeX databases},
93
- version = {v0.3.3},
93
+ version = {v0.3.4},
94
94
  year = {2026},
95
95
  month = jun,
96
96
  doi = {10.5281/zenodo.20422622},
@@ -242,7 +242,7 @@ Use the pre-built binary hook for faster installs:
242
242
  ```yaml
243
243
  repos:
244
244
  - repo: https://github.com/isaac-cf-wong/bibsync
245
- rev: v0.3.3
245
+ rev: v0.3.4
246
246
  hooks:
247
247
  - id: bibsync-bin
248
248
  args: [--cache, --provider, inspire, --output, references.bib]
@@ -257,7 +257,7 @@ installation:
257
257
  ```yaml
258
258
  repos:
259
259
  - repo: https://github.com/isaac-cf-wong/bibsync
260
- rev: v0.3.3
260
+ rev: v0.3.4
261
261
  hooks:
262
262
  - id: bibsync
263
263
  args: [--provider, inspire, --output, references.bib]
@@ -269,7 +269,7 @@ writing changes. To let the hook update files, add `--fix` to the hook args:
269
269
  ```yaml
270
270
  repos:
271
271
  - repo: https://github.com/isaac-cf-wong/bibsync
272
- rev: v0.3.3
272
+ rev: v0.3.4
273
273
  hooks:
274
274
  - id: bibsync-bin
275
275
  args: [--fix, --cache, --provider, inspire, --output, references.bib]
@@ -280,7 +280,7 @@ To skip manually curated entries, add `--ignore-file`:
280
280
  ```yaml
281
281
  repos:
282
282
  - repo: https://github.com/isaac-cf-wong/bibsync
283
- rev: v0.3.3
283
+ rev: v0.3.4
284
284
  hooks:
285
285
  - id: bibsync-bin
286
286
  args:
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5
+ version="${BIBSYNC_VERSION:-}"
6
+
7
+ if [ -z "$version" ]; then
8
+ version="$(git -C "$repo_root" describe --tags --exact-match HEAD 2>/dev/null || true)"
9
+ fi
10
+
11
+ if [ -z "$version" ]; then
12
+ version="v$(sed -n 's/^version = "\(.*\)"/\1/p' "$repo_root/Cargo.toml" | head -n 1)"
13
+ fi
14
+
15
+ case "$(uname -s)" in
16
+ Linux) os="linux" ;;
17
+ Darwin) os="macos" ;;
18
+ MINGW*|MSYS*|CYGWIN*) os="windows" ;;
19
+ *)
20
+ echo "Unsupported OS: $(uname -s)" >&2
21
+ exit 2
22
+ ;;
23
+ esac
24
+
25
+ case "$(uname -m)" in
26
+ x86_64|amd64) arch="x86_64" ;;
27
+ arm64|aarch64) arch="aarch64" ;;
28
+ *)
29
+ echo "Unsupported architecture: $(uname -m)" >&2
30
+ exit 2
31
+ ;;
32
+ esac
33
+
34
+ cache_root="${PRE_COMMIT_HOME:-${XDG_CACHE_HOME:-$HOME/.cache/pre-commit}}/bibsync"
35
+ install_dir="$cache_root/$version-$os-$arch"
36
+ binary="$install_dir/bibsync"
37
+ install_marker="$install_dir/.installed"
38
+ archive_ext="tar.gz"
39
+
40
+ if [ "$os" = "windows" ]; then
41
+ binary="$install_dir/bibsync.exe"
42
+ archive_ext="zip"
43
+ fi
44
+
45
+ if [ ! -x "$binary" ] || [ ! -f "$install_marker" ]; then
46
+ mkdir -p "$cache_root"
47
+ lock_dir="$cache_root/$version-$os-$arch.lock"
48
+ tmp_dir=""
49
+ cleanup_install() {
50
+ if [ -n "$tmp_dir" ]; then
51
+ rm -rf "$tmp_dir"
52
+ fi
53
+ rmdir "$lock_dir" 2>/dev/null || true
54
+ }
55
+
56
+ lock_waits=0
57
+ while ! mkdir "$lock_dir" 2>/dev/null; do
58
+ lock_waits=$((lock_waits + 1))
59
+ if [ "$lock_waits" -ge 300 ]; then
60
+ echo "Timed out waiting for bibsync install lock: $lock_dir" >&2
61
+ exit 2
62
+ fi
63
+ sleep 1
64
+ done
65
+ trap cleanup_install EXIT
66
+
67
+ if [ -x "$binary" ]; then
68
+ touch "$install_marker"
69
+ else
70
+ tmp_dir="$(mktemp -d "$cache_root/.install.XXXXXX")"
71
+ staging_dir="$tmp_dir/extract"
72
+ mkdir -p "$staging_dir"
73
+
74
+ archive="bibsync-$version-$os-$arch.$archive_ext"
75
+ url="https://github.com/isaac-cf-wong/bibsync/releases/download/$version/$archive"
76
+ tmp="$tmp_dir/$archive"
77
+
78
+ echo "Downloading $url" >&2
79
+ if command -v curl >/dev/null 2>&1; then
80
+ curl --fail --location --silent --show-error "$url" --output "$tmp"
81
+ elif command -v wget >/dev/null 2>&1; then
82
+ wget -q "$url" -O "$tmp"
83
+ else
84
+ echo "curl or wget is required to download the bibsync binary" >&2
85
+ exit 2
86
+ fi
87
+
88
+ if [ "$archive_ext" = "zip" ]; then
89
+ unzip -q -o "$tmp" -d "$staging_dir"
90
+ else
91
+ tar -xzf "$tmp" -C "$staging_dir"
92
+ fi
93
+ staging_binary="$staging_dir/$(basename "$binary")"
94
+ chmod +x "$staging_binary"
95
+ mkdir -p "$install_dir"
96
+ mv "$staging_binary" "$binary"
97
+ touch "$install_marker"
98
+ rm -rf "$tmp_dir"
99
+ tmp_dir=""
100
+ fi
101
+ cleanup_install
102
+ trap - EXIT
103
+ fi
104
+
105
+ exec "$binary" "$@"
@@ -1,68 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5
- version="${BIBSYNC_VERSION:-}"
6
-
7
- if [ -z "$version" ]; then
8
- version="$(git -C "$repo_root" describe --tags --exact-match HEAD 2>/dev/null || true)"
9
- fi
10
-
11
- if [ -z "$version" ]; then
12
- version="v$(sed -n 's/^version = "\(.*\)"/\1/p' "$repo_root/Cargo.toml" | head -n 1)"
13
- fi
14
-
15
- case "$(uname -s)" in
16
- Linux) os="linux" ;;
17
- Darwin) os="macos" ;;
18
- MINGW*|MSYS*|CYGWIN*) os="windows" ;;
19
- *)
20
- echo "Unsupported OS: $(uname -s)" >&2
21
- exit 2
22
- ;;
23
- esac
24
-
25
- case "$(uname -m)" in
26
- x86_64|amd64) arch="x86_64" ;;
27
- arm64|aarch64) arch="aarch64" ;;
28
- *)
29
- echo "Unsupported architecture: $(uname -m)" >&2
30
- exit 2
31
- ;;
32
- esac
33
-
34
- cache_root="${PRE_COMMIT_HOME:-${XDG_CACHE_HOME:-$HOME/.cache/pre-commit}}/bibsync"
35
- install_dir="$cache_root/$version-$os-$arch"
36
- binary="$install_dir/bibsync"
37
- archive_ext="tar.gz"
38
-
39
- if [ "$os" = "windows" ]; then
40
- binary="$install_dir/bibsync.exe"
41
- archive_ext="zip"
42
- fi
43
-
44
- if [ ! -x "$binary" ]; then
45
- mkdir -p "$install_dir"
46
- archive="bibsync-$version-$os-$arch.$archive_ext"
47
- url="https://github.com/isaac-cf-wong/bibsync/releases/download/$version/$archive"
48
- tmp="$install_dir/$archive"
49
-
50
- echo "Downloading $url" >&2
51
- if command -v curl >/dev/null 2>&1; then
52
- curl --fail --location --silent --show-error "$url" --output "$tmp"
53
- elif command -v wget >/dev/null 2>&1; then
54
- wget -q "$url" -O "$tmp"
55
- else
56
- echo "curl or wget is required to download the bibsync binary" >&2
57
- exit 2
58
- fi
59
-
60
- if [ "$archive_ext" = "zip" ]; then
61
- unzip -q -o "$tmp" -d "$install_dir"
62
- else
63
- tar -xzf "$tmp" -C "$install_dir"
64
- fi
65
- chmod +x "$binary"
66
- fi
67
-
68
- exec "$binary" "$@"
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
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
File without changes
File without changes
File without changes
File without changes
File without changes