Skip to content

Commit

Permalink
Let's use setuptools_scm backend to install deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuntowicz committed Apr 8, 2024
1 parent 4365952 commit d5557ed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ dependencies = [
"loguru == 0.6.0"
]

[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project.optional-dependencies]
tests = ["pytest", "safetensors"]
quality = ["black", "ruff", "isort",]
Expand All @@ -58,8 +62,8 @@ Documentation = "https://hf.co/docs/optimum/tpu"
Repository = "https://github.com/huggingface/optimum-tpu"
Issues = "https://github.com/huggingface/optimum-tpu/issues"

[tool.setuptools.dynamic]
version = {attr = "optimum.tpu.__version__"}
[tool.setuptools_scm]


[tool.setuptools.packages.find]
include = ["optimum.tpu"]
Expand Down

0 comments on commit d5557ed

Please sign in to comment.