From 4412839ebca7dcd1096b16d2672b7355cfa034c9 Mon Sep 17 00:00:00 2001 From: amercader Date: Tue, 17 Dec 2024 14:27:37 +0100 Subject: [PATCH 1/2] Add Python version requirement to project metadata Although the package requires Python>=3.10 it can still be installed in lower versions of Python because the requirement is not listed in the project metadata, so PyPI can't prevent it. --- python/mlcroissant/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mlcroissant/pyproject.toml b/python/mlcroissant/pyproject.toml index 510c4f2ab..4fe710f76 100644 --- a/python/mlcroissant/pyproject.toml +++ b/python/mlcroissant/pyproject.toml @@ -15,7 +15,7 @@ authors = [ { name = "Pierre Ruyssen" }, { name = "Prabhant Singh" }, ] - +requires-python = ">= 3.10" # pip dependencies of the project # Installed locally with `pip install -e .` dependencies = [ From 0714feb7a4aa19eac31aa922b1f7cfe487a93ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Mercader?= Date: Wed, 23 Apr 2025 11:32:34 +0200 Subject: [PATCH 2/2] Add upper bound to Python version Co-authored-by: Arthit Suriyawongkul --- python/mlcroissant/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mlcroissant/pyproject.toml b/python/mlcroissant/pyproject.toml index 4fe710f76..14b9f5945 100644 --- a/python/mlcroissant/pyproject.toml +++ b/python/mlcroissant/pyproject.toml @@ -15,7 +15,7 @@ authors = [ { name = "Pierre Ruyssen" }, { name = "Prabhant Singh" }, ] -requires-python = ">= 3.10" +requires-python = ">= 3.10, <=3.12" # pip dependencies of the project # Installed locally with `pip install -e .` dependencies = [