From bb19398ab0fcb27d960010c74a4cdcb1f534a7cb Mon Sep 17 00:00:00 2001 From: Georg Schramm Date: Sat, 30 Nov 2024 15:45:48 +0100 Subject: [PATCH] clean up package build --- MANIFEST.in | 15 +++++++++++++++ pyproject.toml | 16 +++++++++------- {pymirc/metrics => tf}/tf_losses.py | 0 {pymirc/metrics => tf}/tf_metrics.py | 0 4 files changed, 24 insertions(+), 7 deletions(-) rename {pymirc/metrics => tf}/tf_losses.py (100%) rename {pymirc/metrics => tf}/tf_metrics.py (100%) diff --git a/MANIFEST.in b/MANIFEST.in index e69de29..5e8f8c5 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -0,0 +1,15 @@ +# Include necessary metadata files +include LICENSE +include README.md +include pyproject.toml + +# Include only the package files +graft pymirc + +# Exclude unwanted directories +prune */__pycache__ +prune examples +prune tutorial +prune tf +prune .git +prune .github diff --git a/pyproject.toml b/pyproject.toml index a9544f9..ca0f9a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,13 +2,6 @@ requires = ["setuptools >= 61.0", "wheel", "setuptools-scm"] build-backend = "setuptools.build_meta" -[tool.setuptools] -packages = { find = { include = ["pymirc*"], exclude = ["tutorial*"] } } - -[tool.setuptools_scm] -version_scheme = "post-release" -local_scheme = "dirty-tag" - [project] name = "pymirc" dynamic = ["version"] @@ -41,3 +34,12 @@ classifiers = [ [project.urls] Repository = "https://github.com/gschramm/pymirc" + +[tool.setuptools.packages.find] +where = ["."] +include = ["pymirc*"] +exclude = ["pymirc.__pycache__"] + +[tool.setuptools_scm] +version_scheme = "post-release" +local_scheme = "dirty-tag" \ No newline at end of file diff --git a/pymirc/metrics/tf_losses.py b/tf/tf_losses.py similarity index 100% rename from pymirc/metrics/tf_losses.py rename to tf/tf_losses.py diff --git a/pymirc/metrics/tf_metrics.py b/tf/tf_metrics.py similarity index 100% rename from pymirc/metrics/tf_metrics.py rename to tf/tf_metrics.py