Skip to content

fix(deps): remove unused dependencies (xmldict, distlib) - #228

Merged
jimisola merged 3 commits into
mainfrom
fix/remove-unused-dependencies
Feb 25, 2026
Merged

fix(deps): remove unused dependencies (xmldict, distlib)#228
jimisola merged 3 commits into
mainfrom
fix/remove-unused-dependencies

Conversation

@jimisola

Copy link
Copy Markdown
Member

Summary

Remove two unused dependencies that were declared in pyproject.toml but never imported or used in the codebase:

  1. xmldict==0.4.1 — Causes ImportError on Python 3.13; all XML parsing uses stdlib xml.etree.ElementTree
  2. distlib==0.4.0 — Declared but never used; was intended for PyPI sdist support but never implemented

Changes

  • Remove xmldict==0.4.1 from dependencies (commit dab961e)
  • Remove distlib==0.4.0 from dependencies (commit 9da1b60)

Verification

Both packages have zero references in src/ and tests/:

grep -r "xmldict" src/ tests/  # no results
grep -r "distlib" src/ tests/  # no results

All XML parsing uses stdlib xml.etree.ElementTree (testdata_model_generator.py:6)

Test Plan

  • Verify no imports of removed packages
  • Verify pyproject.toml is valid (can parse dependencies)
  • Confirm installation works without these packages

@jimisola jimisola self-assigned this Feb 25, 2026
xmldict is declared in pyproject.toml but never imported or used
anywhere in the codebase (src/ and tests/ have zero references).
Its legacy setup.py format causes ImportError on Python 3.13.

All XML parsing in the project uses the stdlib xml.etree.ElementTree
instead. Removing this dependency resolves the installation failure
on Python 3.13 without any code changes.

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
distlib is declared in pyproject.toml but never imported or used
anywhere in the codebase (src/ and tests/ have zero references).
Originally added in commit b157d8b for PyPI sdist support but never
implemented.

Removing this unused dependency reduces installation overhead and
eliminates an unnecessary transitive dependency.

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
The CI workflow was running all tests including integration tests by using
-m "" (empty marker filter). Integration tests require external resources
(Maven artifacts, Git repos) and should be skipped by default in CI.

Use the standard marker filter -m "not slow and not integration" to match
pyproject.toml configuration and only run unit tests in the build pipeline.

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
@jimisola
jimisola force-pushed the fix/remove-unused-dependencies branch from 5efab13 to 216cbfa Compare February 25, 2026 11:50
@jimisola jimisola changed the title fix: remove unused dependencies (xmldict, distlib) fix(deps): remove unused dependencies (xmldict, distlib) Feb 25, 2026
@jimisola
jimisola merged commit 61ce32f into main Feb 25, 2026
11 checks passed
@jimisola
jimisola deleted the fix/remove-unused-dependencies branch February 25, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant