comrak 0.0.6__tar.gz → 0.0.8__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.

Potentially problematic release.


This version of comrak might be problematic. Click here for more details.

Files changed (31) hide show
  1. {comrak-0.0.6 → comrak-0.0.8}/.github/workflows/CI.yml +7 -9
  2. comrak-0.0.8/.github/workflows/test.yml +86 -0
  3. comrak-0.0.8/.just/commit.just +68 -0
  4. comrak-0.0.8/.just/ship.just +36 -0
  5. comrak-0.0.8/.just/test.just +2 -0
  6. {comrak-0.0.6 → comrak-0.0.8}/.pre-commit-config.yaml +7 -6
  7. {comrak-0.0.6 → comrak-0.0.8}/Cargo.lock +31 -107
  8. {comrak-0.0.6 → comrak-0.0.8}/Cargo.toml +3 -2
  9. comrak-0.0.8/DEVELOPMENT.md +5 -0
  10. comrak-0.0.8/Justfile +6 -0
  11. {comrak-0.0.6 → comrak-0.0.8}/PKG-INFO +2 -9
  12. comrak-0.0.8/pyproject.toml +71 -0
  13. {comrak-0.0.6 → comrak-0.0.8}/src/options.rs +9 -13
  14. comrak-0.0.8/tests/comrak_test.py +276 -0
  15. {comrak-0.0.6 → comrak-0.0.8}/uv.lock +365 -291
  16. comrak-0.0.6/DEVELOPMENT.md +0 -7
  17. comrak-0.0.6/pyproject.toml +0 -61
  18. {comrak-0.0.6 → comrak-0.0.8}/.aiignore +0 -0
  19. {comrak-0.0.6 → comrak-0.0.8}/.gitignore +0 -0
  20. {comrak-0.0.6 → comrak-0.0.8}/LICENSE +0 -0
  21. {comrak-0.0.6 → comrak-0.0.8}/README.md +0 -0
  22. {comrak-0.0.6 → comrak-0.0.8}/benchmark/README.md +0 -0
  23. {comrak-0.0.6 → comrak-0.0.8}/benchmark/awesome_python_readme_x1000/comrak_bench.py +0 -0
  24. {comrak-0.0.6 → comrak-0.0.8}/benchmark/awesome_python_readme_x1000/markdown2_bench.py +0 -0
  25. {comrak-0.0.6 → comrak-0.0.8}/benchmark/awesome_python_readme_x1000/markdown_bench.py +0 -0
  26. {comrak-0.0.6 → comrak-0.0.8}/benchmark/hello_world_x1000/comrak_bench.py +0 -0
  27. {comrak-0.0.6 → comrak-0.0.8}/benchmark/hello_world_x1000/markdown2_bench.py +0 -0
  28. {comrak-0.0.6 → comrak-0.0.8}/benchmark/hello_world_x1000/markdown_bench.py +0 -0
  29. {comrak-0.0.6 → comrak-0.0.8}/benchmark/run_medium_benchmark.sh +0 -0
  30. {comrak-0.0.6 → comrak-0.0.8}/benchmark/run_small_benchmark.sh +0 -0
  31. {comrak-0.0.6 → comrak-0.0.8}/src/lib.rs +0 -0
@@ -63,8 +63,7 @@ jobs:
63
63
  with:
64
64
  python-version: 3.x
65
65
  - name: Build wheels
66
- # uses: PyO3/maturin-action@v1.47.1
67
- uses: PyO3/maturin-action@refs/pull/330/head
66
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
68
67
  with:
69
68
  target: ${{ matrix.platform.target }}
70
69
  args: --release --out dist --find-interpreter
@@ -96,7 +95,7 @@ jobs:
96
95
  with:
97
96
  python-version: 3.x
98
97
  - name: Build wheels
99
- uses: PyO3/maturin-action@v1
98
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
100
99
  with:
101
100
  target: ${{ matrix.platform.target }}
102
101
  args: --release --out dist --find-interpreter
@@ -125,7 +124,7 @@ jobs:
125
124
  python-version: 3.x
126
125
  architecture: ${{ matrix.platform.target }}
127
126
  - name: Build wheels
128
- uses: PyO3/maturin-action@v1
127
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
129
128
  with:
130
129
  target: ${{ matrix.platform.target }}
131
130
  args: --release --out dist --find-interpreter
@@ -152,7 +151,7 @@ jobs:
152
151
  with:
153
152
  python-version: 3.x
154
153
  - name: Build wheels
155
- uses: PyO3/maturin-action@v1
154
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
156
155
  with:
157
156
  target: ${{ matrix.platform.target }}
158
157
  args: --release --out dist --find-interpreter
@@ -169,7 +168,7 @@ jobs:
169
168
  steps:
170
169
  - uses: actions/checkout@v4
171
170
  - name: Build sdist
172
- uses: PyO3/maturin-action@v1
171
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
173
172
  with:
174
173
  command: sdist
175
174
  args: --out dist
@@ -181,6 +180,7 @@ jobs:
181
180
 
182
181
  release:
183
182
  name: Release
183
+ environment: pypi
184
184
  runs-on: ubuntu-latest
185
185
  if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
186
186
  needs: [linux, musllinux, windows, macos, sdist]
@@ -199,9 +199,7 @@ jobs:
199
199
  subject-path: "wheels-*/*"
200
200
  - name: Publish to PyPI
201
201
  if: ${{ startsWith(github.ref, 'refs/tags/') }}
202
- uses: PyO3/maturin-action@v1
203
- env:
204
- MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
202
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
205
203
  with:
206
204
  command: upload
207
205
  args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,86 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ workflow_dispatch:
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ get-python-versions:
16
+ runs-on: ubuntu-latest
17
+ timeout-minutes: 5
18
+ outputs:
19
+ python-versions: ${{ steps.get-versions.outputs.python-versions }}
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+
23
+ - name: Install uv
24
+ uses: astral-sh/setup-uv@v7
25
+
26
+ - name: Get Python versions from uv
27
+ id: get-versions
28
+ run: |
29
+ set -euo pipefail
30
+ MIN_VERSION=$(uvx --from=toml-cli toml get --toml-path=pyproject.toml project.requires-python | sed 's/>=//;s/"//g')
31
+ PYO3_FFI_VERSION=$(grep -m 1 -A 1 'name = "pyo3-ffi"' Cargo.lock | tail -n1 | cut -d '"' -f 2)
32
+ MAX_VERSION=$(
33
+ curl -sL "https://static.crates.io/crates/pyo3-ffi/pyo3-ffi-$PYO3_FFI_VERSION.crate" \
34
+ | tar -xzO "pyo3-ffi-$PYO3_FFI_VERSION/Cargo.toml" \
35
+ | uvx --from=toml-cli toml get --toml-path=/dev/stdin package.metadata.cpython.max-version \
36
+ | tr -d '"'
37
+ )
38
+ versions=$(uv python list --all-versions --output-format json | jq -c --arg min "$MIN_VERSION" --arg max "$MAX_VERSION" '
39
+ ($min | split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber}) as $minv |
40
+ ($max | split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber}) as $maxv |
41
+ [.[] | {v:.version_parts, t:.variant}]
42
+ | unique_by([.v.minor,.t])
43
+ | map(select(
44
+ (.v.major > $minv.major or (.v.major == $minv.major and .v.minor >= $minv.minor)) and
45
+ (.v.major < $maxv.major or (.v.major == $maxv.major and .v.minor <= $maxv.minor))
46
+ ))
47
+ | map("\(.v.major).\(.v.minor)\(if .t=="freethreaded" then "t" else "" end)")')
48
+ echo "python-versions=$versions" >> $GITHUB_OUTPUT
49
+
50
+ test:
51
+ needs: get-python-versions
52
+ runs-on: ubuntu-latest
53
+ timeout-minutes: 10
54
+ strategy:
55
+ fail-fast: false
56
+ matrix:
57
+ python-version: ${{ fromJson(needs.get-python-versions.outputs.python-versions) }}
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+
61
+ - name: Set up mold linker
62
+ uses: rui314/setup-mold@v1
63
+
64
+ - uses: Swatinem/rust-cache@v2.8.1
65
+
66
+ - name: Install uv
67
+ uses: astral-sh/setup-uv@v7
68
+ with:
69
+ enable-cache: false # true
70
+ python-version: ${{ matrix.python-version }}
71
+
72
+ - name: Set up Rust
73
+ uses: dtolnay/rust-toolchain@stable
74
+
75
+ - name: Sync build and test dependencies
76
+ run: uv sync --only-group build --only-group test
77
+
78
+ - name: Build extension
79
+ run: |
80
+ source .venv/bin/activate
81
+ .venv/bin/maturin develop --uv
82
+
83
+ - name: Run tests
84
+ run: |
85
+ source .venv/bin/activate
86
+ .venv/bin/pytest tests/ -v
@@ -0,0 +1,68 @@
1
+ # NO_STASH is a git stash `:(exclude)` pattern. We never stash the Justfile
2
+ NO_STASH := "Justfile"
3
+
4
+ # FIXER must be the name of a Justfile task
5
+ FIXER := "pc-fix"
6
+
7
+ check-fixer:
8
+ #!/usr/bin/env echo-comment
9
+
10
+ just -s {{FIXER}} >/dev/null 2>&1
11
+ test $? -eq 0 || echo "# just: No such task '{{FIXER}}'" | echo-comment /dev/stdin --color=bold-red
12
+
13
+ no-fix-stash msg="pre-commit-temp":
14
+ git stash push --keep-index --include-untracked -m "{{msg}}" -- \
15
+ ':/*' \
16
+ ':(exclude){{NO_STASH}}'
17
+
18
+ stash-restore *changes:
19
+ #!/usr/bin/env -S echo-comment --color=bold-yellow
20
+
21
+ # Restoring {{changes}}
22
+ git stash pop --quiet
23
+
24
+
25
+ # Special commit flag that will run a given command
26
+ commit msg *args:
27
+ #!/usr/bin/env -S echo-comment --color bold-yellow
28
+
29
+ # Confirm fixer {{FIXER}} is a valid Justfile task
30
+ check-fixer
31
+
32
+ # Halt at non-zero return codes from now on
33
+ set -e
34
+
35
+ # Count unstaged/untracked files
36
+ unstaged_count=$(git diff --name-only -- . ':(exclude){{NO_STASH}}' | wc -l)
37
+ untracked_count=$(git ls-files --others --exclude-standard -- ':/*' ':(exclude){{NO_STASH}}' | wc -l)
38
+ stash_count=$((unstaged_count + untracked_count))
39
+
40
+ # Files to stash: $stash_count
41
+ if [ $stash_count -ne 0 ]; then
42
+ case "$unstaged_count-$untracked_count" in
43
+ 0-*) kinds="untracked" ;;
44
+ *-0) kinds="unstaged" ;;
45
+ *-*) kinds="unstaged and untracked" ;;
46
+ esac
47
+
48
+ # Stashing $stash_count $kinds files
49
+ just no-fix-stash
50
+
51
+ ## Always restore later, even on failure
52
+ trap 'just stash-restore $stash_count $kinds changes' EXIT
53
+ fi
54
+
55
+ # Autofix run before calling commit (which triggers pre-commit hooks)
56
+ just {{FIXER}}
57
+
58
+ # Count any files which now have unstaged changes
59
+ fixer_unstaged_count=$(git diff --name-only -- . ':(exclude){{NO_STASH}}' | wc -l)
60
+
61
+ if [ $fixer_unstaged_count -ne 0 ]; then
62
+ s="${fixer_unstaged_count#1}" # strip leading "1", empty if 1 → "", else → "s"
63
+ # Fixer modified $fixer_unstaged_count file${s:+s}, staging...
64
+ git add --all
65
+ fi
66
+
67
+ # Commit the changes
68
+ git commit -m "{{msg}}" {{args}}
@@ -0,0 +1,36 @@
1
+ # Release a new version, pass --help for options to `uv version --bump`
2
+ release bump_level="patch":
3
+ #!/usr/bin/env -S echo-comment --shell-flags="-e" --color bright-green
4
+
5
+ ## Exit early if help was requested
6
+ if [[ "{{ bump_level }}" == "--help" ]]; then
7
+ uv version --help
8
+ exit 0
9
+ fi
10
+
11
+ # 📈 Bump the version in pyproject.toml (patch/minor/major: {{ bump_level }})
12
+ uv version --bump {{ bump_level }}
13
+
14
+ # 📦 Stage all changes (including the version bump)
15
+ git add --all
16
+
17
+ # 🔄 Create a temporary commit to capture the new version
18
+ git commit -m "chore(temp): version check"
19
+
20
+ # ✂️ Extract the new version number that was just set, undo the commit
21
+ new_version=$(uv version --short)
22
+ git reset --soft HEAD~1
23
+
24
+ # ✅ Stage everything again and create the real release commit
25
+ git add --all
26
+ git commit -m "chore(release): bump 🐍 -> v$new_version"
27
+
28
+ # 🏷️ Create the git tag for this release
29
+ git tag -a "py-$new_version" -m "Python Release $new_version"
30
+
31
+ branch_name=$(git rev-parse --abbrev-ref HEAD);
32
+ # 🚀 Push the release commit to $branch_name
33
+ git push origin $branch_name
34
+
35
+ # 🚀 Push the commit tag to the remote (will trigger PyPI release via Trusted Publishing)
36
+ git push origin "py-$new_version"
@@ -0,0 +1,2 @@
1
+ test *args:
2
+ $(uv python find) -m pytest {{args}}
@@ -8,13 +8,13 @@ default_install_hook_types:
8
8
 
9
9
  repos:
10
10
  - repo: https://github.com/compilerla/conventional-pre-commit
11
- rev: v4.0.0
11
+ rev: v4.3.0
12
12
  hooks:
13
13
  - id: conventional-pre-commit
14
14
  stages: [commit-msg]
15
15
  # args: [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]
16
16
  - repo: https://github.com/pre-commit/pre-commit-hooks
17
- rev: v5.0.0
17
+ rev: v6.0.0
18
18
  hooks:
19
19
  - id: check-toml
20
20
  - id: check-yaml
@@ -24,20 +24,21 @@ repos:
24
24
  - id: name-tests-test
25
25
  - id: trailing-whitespace
26
26
  - repo: https://github.com/pappasam/toml-sort
27
- rev: v0.24.2
27
+ rev: v0.24.3
28
28
  hooks:
29
29
  - id: toml-sort-fix
30
+ exclude: ^Cargo.lock$
30
31
  - repo: https://github.com/asottile/add-trailing-comma
31
- rev: v3.1.0
32
+ rev: v4.0.0
32
33
  hooks:
33
34
  - id: add-trailing-comma
34
35
  - repo: https://github.com/asottile/pyupgrade
35
- rev: v3.19.1
36
+ rev: v3.21.0
36
37
  hooks:
37
38
  - id: pyupgrade
38
39
  args: [--py310-plus]
39
40
  - repo: https://github.com/astral-sh/ruff-pre-commit
40
- rev: v0.9.7
41
+ rev: v0.14.1
41
42
  hooks:
42
43
  # Run the linter
43
44
  - id: ruff
@@ -140,12 +140,6 @@ dependencies = [
140
140
  "syn",
141
141
  ]
142
142
 
143
- [[package]]
144
- name = "bumpalo"
145
- version = "3.17.0"
146
- source = "registry+https://github.com/rust-lang/crates.io-index"
147
- checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf"
148
-
149
143
  [[package]]
150
144
  name = "caseless"
151
145
  version = "0.2.2"
@@ -221,24 +215,24 @@ checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
221
215
  name = "comrak"
222
216
  version = "0.1.0"
223
217
  dependencies = [
224
- "comrak 0.35.0",
218
+ "comrak 0.45.0",
225
219
  "pyo3",
226
220
  ]
227
221
 
228
222
  [[package]]
229
223
  name = "comrak"
230
- version = "0.35.0"
224
+ version = "0.45.0"
231
225
  source = "registry+https://github.com/rust-lang/crates.io-index"
232
- checksum = "52602e10393cfaaf8accaf707f2da743dc22cbe700a343ff8dbc9e5e04bc6b74"
226
+ checksum = "3f297347343278e6e3581015487de80ec975d8e7c8bd4905b604cef1ae5ecf89"
233
227
  dependencies = [
234
228
  "bon",
235
229
  "caseless",
236
230
  "clap",
237
231
  "emojis",
238
232
  "entities",
239
- "memchr",
233
+ "fmt2io",
234
+ "jetscii",
240
235
  "shell-words",
241
- "slug",
242
236
  "syntect",
243
237
  "typed-arena",
244
238
  "unicode_categories",
@@ -298,12 +292,6 @@ dependencies = [
298
292
  "powerfmt",
299
293
  ]
300
294
 
301
- [[package]]
302
- name = "deunicode"
303
- version = "1.6.0"
304
- source = "registry+https://github.com/rust-lang/crates.io-index"
305
- checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00"
306
-
307
295
  [[package]]
308
296
  name = "emojis"
309
297
  version = "0.6.4"
@@ -355,6 +343,12 @@ dependencies = [
355
343
  "miniz_oxide",
356
344
  ]
357
345
 
346
+ [[package]]
347
+ name = "fmt2io"
348
+ version = "1.0.0"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "6b6129284da9f7e5296cc22183a63f24300e945e297705dcc0672f7df01d62c8"
351
+
358
352
  [[package]]
359
353
  name = "fnv"
360
354
  version = "1.0.7"
@@ -407,6 +401,12 @@ version = "1.0.14"
407
401
  source = "registry+https://github.com/rust-lang/crates.io-index"
408
402
  checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
409
403
 
404
+ [[package]]
405
+ name = "jetscii"
406
+ version = "0.5.3"
407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
408
+ checksum = "47f142fe24a9c9944451e8349de0a56af5f3e7226dc46f3ed4d4ecc0b85af75e"
409
+
410
410
  [[package]]
411
411
  name = "libc"
412
412
  version = "0.2.169"
@@ -425,12 +425,6 @@ version = "0.4.15"
425
425
  source = "registry+https://github.com/rust-lang/crates.io-index"
426
426
  checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
427
427
 
428
- [[package]]
429
- name = "log"
430
- version = "0.4.25"
431
- source = "registry+https://github.com/rust-lang/crates.io-index"
432
- checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f"
433
-
434
428
  [[package]]
435
429
  name = "memchr"
436
430
  version = "2.7.4"
@@ -463,9 +457,9 @@ checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
463
457
 
464
458
  [[package]]
465
459
  name = "once_cell"
466
- version = "1.20.3"
460
+ version = "1.21.3"
467
461
  source = "registry+https://github.com/rust-lang/crates.io-index"
468
- checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e"
462
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
469
463
 
470
464
  [[package]]
471
465
  name = "onig"
@@ -559,11 +553,10 @@ dependencies = [
559
553
 
560
554
  [[package]]
561
555
  name = "pyo3"
562
- version = "0.23.4"
556
+ version = "0.27.0"
563
557
  source = "registry+https://github.com/rust-lang/crates.io-index"
564
- checksum = "57fe09249128b3173d092de9523eaa75136bf7ba85e0d69eca241c7939c933cc"
558
+ checksum = "fa8e48c12afdeb26aa4be4e5c49fb5e11c3efa0878db783a960eea2b9ac6dd19"
565
559
  dependencies = [
566
- "cfg-if",
567
560
  "indoc",
568
561
  "libc",
569
562
  "memoffset",
@@ -577,19 +570,18 @@ dependencies = [
577
570
 
578
571
  [[package]]
579
572
  name = "pyo3-build-config"
580
- version = "0.23.4"
573
+ version = "0.27.0"
581
574
  source = "registry+https://github.com/rust-lang/crates.io-index"
582
- checksum = "1cd3927b5a78757a0d71aa9dff669f903b1eb64b54142a9bd9f757f8fde65fd7"
575
+ checksum = "bc1989dbf2b60852e0782c7487ebf0b4c7f43161ffe820849b56cf05f945cee1"
583
576
  dependencies = [
584
- "once_cell",
585
577
  "target-lexicon",
586
578
  ]
587
579
 
588
580
  [[package]]
589
581
  name = "pyo3-ffi"
590
- version = "0.23.4"
582
+ version = "0.27.0"
591
583
  source = "registry+https://github.com/rust-lang/crates.io-index"
592
- checksum = "dab6bb2102bd8f991e7749f130a70d05dd557613e39ed2deeee8e9ca0c4d548d"
584
+ checksum = "c808286da7500385148930152e54fb6883452033085bf1f857d85d4e82ca905c"
593
585
  dependencies = [
594
586
  "libc",
595
587
  "pyo3-build-config",
@@ -597,9 +589,9 @@ dependencies = [
597
589
 
598
590
  [[package]]
599
591
  name = "pyo3-macros"
600
- version = "0.23.4"
592
+ version = "0.27.0"
601
593
  source = "registry+https://github.com/rust-lang/crates.io-index"
602
- checksum = "91871864b353fd5ffcb3f91f2f703a22a9797c91b9ab497b1acac7b07ae509c7"
594
+ checksum = "83a0543c16be0d86cf0dbf2e2b636ece9fd38f20406bb43c255e0bc368095f92"
603
595
  dependencies = [
604
596
  "proc-macro2",
605
597
  "pyo3-macros-backend",
@@ -609,9 +601,9 @@ dependencies = [
609
601
 
610
602
  [[package]]
611
603
  name = "pyo3-macros-backend"
612
- version = "0.23.4"
604
+ version = "0.27.0"
613
605
  source = "registry+https://github.com/rust-lang/crates.io-index"
614
- checksum = "43abc3b80bc20f3facd86cd3c60beed58c3e2aa26213f3cda368de39c60a27e4"
606
+ checksum = "2a00da2ce064dcd582448ea24a5a26fa9527e0483103019b741ebcbe632dcd29"
615
607
  dependencies = [
616
608
  "heck",
617
609
  "proc-macro2",
@@ -751,16 +743,6 @@ version = "1.0.1"
751
743
  source = "registry+https://github.com/rust-lang/crates.io-index"
752
744
  checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
753
745
 
754
- [[package]]
755
- name = "slug"
756
- version = "0.1.6"
757
- source = "registry+https://github.com/rust-lang/crates.io-index"
758
- checksum = "882a80f72ee45de3cc9a5afeb2da0331d58df69e4e7d8eeb5d3c7784ae67e724"
759
- dependencies = [
760
- "deunicode",
761
- "wasm-bindgen",
762
- ]
763
-
764
746
  [[package]]
765
747
  name = "strsim"
766
748
  version = "0.11.1"
@@ -803,9 +785,9 @@ dependencies = [
803
785
 
804
786
  [[package]]
805
787
  name = "target-lexicon"
806
- version = "0.12.16"
788
+ version = "0.13.2"
807
789
  source = "registry+https://github.com/rust-lang/crates.io-index"
808
- checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
790
+ checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
809
791
 
810
792
  [[package]]
811
793
  name = "terminal_size"
@@ -932,64 +914,6 @@ dependencies = [
932
914
  "winapi-util",
933
915
  ]
934
916
 
935
- [[package]]
936
- name = "wasm-bindgen"
937
- version = "0.2.100"
938
- source = "registry+https://github.com/rust-lang/crates.io-index"
939
- checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
940
- dependencies = [
941
- "cfg-if",
942
- "once_cell",
943
- "rustversion",
944
- "wasm-bindgen-macro",
945
- ]
946
-
947
- [[package]]
948
- name = "wasm-bindgen-backend"
949
- version = "0.2.100"
950
- source = "registry+https://github.com/rust-lang/crates.io-index"
951
- checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
952
- dependencies = [
953
- "bumpalo",
954
- "log",
955
- "proc-macro2",
956
- "quote",
957
- "syn",
958
- "wasm-bindgen-shared",
959
- ]
960
-
961
- [[package]]
962
- name = "wasm-bindgen-macro"
963
- version = "0.2.100"
964
- source = "registry+https://github.com/rust-lang/crates.io-index"
965
- checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
966
- dependencies = [
967
- "quote",
968
- "wasm-bindgen-macro-support",
969
- ]
970
-
971
- [[package]]
972
- name = "wasm-bindgen-macro-support"
973
- version = "0.2.100"
974
- source = "registry+https://github.com/rust-lang/crates.io-index"
975
- checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
976
- dependencies = [
977
- "proc-macro2",
978
- "quote",
979
- "syn",
980
- "wasm-bindgen-backend",
981
- "wasm-bindgen-shared",
982
- ]
983
-
984
- [[package]]
985
- name = "wasm-bindgen-shared"
986
- version = "0.2.100"
987
- source = "registry+https://github.com/rust-lang/crates.io-index"
988
- checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
989
- dependencies = [
990
- "unicode-ident",
991
- ]
992
-
993
917
  [[package]]
994
918
  name = "winapi-util"
995
919
  version = "0.1.9"
@@ -1,6 +1,6 @@
1
1
  [dependencies]
2
- comrak_lib = {package = "comrak", version = "0.35.0", features = ["shortcodes"]}
3
- pyo3 = "0.23.3"
2
+ comrak_lib = {package = "comrak", version = "0.45.0", features = ["shortcodes"]}
3
+ pyo3 = "0.27.0"
4
4
 
5
5
  [lib]
6
6
  name = "comrak"
@@ -10,6 +10,7 @@ crate-type = ["cdylib"]
10
10
  name = "comrak"
11
11
  version = "0.1.0"
12
12
  edition = "2021"
13
+ readme = "README.md"
13
14
 
14
15
  [profile.release]
15
16
  opt-level = 2
@@ -0,0 +1,5 @@
1
+ ## Release process
2
+
3
+ Optionally run `just` to run the pre-commit hooks
4
+
5
+ - `just release` will bump and push both a release commit and a tag
comrak-0.0.8/Justfile ADDED
@@ -0,0 +1,6 @@
1
+ import ".just/commit.just"
2
+ import ".just/ship.just"
3
+ import ".just/test.just"
4
+
5
+ pc-fix:
6
+ prek run --all-files
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: comrak
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Classifier: Intended Audience :: Developers
5
5
  Classifier: License :: OSI Approved :: MIT License
6
6
  Classifier: Programming Language :: Rust
@@ -12,15 +12,8 @@ Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
14
  Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
15
16
  Classifier: Programming Language :: Python :: 3.9
16
- Requires-Dist: maturin[patchelf]>=1.8.2 ; extra == 'dev'
17
- Requires-Dist: pdm>=2.22.3 ; extra == 'dev'
18
- Requires-Dist: pdm-bump>=0.9.10 ; extra == 'dev'
19
- Requires-Dist: pre-commit>=4.1.0 ; extra == 'dev'
20
- Requires-Dist: markdown>=3.7 ; extra == 'bench'
21
- Requires-Dist: markdown2>=2.5.3 ; extra == 'bench'
22
- Provides-Extra: dev
23
- Provides-Extra: bench
24
17
  License-File: LICENSE
25
18
  Summary: Python bindings for the Comrak Rust library, a fast CommonMark/GFM parser
26
19
  Keywords: markdown,html,rust,commonmark,gfm,parser
@@ -0,0 +1,71 @@
1
+ [build-system]
2
+ requires = [
3
+ "maturin>=1.9.6,<2.0"
4
+ ]
5
+ build-backend = "maturin"
6
+
7
+ [dependency-groups]
8
+ bench = [
9
+ "markdown>=3.7",
10
+ "markdown2>=2.5.3"
11
+ ]
12
+ build = ["maturin>=1.9.6", "patchelf>=0.17.2.4"]
13
+ dev = [
14
+ "maturin[patchelf]>=1.9.6",
15
+ "pdbpp>=0.11.7",
16
+ "pdm>=2.22.3",
17
+ "pre-commit>=4.1.0"
18
+ ]
19
+ test = [
20
+ "pytest>=8.4.0"
21
+ ]
22
+
23
+ [project]
24
+ name = "comrak"
25
+ description = "Python bindings for the Comrak Rust library, a fast CommonMark/GFM parser"
26
+ classifiers = [
27
+ "Intended Audience :: Developers",
28
+ "License :: OSI Approved :: MIT License",
29
+ "Programming Language :: Rust",
30
+ "Programming Language :: Python :: Implementation :: CPython",
31
+ "Programming Language :: Python :: Implementation :: PyPy",
32
+ "Operating System :: OS Independent",
33
+ "Programming Language :: Python :: 3",
34
+ "Programming Language :: Python :: 3.10",
35
+ "Programming Language :: Python :: 3.11",
36
+ "Programming Language :: Python :: 3.12",
37
+ "Programming Language :: Python :: 3.13",
38
+ "Programming Language :: Python :: 3.14",
39
+ "Programming Language :: Python :: 3.9"
40
+ ]
41
+ authors = [
42
+ {email = "louismmx@gmail.com", name = "Louis Maddox"}
43
+ ]
44
+ keywords = [
45
+ "markdown",
46
+ "html",
47
+ "rust",
48
+ "commonmark",
49
+ "gfm",
50
+ "parser"
51
+ ]
52
+ readme = "README.md"
53
+ requires-python = ">=3.9"
54
+ version = "0.0.8"
55
+
56
+ [project.license]
57
+ file = "LICENSE"
58
+
59
+ [project.urls]
60
+ Homepage = "https://github.com/lmmx/comrak"
61
+ Repository = "https://github.com/lmmx/comrak.git"
62
+
63
+ [tool.maturin]
64
+ features = [
65
+ "pyo3/extension-module"
66
+ ]
67
+
68
+ [tool.uv]
69
+ # Build Rust code in development mode (faster builds)
70
+ # config-settings = { build-args = "--profile=dev" }
71
+ default-groups = ["build", "dev", "test"]