From 8d8365b29ebd3517f6eb39994a1a172f2f35380e Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Mon, 11 Mar 2024 15:19:05 +0100 Subject: [PATCH] VCS versioning --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 529934b..7870564 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [project] name = "sklearn-ann" -version = "0.1.0" description = "Various integrations for ANN (Approximate Nearest Neighbours) libraries into scikit-learn." authors = [ { name = "Frankie Robertson", email = "frankie@robertson.name" }, { name = "Philipp Angerer", email = "phil.angerer@gmail.com" } ] license = "BSD-3-Clause" +dynamic = ["version"] requires-python = "<3.13,>=3.9" # enforced by scipy dependencies = [ "scikit-learn>=0.24.0", @@ -43,6 +43,9 @@ annlibs = [ "sklearn-ann[annoy,faiss,pynndescent,nmslib]", ] +[tool.hatch.version] +source = "vcs" + [tool.pytest.ini_options] addopts = [ "--import-mode=importlib", @@ -88,5 +91,5 @@ build-docs = "sphinx-build -M html docs docs/_build" packages = ["src/sklearn_ann"] [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build"