From ab91b97a3378147a72987abfa1370ec3c6f2e3bc Mon Sep 17 00:00:00 2001 From: mseitzer <16725193+mseitzer@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:16:13 +0100 Subject: [PATCH] Add explicit dependency on setuptools for Python 3.12 --- poetry.lock | 2 +- pyproject.toml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index f40c62a..1a1a9b2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1133,4 +1133,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<3.13" -content-hash = "8e06b94df1f28852d77f14d136a68e4bab5c1fd11c5f41efaa57f058d13afa16" +content-hash = "01b7a435726fb36ae02b8025de5a973db216b082d75645649ce584065df5e54c" diff --git a/pyproject.toml b/pyproject.toml index a702e57..0aa411d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,13 +23,15 @@ pytorch-fid = "pytorch_fid.__main__:main" [tool.poetry.dependencies] python = ">=3.8.1,<3.13" numpy = ">=1.16.5" +pillow = ">=6.2.1" scipy = [ { version = ">=1.7.0", python = "<3.12" }, # Versions above 1.11.1 have bug with scipy.linalg.sqrtm, see # https://github.com/mseitzer/pytorch-fid/issues/103 { version = ">=1.11.0,<=1.11.1", python = ">=3.12,<3.13" }, ] -pillow = ">=6.2.1" +# Depend on setuptools for including distutils, which is no longer part of stdlib for Python >=3.12 +setuptools = { version = ">=48", python = ">=3.12" } torch = { version = ">=1.4", source = "pytorch-cpu" } torchvision = { version = ">=0.5.0", source = "pytorch-cpu" }