data-science-research/pyproject.toml

47 lines
1.8 KiB
TOML

[tool.poetry]
name = "data-science-research"
version = "0.1.0"
description = ""
authors = ["Jake Walker <hi@jakew.me>"]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<3.12"
jupyterlab = "^4.0.8"
matplotlib = "^3.8.3"
seaborn = "^0.13.2"
numpy = "^1.26.4"
kneed = "^0.8.5"
scikit-learn = "^1.4.1.post1"
# Issue between poetry and tensorflow metadata since >=2.11
# This is a temporary workaround
# related to https://github.com/python-poetry/poetry/issues/8271
# Inspired from https://github.com/tensorflow/tensorflow/blob/adb39b04e9cb116df4659a7e2de9eea27e62f25c/tensorflow/tools/pip_package/setup.py#L148-L162
tensorflow = {version = "^2.13.0" }
tensorflow-macos = { version = "^2.13.0", platform = "darwin", markers = "platform_machine=='arm64'" }
tensorflow-intel = { version = "^2.13.0", platform = "win32" }
tensorflow-cpu = [
{ version = "^2.13.0", platform = "linux", markers = "platform_machine!='arm64' and platform_machine!='aarch64'" },
{ version = "^2.13.0", platform = "darwin", markers = "platform_machine!='arm64' and platform_machine!='aarch64'" },
]
tensorflow-cpu-aws = { version = "^2.13.0", platform = "linux", markers = "platform_machine=='arm64' or platform_machine=='aarch64'" }
# https://github.com/tensorflow/tensorflow/blob/adb39b04e9cb116df4659a7e2de9eea27e62f25c/tensorflow/tools/pip_package/setup.py#L107-L108
# https://github.com/python-poetry/poetry/issues/8271#issuecomment-1697740447
tensorflow-io-gcs-filesystem = [
{ version = ">= 0.23.1", markers = "platform_machine!='arm64' or platform_system!='Darwin'" },
{ version = "< 0.32.0", markers = "platform_system == 'Windows'" }
]
[tool.poetry.group.dev.dependencies]
ruff = "^0.2.2"
[tool.ruff]
line-length = 100
indent-width = 4
target-version = "py311"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"