Skip to content

Fix scikit-sparse dependency#12

Open
mariansam wants to merge 3 commits into
glami:mainfrom
mariansam:modern-python
Open

Fix scikit-sparse dependency#12
mariansam wants to merge 3 commits into
glami:mainfrom
mariansam:modern-python

Conversation

@mariansam

Copy link
Copy Markdown

Installing of the package broke a bit as scikit-sparse released 0.5.0 which isn't API-compatible. This PR fixes the versions required in pyproject.toml. Different scikit-sparse versions are compatible with different Python versions, the new setup supports Python >= 3.10. Perhaps we could add support for Python 3.9 to satisfy i-Hun's needs.

After merging, could you please make a release to PyPI so I can update the version in Cornac? See uv > Publishing your package.

@matospiso matospiso self-requested a review June 13, 2026 12:36

@matospiso matospiso left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you @mariansam for spotting this issue and for the fix.

My suggested changes are just cosmetics, apart from those I see no issue with merging this and releasing v1.1.1.

Regarding Python 3.9 - I don't think we should add support for it since it reached its end of life on October 31, 2025, meaning it no longer receives bug fixes, security patches, or enhancements.

Thanks again for your effort :)

Comment thread pyproject.toml Outdated
Comment thread pyproject.toml
"scikit-sparse >= 0.4.8",
"scipy >= 1.7.3",

'scikit-sparse < 0.5.0',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

simply
scikit-sparse >=0.4.8, <0.5.0
should achieve the same,
the requires-python below will filter the incompatible ones

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

That's not the case unfortunately. When trying to install scikit-sparse 0.4.8 under Python 3.11 (uv python pin 3.11 && uv pip install scikit-sparse==0.4.8) the installation fails with ModuleNotFoundError: No module named 'numpy' (at least when using uv) because that version of scikit-sparse does not specify the numpy dependency for that version of Python. Yikes.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Oops, looks like I pushed wrong changes while testing the version requirements. Fixed, should be alright now.

this is a force-push as the original version commited changes that
shouldn't have been commited
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