Fedora Account System
Red Hat Associate
Red Hat Customer
Spec URL: https://echevemaster.fedorapeople.org/review/python-frostwork/python-frostwork.spec SRPM URL: https://echevemaster.fedorapeople.org/review/python-frostwork/python-frostwork-0.2.2-1.fc46.src.rpm Description: Frostwork compiles a set of CSS or XPath selectors and extracts their values in one scan of an HTML response, without building a DOM. Working memory tracks parser state, pending matches and returned values, without storing a document tree. It supports a focused selector subset, continuously checked against Parsel/lxml, and can be used from Scrapy callbacks, web-poet pages or standalone code. Fedora Account System Username: echevemaster This is a new dependency of Scrapy 2.20.0 (bug 2568426), which I maintain as python-scrapy. Notes: - Python extension written in Rust (maturin + pyo3), built against the Rust crates packaged in Fedora. - Cargo.toml is patched to accept pyo3 0.30 (upstream pins 0.29); it builds and the tests pass with 0.30. - Requires chardetng 1.0 (new API), but Fedora currently has rust-chardetng 0.1.17 (bug 2453010). A Koji scratch build is not possible until rust-chardetng is updated. A local mock build for rawhide with rust-chardetng 1.0.0 succeeded: 234 tests passed, 1 deselected (needs web-poet, not in Fedora). Build log: https://echevemaster.fedorapeople.org/review/python-frostwork/build.log - rpmlint: only a spelling false positive (lxml) and no-manual-page-for-binary for frostwork-audit.
Status update on the rust-chardetng dependency (bug 2453010): I've opened a pull request updating rust-chardetng to 1.0.0: https://src.fedoraproject.org/rpms/rust-chardetng/pull-request/2 Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=152192231 Once it is merged and built, I'll run a Koji scratch build of python-frostwork and post it here. For context, frostwork is now also required by python-w3lib 2.6.0 (https://src.fedoraproject.org/rpms/python-w3lib/pull-request/7), so the full chain for Scrapy 2.20.0 (bug 2568426) is: rust-chardetng 1.0.0 -> python-frostwork -> python-w3lib 2.6.0 -> python-scrapy 2.20.0