comrak-ext 0.1.0__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.
@@ -0,0 +1,9 @@
1
+ .aiignore
2
+ Cargo.lock
3
+ target
4
+ uv.lock
5
+ .git
6
+ .venv
7
+ .ruff_cache
8
+ dist
9
+ LICENSE
@@ -0,0 +1,204 @@
1
+ # This file is autogenerated by maturin v1.8.2
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+ - master
13
+ tags:
14
+ - "*"
15
+ pull_request:
16
+ workflow_dispatch:
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ check-commit:
23
+ runs-on: ubuntu-latest
24
+ # This job only runs if the commit message meets the condition
25
+ # if: >
26
+ # (
27
+ # (
28
+ # (github.event_name == 'push')
29
+ # || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'Martin005')
30
+ # )
31
+ # &&
32
+ # (
33
+ # startsWith(github.event.head_commit.message, 'chore(release)') ||
34
+ # contains(github.event.head_commit.message, 'cibuildwheel')
35
+ # )
36
+ # )
37
+ # || (github.event_name == 'workflow_dispatch')
38
+ steps:
39
+ - name: Confirm commit message matched
40
+ run: echo "Commit message matched the condition."
41
+
42
+ linux:
43
+ needs: [check-commit]
44
+ runs-on: ${{ matrix.platform.runner }}
45
+ strategy:
46
+ matrix:
47
+ platform:
48
+ - runner: ubuntu-22.04
49
+ target: x86_64
50
+ - runner: ubuntu-22.04
51
+ target: i686-unknown-linux-gnu
52
+ - runner: ubuntu-22.04
53
+ target: aarch64
54
+ - runner: ubuntu-22.04
55
+ target: armv7
56
+ - runner: ubuntu-22.04
57
+ target: s390x
58
+ - runner: ubuntu-22.04
59
+ target: ppc64le
60
+ steps:
61
+ - uses: actions/checkout@v4
62
+ - uses: actions/setup-python@v5
63
+ with:
64
+ python-version: 3.x
65
+ - name: Build wheels
66
+ uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
67
+ with:
68
+ target: ${{ matrix.platform.target }}
69
+ args: --release --out dist --find-interpreter
70
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
71
+ manylinux: auto
72
+ - name: Upload wheels
73
+ uses: actions/upload-artifact@v4
74
+ with:
75
+ name: wheels-linux-${{ matrix.platform.target }}
76
+ path: dist
77
+
78
+ musllinux:
79
+ needs: [check-commit]
80
+ runs-on: ${{ matrix.platform.runner }}
81
+ strategy:
82
+ matrix:
83
+ platform:
84
+ - runner: ubuntu-22.04
85
+ target: x86_64
86
+ - runner: ubuntu-22.04
87
+ target: i686
88
+ - runner: ubuntu-22.04
89
+ target: aarch64
90
+ - runner: ubuntu-22.04
91
+ target: armv7
92
+ steps:
93
+ - uses: actions/checkout@v4
94
+ - uses: actions/setup-python@v5
95
+ with:
96
+ python-version: 3.x
97
+ - name: Build wheels
98
+ uses: PyO3/maturin-action@v1
99
+ with:
100
+ target: ${{ matrix.platform.target }}
101
+ args: --release --out dist --find-interpreter
102
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
103
+ manylinux: musllinux_1_2
104
+ - name: Upload wheels
105
+ uses: actions/upload-artifact@v4
106
+ with:
107
+ name: wheels-musllinux-${{ matrix.platform.target }}
108
+ path: dist
109
+
110
+ windows:
111
+ needs: [check-commit]
112
+ runs-on: ${{ matrix.platform.runner }}
113
+ strategy:
114
+ matrix:
115
+ platform:
116
+ - runner: windows-latest
117
+ target: x64
118
+ - runner: windows-latest
119
+ target: x86
120
+ steps:
121
+ - uses: actions/checkout@v4
122
+ - uses: actions/setup-python@v5
123
+ with:
124
+ python-version: 3.x
125
+ architecture: ${{ matrix.platform.target }}
126
+ - name: Build wheels
127
+ uses: PyO3/maturin-action@v1
128
+ with:
129
+ target: ${{ matrix.platform.target }}
130
+ args: --release --out dist --find-interpreter
131
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
132
+ - name: Upload wheels
133
+ uses: actions/upload-artifact@v4
134
+ with:
135
+ name: wheels-windows-${{ matrix.platform.target }}
136
+ path: dist
137
+
138
+ macos:
139
+ needs: [check-commit]
140
+ runs-on: ${{ matrix.platform.runner }}
141
+ strategy:
142
+ matrix:
143
+ platform:
144
+ - runner: macos-13
145
+ target: x86_64
146
+ - runner: macos-14
147
+ target: aarch64
148
+ steps:
149
+ - uses: actions/checkout@v4
150
+ - uses: actions/setup-python@v5
151
+ with:
152
+ python-version: 3.x
153
+ - name: Build wheels
154
+ uses: PyO3/maturin-action@v1
155
+ with:
156
+ target: ${{ matrix.platform.target }}
157
+ args: --release --out dist --find-interpreter
158
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
159
+ - name: Upload wheels
160
+ uses: actions/upload-artifact@v4
161
+ with:
162
+ name: wheels-macos-${{ matrix.platform.target }}
163
+ path: dist
164
+
165
+ sdist:
166
+ needs: [check-commit]
167
+ runs-on: ubuntu-latest
168
+ steps:
169
+ - uses: actions/checkout@v4
170
+ - name: Build sdist
171
+ uses: PyO3/maturin-action@v1
172
+ with:
173
+ command: sdist
174
+ args: --out dist
175
+ - name: Upload sdist
176
+ uses: actions/upload-artifact@v4
177
+ with:
178
+ name: wheels-sdist
179
+ path: dist
180
+
181
+ release:
182
+ name: Release
183
+ runs-on: ubuntu-latest
184
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
185
+ needs: [linux, musllinux, windows, macos, sdist]
186
+ permissions:
187
+ # Use to sign the release artifacts
188
+ id-token: write
189
+ # Used to upload release artifacts
190
+ contents: write
191
+ # Used to generate artifact attestation
192
+ attestations: write
193
+ steps:
194
+ - uses: actions/download-artifact@v4
195
+ - name: Generate artifact attestation
196
+ uses: actions/attest-build-provenance@v2
197
+ with:
198
+ subject-path: "wheels-*/*"
199
+ - name: Publish to PyPI
200
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
201
+ uses: PyO3/maturin-action@v1
202
+ with:
203
+ command: upload
204
+ args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,74 @@
1
+ /target
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ .pytest_cache/
6
+ *.py[cod]
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ *.sw[op]
12
+
13
+ # Distribution / packaging
14
+ .Python
15
+ .venv/
16
+ env/
17
+ bin/
18
+ build/
19
+ develop-eggs/
20
+ dist/
21
+ eggs/
22
+ lib/
23
+ lib64/
24
+ parts/
25
+ sdist/
26
+ var/
27
+ include/
28
+ man/
29
+ venv/
30
+ *.egg-info/
31
+ .installed.cfg
32
+ *.egg
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+ pip-selfcheck.json
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .coverage
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+
47
+ # Translations
48
+ *.mo
49
+
50
+ # Mr Developer
51
+ .mr.developer.cfg
52
+ .project
53
+ .pydevproject
54
+
55
+ # Rope
56
+ .ropeproject
57
+
58
+ # Django stuff:
59
+ *.log
60
+ *.pot
61
+
62
+ .DS_Store
63
+
64
+ # Sphinx documentation
65
+ docs/_build/
66
+
67
+ # PyCharm
68
+ .idea/
69
+
70
+ # VSCode
71
+ .vscode/
72
+
73
+ # Pyenv
74
+ .python-version
@@ -0,0 +1,42 @@
1
+ ci:
2
+ autofix_commit_msg: "chore(pre-commit): autofix run"
3
+ autoupdate_commit_msg: "chore(pre-commit): autoupdate hooks"
4
+
5
+ default_install_hook_types:
6
+ - pre-commit
7
+ - commit-msg
8
+
9
+ repos:
10
+ - repo: https://github.com/compilerla/conventional-pre-commit
11
+ rev: v4.2.0
12
+ hooks:
13
+ - id: conventional-pre-commit
14
+ stages: [commit-msg]
15
+ # args: [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]
16
+ - repo: https://github.com/pre-commit/pre-commit-hooks
17
+ rev: v6.0.0
18
+ hooks:
19
+ - id: check-toml
20
+ - id: check-yaml
21
+ exclude: ^mkdocs.yml
22
+ - id: debug-statements
23
+ - id: end-of-file-fixer
24
+ - id: name-tests-test
25
+ - id: trailing-whitespace
26
+ - repo: https://github.com/asottile/add-trailing-comma
27
+ rev: v3.2.0
28
+ hooks:
29
+ - id: add-trailing-comma
30
+ - repo: https://github.com/asottile/pyupgrade
31
+ rev: v3.20.0
32
+ hooks:
33
+ - id: pyupgrade
34
+ args: [--py310-plus]
35
+ - repo: https://github.com/astral-sh/ruff-pre-commit
36
+ rev: v0.12.9
37
+ hooks:
38
+ # Run the linter
39
+ - id: ruff
40
+ args: [--fix]
41
+ # Run the formatter
42
+ - id: ruff-format