On 2024/11/21 15:36, Dylan D'Silva wrote: > Hello OpenBSD ports, > > Thank you for maintaining a vast array of py3-packages. Unfortunately one > of the applications I'm using for the small web called offpunk requires > a couple more which don't come packaged in OpenBSD. > > Is there any chance of getting the following added? > readability-lxml https://github.com/buriy/python-readability > lxml-html-clean https://github.com/fedora-python/lxml_html_clean/ > timg https://github.com/adzierzanowski/timg > > > regards > Dylan >
If you're intending to write a port for offpunk then writing ports for these smaller things would be a good way to get started with porting. But if not then I'd prefer not to add ports for things which won't end up being used by other ports, unless they've got compiled extensions. It's pretty simple to install in a venv instead. For Python applications it's usually simplest to do this via "pipx", and to pkg_add dependencies that use compiled extensions (to reduce build time, and reduce chances they'll break after an OS update). # pkg_add py3-pipx py3-lxml py3-pillow py3-urllib3 Create the venv and tell it to allow system packages to be used inside: $ pipx install --system-site-packages offpunk This will install some things in ~/.local/pipx and create a script in ~/.local/bin/offpunk to run offpunk. You might like to add .local/bin to your PATH. To add the various "semi optional" dependencies to this venv: $ pipx inject offpunk readability-lxml lxml_html_clean timg To later upgrade these: $ pipx upgrade --include-injected offpunk