bibsync 0.4.2__tar.gz → 0.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.
- {bibsync-0.4.2 → bibsync-0.4.3}/.pre-commit-config.yaml +1 -1
- bibsync-0.4.3/.pre-commit-hooks.yaml +12 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/CITATION.cff +1 -1
- {bibsync-0.4.2 → bibsync-0.4.3}/Cargo.lock +3 -3
- {bibsync-0.4.2 → bibsync-0.4.3}/Cargo.toml +1 -1
- {bibsync-0.4.2 → bibsync-0.4.3}/PKG-INFO +30 -6
- {bibsync-0.4.2 → bibsync-0.4.3}/README.md +29 -5
- {bibsync-0.4.2 → bibsync-0.4.3}/pyproject.toml +1 -1
- {bibsync-0.4.2 → bibsync-0.4.3}/uv.lock +1 -1
- bibsync-0.4.2/.pre-commit-hooks.yaml +0 -12
- {bibsync-0.4.2 → bibsync-0.4.3}/.gitignore +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/.markdownlint.yaml +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/.prettierrc +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/.typos.toml +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/CODE_OF_CONDUCT.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/CONTRIBUTING.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/LICENSE +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/SECURITY.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/SUPPORT.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/benches/greeting.rs +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/cliff.toml +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/deny.toml +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/docs/api/index.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/docs/contributing.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/docs/index.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/docs/security.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/docs/user-guide/examples.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/docs/user-guide/installation.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/docs/user-guide/pre-commit.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/docs/user-guide/providers.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/docs/user-guide/usage.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/examples/README.md +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/examples/greet.rs +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/examples/inspire-main.bib +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/examples/inspire-main.tex +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/examples/main.bib +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/examples/main.tex +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/python/bibsync/__init__.py +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/python/bibsync/__init__.pyi +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/python/bibsync/__main__.py +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/python/bibsync/py.typed +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/renovate.json +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/rust-toolchain.toml +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/scripts/pre-commit-bibsync +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/setup_repo.sh +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/src/cli.rs +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/src/lib.rs +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/src/main.rs +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/src/python.rs +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/tests/cli.rs +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/tests/examples.rs +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/tests/python/test_bindings.py +0 -0
- {bibsync-0.4.2 → bibsync-0.4.3}/zensical.toml +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
- id: bibsync
|
|
2
|
+
name: bibsync
|
|
3
|
+
description: Synchronize BibTeX entries from TeX and Markdown citation keys
|
|
4
|
+
entry: bibsync
|
|
5
|
+
language: rust
|
|
6
|
+
types_or: [tex, bib, markdown]
|
|
7
|
+
- id: bibsync-bin
|
|
8
|
+
name: bibsync
|
|
9
|
+
description: Synchronize BibTeX entries from TeX and Markdown citation keys using a pre-built release binary
|
|
10
|
+
entry: scripts/pre-commit-bibsync
|
|
11
|
+
language: script
|
|
12
|
+
types_or: [tex, bib, markdown]
|
|
@@ -119,7 +119,7 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
|
|
119
119
|
|
|
120
120
|
[[package]]
|
|
121
121
|
name = "bibsync"
|
|
122
|
-
version = "0.4.
|
|
122
|
+
version = "0.4.3"
|
|
123
123
|
dependencies = [
|
|
124
124
|
"assert_cmd",
|
|
125
125
|
"clap",
|
|
@@ -1259,9 +1259,9 @@ dependencies = [
|
|
|
1259
1259
|
|
|
1260
1260
|
[[package]]
|
|
1261
1261
|
name = "rustversion"
|
|
1262
|
-
version = "1.0.
|
|
1262
|
+
version = "1.0.23"
|
|
1263
1263
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1264
|
-
checksum = "
|
|
1264
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
1265
1265
|
|
|
1266
1266
|
[[package]]
|
|
1267
1267
|
name = "ryu"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bibsync
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Environment :: Console
|
|
6
6
|
Classifier: Intended Audience :: Science/Research
|
|
@@ -134,7 +134,7 @@ For convenience, you can also use:
|
|
|
134
134
|
@software{wong2026bibsync,
|
|
135
135
|
author = {Wong, Isaac C. F.},
|
|
136
136
|
title = {bibsync: A Rust package to automatically resolve, synchronize, and validate LaTeX citations across BibTeX databases},
|
|
137
|
-
version = {v0.4.
|
|
137
|
+
version = {v0.4.3},
|
|
138
138
|
year = {2026},
|
|
139
139
|
month = jul,
|
|
140
140
|
doi = {10.5281/zenodo.20422622},
|
|
@@ -281,12 +281,36 @@ provider and citekey or batch being resolved.
|
|
|
281
281
|
The repository includes `.pre-commit-hooks.yaml`, so other projects can use
|
|
282
282
|
`bibsync` as a pre-commit hook.
|
|
283
283
|
|
|
284
|
+
Both hooks run on TeX (`.tex`), BibTeX (`.bib`), and Markdown (`.md`) files.
|
|
285
|
+
Every `@key` in a scanned file is treated as a citation, so scanning unrelated
|
|
286
|
+
Markdown can raise false positives — for example a `README.md` that uses GitHub
|
|
287
|
+
`@mentions`. **The recommended setup is to scope the hook to your citation
|
|
288
|
+
sources with `files:`** rather than relying on the default file matching.
|
|
289
|
+
|
|
290
|
+
For a JOSS paper (`paper.md` + `paper.bib`):
|
|
291
|
+
|
|
292
|
+
```yaml
|
|
293
|
+
repos:
|
|
294
|
+
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
295
|
+
rev: v0.4.3
|
|
296
|
+
hooks:
|
|
297
|
+
- id: bibsync-bin
|
|
298
|
+
files: ^paper\.md$
|
|
299
|
+
args: [--fix, --cache, --provider, inspire, --output, paper.bib]
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
The `--output` bibliography is read and written even when it is not itself
|
|
303
|
+
matched by `files:`, so scoping to `paper.md` still keeps `paper.bib` in sync.
|
|
304
|
+
|
|
305
|
+
The remaining examples below omit `files:` for brevity; add it to match your
|
|
306
|
+
project layout.
|
|
307
|
+
|
|
284
308
|
Use the pre-built binary hook for faster installs:
|
|
285
309
|
|
|
286
310
|
```yaml
|
|
287
311
|
repos:
|
|
288
312
|
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
289
|
-
rev: v0.4.
|
|
313
|
+
rev: v0.4.3
|
|
290
314
|
hooks:
|
|
291
315
|
- id: bibsync-bin
|
|
292
316
|
args: [--cache, --provider, inspire, --output, references.bib]
|
|
@@ -301,7 +325,7 @@ installation:
|
|
|
301
325
|
```yaml
|
|
302
326
|
repos:
|
|
303
327
|
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
304
|
-
rev: v0.4.
|
|
328
|
+
rev: v0.4.3
|
|
305
329
|
hooks:
|
|
306
330
|
- id: bibsync
|
|
307
331
|
args: [--provider, inspire, --output, references.bib]
|
|
@@ -313,7 +337,7 @@ writing changes. To let the hook update files, add `--fix` to the hook args:
|
|
|
313
337
|
```yaml
|
|
314
338
|
repos:
|
|
315
339
|
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
316
|
-
rev: v0.4.
|
|
340
|
+
rev: v0.4.3
|
|
317
341
|
hooks:
|
|
318
342
|
- id: bibsync-bin
|
|
319
343
|
args: [--fix, --cache, --provider, inspire, --output, references.bib]
|
|
@@ -324,7 +348,7 @@ To skip manually curated entries, add `--ignore-file`:
|
|
|
324
348
|
```yaml
|
|
325
349
|
repos:
|
|
326
350
|
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
327
|
-
rev: v0.4.
|
|
351
|
+
rev: v0.4.3
|
|
328
352
|
hooks:
|
|
329
353
|
- id: bibsync-bin
|
|
330
354
|
args:
|
|
@@ -107,7 +107,7 @@ For convenience, you can also use:
|
|
|
107
107
|
@software{wong2026bibsync,
|
|
108
108
|
author = {Wong, Isaac C. F.},
|
|
109
109
|
title = {bibsync: A Rust package to automatically resolve, synchronize, and validate LaTeX citations across BibTeX databases},
|
|
110
|
-
version = {v0.4.
|
|
110
|
+
version = {v0.4.3},
|
|
111
111
|
year = {2026},
|
|
112
112
|
month = jul,
|
|
113
113
|
doi = {10.5281/zenodo.20422622},
|
|
@@ -254,12 +254,36 @@ provider and citekey or batch being resolved.
|
|
|
254
254
|
The repository includes `.pre-commit-hooks.yaml`, so other projects can use
|
|
255
255
|
`bibsync` as a pre-commit hook.
|
|
256
256
|
|
|
257
|
+
Both hooks run on TeX (`.tex`), BibTeX (`.bib`), and Markdown (`.md`) files.
|
|
258
|
+
Every `@key` in a scanned file is treated as a citation, so scanning unrelated
|
|
259
|
+
Markdown can raise false positives — for example a `README.md` that uses GitHub
|
|
260
|
+
`@mentions`. **The recommended setup is to scope the hook to your citation
|
|
261
|
+
sources with `files:`** rather than relying on the default file matching.
|
|
262
|
+
|
|
263
|
+
For a JOSS paper (`paper.md` + `paper.bib`):
|
|
264
|
+
|
|
265
|
+
```yaml
|
|
266
|
+
repos:
|
|
267
|
+
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
268
|
+
rev: v0.4.3
|
|
269
|
+
hooks:
|
|
270
|
+
- id: bibsync-bin
|
|
271
|
+
files: ^paper\.md$
|
|
272
|
+
args: [--fix, --cache, --provider, inspire, --output, paper.bib]
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
The `--output` bibliography is read and written even when it is not itself
|
|
276
|
+
matched by `files:`, so scoping to `paper.md` still keeps `paper.bib` in sync.
|
|
277
|
+
|
|
278
|
+
The remaining examples below omit `files:` for brevity; add it to match your
|
|
279
|
+
project layout.
|
|
280
|
+
|
|
257
281
|
Use the pre-built binary hook for faster installs:
|
|
258
282
|
|
|
259
283
|
```yaml
|
|
260
284
|
repos:
|
|
261
285
|
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
262
|
-
rev: v0.4.
|
|
286
|
+
rev: v0.4.3
|
|
263
287
|
hooks:
|
|
264
288
|
- id: bibsync-bin
|
|
265
289
|
args: [--cache, --provider, inspire, --output, references.bib]
|
|
@@ -274,7 +298,7 @@ installation:
|
|
|
274
298
|
```yaml
|
|
275
299
|
repos:
|
|
276
300
|
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
277
|
-
rev: v0.4.
|
|
301
|
+
rev: v0.4.3
|
|
278
302
|
hooks:
|
|
279
303
|
- id: bibsync
|
|
280
304
|
args: [--provider, inspire, --output, references.bib]
|
|
@@ -286,7 +310,7 @@ writing changes. To let the hook update files, add `--fix` to the hook args:
|
|
|
286
310
|
```yaml
|
|
287
311
|
repos:
|
|
288
312
|
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
289
|
-
rev: v0.4.
|
|
313
|
+
rev: v0.4.3
|
|
290
314
|
hooks:
|
|
291
315
|
- id: bibsync-bin
|
|
292
316
|
args: [--fix, --cache, --provider, inspire, --output, references.bib]
|
|
@@ -297,7 +321,7 @@ To skip manually curated entries, add `--ignore-file`:
|
|
|
297
321
|
```yaml
|
|
298
322
|
repos:
|
|
299
323
|
- repo: https://github.com/isaac-cf-wong/bibsync
|
|
300
|
-
rev: v0.4.
|
|
324
|
+
rev: v0.4.3
|
|
301
325
|
hooks:
|
|
302
326
|
- id: bibsync-bin
|
|
303
327
|
args:
|
|
@@ -21,7 +21,7 @@ dev = [
|
|
|
21
21
|
[package.metadata.requires-dev]
|
|
22
22
|
build = [{ name = "maturin", specifier = ">=1.14.1,<2" }]
|
|
23
23
|
dev = [
|
|
24
|
-
{ name = "prek", specifier = ">=0.4.
|
|
24
|
+
{ name = "prek", specifier = ">=0.4.8" },
|
|
25
25
|
{ name = "pytest", specifier = ">=9.1.1" },
|
|
26
26
|
{ name = "ruff", specifier = ">=0.15.20" },
|
|
27
27
|
]
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
- id: bibsync
|
|
2
|
-
name: bibsync
|
|
3
|
-
description: Synchronize BibTeX entries from TeX citation keys
|
|
4
|
-
entry: bibsync
|
|
5
|
-
language: rust
|
|
6
|
-
types_or: [tex, bib]
|
|
7
|
-
- id: bibsync-bin
|
|
8
|
-
name: bibsync
|
|
9
|
-
description: Synchronize BibTeX entries using a pre-built release binary
|
|
10
|
-
entry: scripts/pre-commit-bibsync
|
|
11
|
-
language: script
|
|
12
|
-
types_or: [tex, bib]
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|