Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
rm -f dist/bzip2-* dist/libffi-* dist/mpdecimal-* dist/openssl-* dist/sqlite-* dist/xz-*

- name: Publish wheels
if: ${{ inputs.publish && hashFiles('dist/*.whl') != '' }}
if: ${{ hashFiles('dist/*.whl') != '' && (inputs.publish || (github.event_name == 'push' && github.ref == 'refs/heads/python3.12')) }}
shell: bash
env:
GEMFURY_TOKEN: ${{ secrets.GEMFURY_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions recipes/selectolax/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package:
name: selectolax
version: 0.4.10
16 changes: 16 additions & 0 deletions recipes/selectolax/test_selectolax.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
def test_modest_parser():
"""Parse HTML + CSS-select with the Modest engine."""
from selectolax.parser import HTMLParser

tree = HTMLParser("<div><p class='x'>hello</p><p class='x'>world</p></div>")
nodes = tree.css("p.x")
assert [n.text() for n in nodes] == ["hello", "world"]


def test_lexbor_parser():
"""Parse HTML + CSS-select with the Lexbor engine."""
from selectolax.lexbor import LexborHTMLParser

tree = LexborHTMLParser("<ul><li>a</li><li>b</li><li>c</li></ul>")
items = tree.css("li")
assert [n.text() for n in items] == ["a", "b", "c"]
Loading