Repository navigation
Build and run QuickUMLS with uv - #105
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 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.tomland 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Install this checkout with
uv sync --lockedand build its wheel and source distribution withuv build. Package metadata and runtime dependency ranges live inpyproject.toml, anduv.lockrecords 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 callpython -m pipto 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
C_TEST_001with similarity1.0on 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.pip checkon Python 3.11.