From d72abe8e583a67837dde75b9a7a2604cd9244e2f Mon Sep 17 00:00:00 2001 From: Mridul Seth Date: Fri, 13 Oct 2023 13:27:20 -0700 Subject: [PATCH] Use hatch as the build backend --- nx_parallel/__init__.py | 2 ++ pyproject.toml | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/nx_parallel/__init__.py b/nx_parallel/__init__.py index 77d7714..5d7b4fc 100644 --- a/nx_parallel/__init__.py +++ b/nx_parallel/__init__.py @@ -1,3 +1,5 @@ from .algorithms import * from .interface import * from .utils import * + +__version__ = "0.0.1" diff --git a/pyproject.toml b/pyproject.toml index fb71bde..5f09069 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools", "setuptools-scm"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" [project] name = "nx-parallel" @@ -19,7 +19,10 @@ dependencies = [ "networkx", "joblib" ] -version = '0.0.1' +dynamic = ["version"] + +[tool.hatch.version] +path = "nx_parallel/__init__.py" [project.optional-dependencies] developer = [