kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Remove the beautifulsoup4 dependency

Open rtibblesbot opened this issue 2 months ago • 3 comments

🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:

  • Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
  • Confirm that you’ve read the guidelines in your comment.

Overview

build_tools/install_cexts.py is the only code that imports beautifulsoup4. It uses it only to collect <a> tags from a PyPI/piwheels simple-index page. The pin is held at 4.8.2 because 4.15.0 dropped Python 3.6, which broke the 3.6 CI jobs in #15450.

Complexity: Low Target branch: develop

Context

The Change

  • install_cexts.py should extract wheel link names from the index page using only the standard library, so that beautifulsoup4 can be dropped everywhere.

Acceptance Criteria

  • [ ] No bs4 / beautifulsoup4 reference remains in build_tools/, test/, pyproject.toml, or uv.lock.
  • [ ] install_cexts.py still runs on Python 3.6.
  • [ ] parse_package_page selects the same wheels as before from a real PyPI simple-index page for a package in requirements/cext.txt.
  • [ ] Unit tests cover link extraction from a sample index page, including non-.whl links being skipped.
  • [ ] Python tests pass on all CI Python versions, including 3.6.

AI usage

@rtibbles asked for this follow-up on #15450. Claude Code (rtibblesbot) traced the bs4 usages on develop and drafted the issue.

rtibblesbot avatar Oct 02 '26 13:10 rtibblesbot

Hi! 👋

This issue is available for contribution and supports self-assignment. Here's how to get started:

  • Comment /assign to assign yourself to this issue
  • You can have up to 2 issues assigned at a time across all community repos
  • Dropping an issue has a 7-day cooldown before the slot opens up
  • Link your pull request to this issue when you submit it

📖 Read the Contributing guidelines before starting.

Are you preparing for Google Summer of Code? See our GSoC guidelines.

learning-equality-bot avatar Oct 02 '26 15:10 learning-equality-bot

/assign

dhruv-dagar avatar Oct 02 '26 15:10 dhruv-dagar

Hi! 👋

You've been assigned to this issue. Here's what to do next:

  • Read the issue description carefully and make sure you understand the requirements
  • Link your pull request to this issue when you submit it
  • If you can no longer work on this, unassign yourself so others can pick it up

Good luck! 😊

Are you preparing for Google Summer of Code? See our GSoC guidelines.

learning-equality-bot avatar Oct 02 '26 15:10 learning-equality-bot