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

@@ -11,7 +11,7 @@ on:
11
11
  - main
12
12
  - master
13
13
  tags:
14
- - '*'
14
+ - "*"
15
15
  pull_request:
16
16
  workflow_dispatch:
17
17
 
@@ -19,7 +19,28 @@ permissions:
19
19
  contents: read
20
20
 
21
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 == 'lmmx')
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
+
22
42
  linux:
43
+ needs: [check-commit]
23
44
  runs-on: ${{ matrix.platform.runner }}
24
45
  strategy:
25
46
  matrix:
@@ -27,7 +48,7 @@ jobs:
27
48
  - runner: ubuntu-22.04
28
49
  target: x86_64
29
50
  - runner: ubuntu-22.04
30
- target: x86
51
+ target: i686-unknown-linux-gnu
31
52
  - runner: ubuntu-22.04
32
53
  target: aarch64
33
54
  - runner: ubuntu-22.04
@@ -42,7 +63,8 @@ jobs:
42
63
  with:
43
64
  python-version: 3.x
44
65
  - name: Build wheels
45
- uses: PyO3/maturin-action@v1
66
+ # uses: PyO3/maturin-action@v1.47.1
67
+ uses: PyO3/maturin-action@refs/pull/330/head
46
68
  with:
47
69
  target: ${{ matrix.platform.target }}
48
70
  args: --release --out dist --find-interpreter
@@ -55,6 +77,7 @@ jobs:
55
77
  path: dist
56
78
 
57
79
  musllinux:
80
+ needs: [check-commit]
58
81
  runs-on: ${{ matrix.platform.runner }}
59
82
  strategy:
60
83
  matrix:
@@ -62,7 +85,7 @@ jobs:
62
85
  - runner: ubuntu-22.04
63
86
  target: x86_64
64
87
  - runner: ubuntu-22.04
65
- target: x86
88
+ target: i686
66
89
  - runner: ubuntu-22.04
67
90
  target: aarch64
68
91
  - runner: ubuntu-22.04
@@ -86,6 +109,7 @@ jobs:
86
109
  path: dist
87
110
 
88
111
  windows:
112
+ needs: [check-commit]
89
113
  runs-on: ${{ matrix.platform.runner }}
90
114
  strategy:
91
115
  matrix:
@@ -113,6 +137,7 @@ jobs:
113
137
  path: dist
114
138
 
115
139
  macos:
140
+ needs: [check-commit]
116
141
  runs-on: ${{ matrix.platform.runner }}
117
142
  strategy:
118
143
  matrix:
@@ -139,6 +164,7 @@ jobs:
139
164
  path: dist
140
165
 
141
166
  sdist:
167
+ needs: [check-commit]
142
168
  runs-on: ubuntu-latest
143
169
  steps:
144
170
  - uses: actions/checkout@v4
@@ -170,7 +196,7 @@ jobs:
170
196
  - name: Generate artifact attestation
171
197
  uses: actions/attest-build-provenance@v1
172
198
  with:
173
- subject-path: 'wheels-*/*'
199
+ subject-path: "wheels-*/*"
174
200
  - name: Publish to PyPI
175
201
  if: ${{ startsWith(github.ref, 'refs/tags/') }}
176
202
  uses: PyO3/maturin-action@v1
@@ -8,7 +8,7 @@ default_install_hook_types:
8
8
 
9
9
  repos:
10
10
  - repo: https://github.com/compilerla/conventional-pre-commit
11
- rev: v3.2.0
11
+ rev: v4.0.0
12
12
  hooks:
13
13
  - id: conventional-pre-commit
14
14
  stages: [commit-msg]
@@ -24,7 +24,7 @@ repos:
24
24
  - id: name-tests-test
25
25
  - id: trailing-whitespace
26
26
  - repo: https://github.com/pappasam/toml-sort
27
- rev: v0.23.1
27
+ rev: v0.24.2
28
28
  hooks:
29
29
  - id: toml-sort-fix
30
30
  - repo: https://github.com/asottile/add-trailing-comma
@@ -32,12 +32,12 @@ repos:
32
32
  hooks:
33
33
  - id: add-trailing-comma
34
34
  - repo: https://github.com/asottile/pyupgrade
35
- rev: v3.15.2
35
+ rev: v3.19.1
36
36
  hooks:
37
37
  - id: pyupgrade
38
38
  args: [--py310-plus]
39
39
  - repo: https://github.com/astral-sh/ruff-pre-commit
40
- rev: v0.3.5
40
+ rev: v0.9.7
41
41
  hooks:
42
42
  # Run the linter
43
43
  - id: ruff
@@ -10,3 +10,11 @@ crate-type = ["cdylib"]
10
10
  name = "comrak"
11
11
  version = "0.1.0"
12
12
  edition = "2021"
13
+
14
+ [profile.release]
15
+ opt-level = 2
16
+ lto = "thin"
17
+ codegen-units = 1
18
+ panic = "abort"
19
+ debug = false
20
+ strip = "symbols"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: comrak
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Classifier: Intended Audience :: Developers
5
5
  Classifier: License :: OSI Approved :: MIT License
6
6
  Classifier: Programming Language :: Rust
@@ -0,0 +1,61 @@
1
+ [build-system]
2
+ requires = [
3
+ "maturin>=1.8,<2.0",
4
+ ]
5
+ build-backend = "maturin"
6
+
7
+ [project]
8
+ name = "comrak"
9
+ description = "Python bindings for the Comrak Rust library, a fast CommonMark/GFM parser"
10
+ classifiers = [
11
+ "Intended Audience :: Developers",
12
+ "License :: OSI Approved :: MIT License",
13
+ "Programming Language :: Rust",
14
+ "Programming Language :: Python :: Implementation :: CPython",
15
+ "Programming Language :: Python :: Implementation :: PyPy",
16
+ "Operating System :: OS Independent",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Programming Language :: Python :: 3.9",
23
+ ]
24
+ authors = [
25
+ { email = "louismmx@gmail.com", name = "Louis Maddox" },
26
+ ]
27
+ keywords = [
28
+ "markdown",
29
+ "html",
30
+ "rust",
31
+ "commonmark",
32
+ "gfm",
33
+ "parser",
34
+ ]
35
+ readme = "README.md"
36
+ requires-python = ">=3.9"
37
+ version = "0.0.6"
38
+
39
+ [project.license]
40
+ file = "LICENSE"
41
+
42
+ [project.optional-dependencies]
43
+ dev = [
44
+ "maturin[patchelf]>=1.8.2",
45
+ "pdm>=2.22.3",
46
+ "pdm-bump>=0.9.10",
47
+ "pre-commit>=4.1.0",
48
+ ]
49
+ bench = [
50
+ "markdown>=3.7",
51
+ "markdown2>=2.5.3",
52
+ ]
53
+
54
+ [project.urls]
55
+ Homepage = "https://github.com/lmmx/comrak"
56
+ Repository = "https://github.com/lmmx/comrak.git"
57
+
58
+ [tool.maturin]
59
+ features = [
60
+ "pyo3/extension-module",
61
+ ]
@@ -1,61 +0,0 @@
1
- [build-system]
2
- requires = [
3
- "maturin>=1.8,<2.0"
4
- ]
5
- build-backend = "maturin"
6
-
7
- [project]
8
- name = "comrak"
9
- description = "Python bindings for the Comrak Rust library, a fast CommonMark/GFM parser"
10
- classifiers = [
11
- "Intended Audience :: Developers",
12
- "License :: OSI Approved :: MIT License",
13
- "Programming Language :: Rust",
14
- "Programming Language :: Python :: Implementation :: CPython",
15
- "Programming Language :: Python :: Implementation :: PyPy",
16
- "Operating System :: OS Independent",
17
- "Programming Language :: Python :: 3",
18
- "Programming Language :: Python :: 3.10",
19
- "Programming Language :: Python :: 3.11",
20
- "Programming Language :: Python :: 3.12",
21
- "Programming Language :: Python :: 3.13",
22
- "Programming Language :: Python :: 3.9"
23
- ]
24
- authors = [
25
- {email = "louismmx@gmail.com", name = "Louis Maddox"}
26
- ]
27
- keywords = [
28
- "markdown",
29
- "html",
30
- "rust",
31
- "commonmark",
32
- "gfm",
33
- "parser"
34
- ]
35
- readme = "README.md"
36
- requires-python = ">=3.9"
37
- version = "0.0.5"
38
-
39
- [project.license]
40
- file = "LICENSE"
41
-
42
- [project.optional-dependencies]
43
- dev = [
44
- "maturin[patchelf]>=1.8.2",
45
- "pdm>=2.22.3",
46
- "pdm-bump>=0.9.10",
47
- "pre-commit>=4.1.0",
48
- ]
49
- bench = [
50
- "markdown>=3.7",
51
- "markdown2>=2.5.3"
52
- ]
53
-
54
- [project.urls]
55
- Homepage = "https://github.com/lmmx/comrak"
56
- Repository = "https://github.com/lmmx/comrak.git"
57
-
58
- [tool.maturin]
59
- features = [
60
- "pyo3/extension-module"
61
- ]
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