From ba77bb115648d8b7900822e1f3830ca58f71e533 Mon Sep 17 00:00:00 2001 From: Carlos Gomes Date: Wed, 28 Aug 2024 12:09:30 +0200 Subject: [PATCH 1/2] update / fix pyproject toml Signed-off-by: Carlos Gomes --- pyproject.toml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c1b55643..d09b2b3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,9 +2,8 @@ requires = [ "setuptools" ] build-backend = 'setuptools.build_meta' -# It allows installation via `pip install -e` [tool.setuptools] -py-modules = [] +packages = ["terratorch"] [project] name = "terratorch" @@ -13,7 +12,7 @@ description = "TerraTorch - A model training toolkit for geospatial tasks" license = { "text" = "Apache License, Version 2.0" } readme = "README.md" requires-python = ">=3.10" -keywords = ["fine-tuning", "geospatial foundation models", "artificial inteligence"] +keywords = ["fine-tuning", "geospatial foundation models", "artificial intelligence"] authors = [ { name = "Carlos Gomes", email = "carlos.gomes@ibm.com" }, { name = "Joao Lucas de Sousa Almeida", email = "joao.lucas.sousa.almeida@ibm.com"} @@ -131,18 +130,18 @@ ban-relative-imports = "all" # Tests can use magic values, assertions, and relative imports "tests/**/*" = ["PLR2004", "S101", "TID252"] # Tasks rely on torch lightning saving args to hparams dict -"src/terratorch/tasks/*" = ["ARG002"] +"terratorch/tasks/*" = ["ARG002"] [tool.coverage.run] source_pkgs = ["terratorch", "tests"] branch = true parallel = true omit = [ - "src/terratorch/__about__.py", + "terratorch/__about__.py", ] [tool.coverage.paths] -terratorch = ["src/terratorch"] +terratorch = ["terratorch"] tests = ["tests"] [tool.coverage.report] From fd34cb1a763630b3cb509cf58740a5702420bd71 Mon Sep 17 00:00:00 2001 From: Carlos Gomes Date: Wed, 28 Aug 2024 12:20:13 +0200 Subject: [PATCH 2/2] change to packages.find Signed-off-by: Carlos Gomes --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d09b2b3b..d5b69668 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,8 @@ requires = [ "setuptools" ] build-backend = 'setuptools.build_meta' -[tool.setuptools] -packages = ["terratorch"] +[tool.setuptools.packages.find] +include = ["terratorch*"] [project] name = "terratorch"