Skip to content

Build and run QuickUMLS with uv - #105

Merged
soldni merged 4 commits into
masterfrom
codex/uv-build-ci
Nov 26, 2026
Merged

soldni merged 4 commits into
masterfrom
codex/uv-build-ci

Conversation

@soldni

@soldni soldni commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Install this checkout with uv sync --locked and build its wheel and source distribution with uv build. Package metadata and runtime dependency ranges live in pyproject.toml, and uv.lock records the development and CI environment.

The checkout selects Python 3.11. The build backend requires Python 3.8 or newer, and the current SimString binding imports imp, which Python 3.12 removed. On Python 3.8 and 3.9, the compatible spaCy releases call python -m pip to install language models, so the lockfile includes pip for those interpreters. The README also covers preserving downloaded models across syncs. See the Python 3.12 installation report.

Verification

  • All three GitHub jobs passed on Ubuntu with Python 3.8 and 3.11 and macOS with Python 3.11. Each job synced the lockfile, installed the English spaCy model, and ran the smoke tests against the checkout, the wheel, and the source distribution. Actions run
  • On Apple Silicon, the normal installer downloaded the English model, built an index from fictional RRF data, and the matcher returned C_TEST_001 with similarity 1.0 on Python 3.8.20, 3.9.6, 3.10.22, and 3.11.18. Xcode’s Python 3.9.6 emitted urllib3’s LibreSSL warning and completed the lookup.
  • An independent pip install from the source distribution passed both smoke tests and pip check on Python 3.11.

@soldni
soldni marked this pull request as ready for review November 26, 2026 21:31
Copilot AI balanced review requested due to automatic review settings November 26, 2026 21:31
@soldni
soldni merged commit 0b24acb into master Nov 26, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the uv packaging migration.

No open issues 🎉

What changed in this PR

Migrates QuickUMLS from setuptools packaging to uv, centralizing package metadata and dependencies while documenting Python 3.8–3.11 support and selecting Python 3.11 for checkout development.

Changes:

  • Replaces legacy packaging files with pyproject.toml and uv build configuration.
  • Documents installation, model preservation, testing, and distribution builds with uv.
  • Adds distribution smoke tests and CI coverage for checkout, wheel, and source-distribution installs.
File Description
tests/​test_distribution.py Adds version and install-and-match smoke tests using fictional data.
setup.py Removes the legacy setuptools packaging script.
requirements.txt Removes dependencies now declared in pyproject.toml.
README.md Documents supported Python versions and uv workflows.
pyproject.toml Defines package metadata, dependencies, and the uv build backend.
MANIFEST.in Removes the obsolete setuptools source manifest.
.python-version Selects Python 3.11 for the checkout.
.gitignore Ignores .venv and allows tracking .python-version.
.github/​workflows/​uv.yml Adds Linux and macOS CI for uv installation, builds, and smoke tests.

Review effort: Balanced

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.

2 participants