From 4055acbfcc035c887cc9d4b4fdbe881eb6912e86 Mon Sep 17 00:00:00 2001 From: Kaze Wong Date: Thu, 17 Oct 2024 13:34:03 -0400 Subject: [PATCH] update build system --- pyproject.toml | 15 ++++++++++++++- uv.lock | 5 ++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 13432e72..3b6c1dff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "jimGW" +name = "jimgw" version = "0.2.0" description = "Gravitatioanl wave data analysis tool in Jax" readme = "README.md" @@ -31,3 +31,16 @@ docs = [ "mkdocstrings[python]", "pymdown-extensions", ] + +[tool.uv] +dev-dependencies = [ + "jimgw", +] + +[tool.uv.sources] +jimgw = { workspace = true } + + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" diff --git a/uv.lock b/uv.lock index 2a79fb7c..d3a39a98 100644 --- a/uv.lock +++ b/uv.lock @@ -975,7 +975,7 @@ wheels = [ [[package]] name = "jimgw" version = "0.2.0" -source = { virtual = "." } +source = { editable = "." } dependencies = [ { name = "astropy" }, { name = "beartype" }, @@ -1021,6 +1021,9 @@ requires-dist = [ { name = "typed-argument-parser", specifier = ">=1.10.1" }, ] +[package.metadata.requires-dev] +dev = [{ name = "jimgw", editable = "." }] + [[package]] name = "jinja2" version = "3.1.4"