Skip to content

Conversation

@jolars
Copy link
Contributor

@jolars jolars commented Apr 10, 2025

Context of the PR

The requires-python field in pyproject.toml is missing.

Contributions of the PR

So this PR pins the python version and adds a couple of classifiers related to it for pypi.

Checks before merging PR

  • [ ] added documentation for any new feature
  • [ ] added unit tests
  • [ ] edited the what's new (if applicable)

jolars added 2 commits April 10, 2025 13:58
My development tools (uv) were complaining about the missing
`requires-python` field in `pyproject.toml`. This adds a dependency on
at least 3.11, which is what scipy and numpy currently demands.
pyproject.toml Outdated
]
dynamic = ["version"]

requires-python = ">=3.8"
Copy link
Collaborator

Choose a reason for hiding this comment

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

scikit-learn requires at least 3.9 (e.g classifier)
I don't know to which extent skglm would work with lower version

Copy link
Collaborator

Choose a reason for hiding this comment

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

3.8 has reached its EOL 6 months ago so go for 3.9 !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems reasonable. I originally set this to 3.11 actually, but then saw this:

ERROR: Package 'skglm' requires a different Python: 3.8.1 not in '>=3.9'

in the circle CI test logs, so I figured you needed 3.8. But the error still remains so I guess it's something different.

Scipy and numpy both require at least 3.11 now, numba 3.10.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I just bumped the version of Python used in our circleci workflow to 3.10 instead

@mathurinm
Copy link
Collaborator

@Badr-MOUFAD pytest fails because of something that we should fix, merge if OK for you

Copy link
Collaborator

@Badr-MOUFAD Badr-MOUFAD left a comment

Choose a reason for hiding this comment

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

It doesn't hurt us to update this

python-version: 3.8

Only needed for code format checks.

LGTM, thnx @jolars @mathurinm 💪

@Badr-MOUFAD Badr-MOUFAD merged commit afdba2a into scikit-learn-contrib:main Apr 10, 2025
3 of 4 checks passed
jolars added a commit to jolars/skglm that referenced this pull request Apr 10, 2025
floriankozikowski pushed a commit to PascalCarrivain/skglm that referenced this pull request Apr 22, 2025
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.

3 participants