diff --git a/pyproject.toml b/pyproject.toml index a80fb283..9f0a5d8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,17 @@ +[build-system] +requires = [ "setuptools", "lsst-versions >= 1.3.0", ] +build-backend = "setuptools.build_meta" + +[project] +name = "summit_utils" +dynamic = ["version"] + +[tool.setuptools.dynamic] +version = { attr = "lsst_versions.get_lsst_version" } + +[tool.setuptools.packages.find] +where = [ "python" ] + [tool.isort] profile = "black" line_length = 110 @@ -7,9 +21,6 @@ known_first_party = ["lsst", "tests"] line-length = 110 target-version = ["py311"] -[tool.lsst_versions] -write_to = "python/lsst/summit/utils/version.py" - [tool.ruff] line-length = 110 target-version = "py311"