Ticket #1796 (closed enhancement: fixed)
Get rid of lxml dependency
Reported by: | dread | Owned by: | ross |
---|---|---|---|
Priority: | awaiting triage | Milestone: | ckan-future |
Component: | ckan | Keywords: | |
Cc: | rgrp, kindly | Repository: | ckan |
Theme: | none |
Description
lxml is used in CKAN core in two places:
- ckan/lib/helpers.py:239 Parsing Markdown and ensuring it is valid XML (i.e. tags close nicely so the HTML of the rest of the CKAN page is not disruptable).
- reading the SOLR config XML to determine what version it is.
Both of these could be done with xml.dom built into Python and would save us a sizeable and slightly problematic dependency.
lxml is needed by these extensions: ckanext-inspire, ckanext-harvest, ckanext-csw & ckanext-wordpresser, so we'd have to add this to their requirements.
Change History
Note: See
TracTickets for help on using
tickets.
LXML removed, update requirements on the extensions