Skip to content

build(medcat and medcat-den and medcat-embedding-linker): Fix spacy-click issue#518

Merged
mart-r merged 5 commits into
mainfrom
build/medcat-plus-plus/fix-spacy-click-issue
May 29, 2026
Merged

build(medcat and medcat-den and medcat-embedding-linker): Fix spacy-click issue#518
mart-r merged 5 commits into
mainfrom
build/medcat-plus-plus/fix-spacy-click-issue

Conversation

@mart-r
Copy link
Copy Markdown
Collaborator

@mart-r mart-r commented May 29, 2026

This PR will fix this once and for all by explicitly requiring click. Related to #505 and #507.

I didn't originally want to add click as a dependency since that wasn't the culprit. But typer already managed to get a subsequent release in, and as such broke all our installs again. So I'm going to bite the bullet and have it in here still.

EDIT:
Notably, the typer constraint isn't actually needed after this change. So may be better off removing it instead of widening it like I did now.

Comment thread medcat-den/pyproject.toml Outdated
# e.g `spacy`'s dependency `click` isn't installed
"typer!=0.26.0,!=0.26.1,!=0.26.2",
"typer!=0.26.*",
# transitive dependency that spacy needs but doesn't delcare...
Copy link
Copy Markdown
Contributor

@jocelyneholdbrook jocelyneholdbrook May 29, 2026

Choose a reason for hiding this comment

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

minor - type in declare. same below

Copy link
Copy Markdown
Contributor

@jocelyneholdbrook jocelyneholdbrook left a comment

Choose a reason for hiding this comment

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

typo in declare otherwise looks good to me

@mart-r mart-r merged commit ff042aa into main May 29, 2026
32 checks passed
@mart-r mart-r deleted the build/medcat-plus-plus/fix-spacy-click-issue branch May 29, 2026 11:31
mart-r added a commit that referenced this pull request May 29, 2026
…lick issue (#518)

* Explicitly require click as a dependency to fix spacy issue

* Explicitly require click as a dependency to fix spacy issue for medcat-den

* Explicitly require click as a dependency to fix spacy issue for embedding linker

* Unify typer install restrictions

* Fix typos in comment

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mart-r added a commit that referenced this pull request May 29, 2026
…lick issue (#518)

* Explicitly require click as a dependency to fix spacy issue

* Explicitly require click as a dependency to fix spacy issue for medcat-den

* Explicitly require click as a dependency to fix spacy issue for embedding linker

* Unify typer install restrictions

* Fix typos in comment

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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