From 229857a7ae9ab8e0f5c1e53ab3f12b0dc897c0f4 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Mon, 20 May 2024 08:41:14 +0200 Subject: [PATCH] Switch to src layout --- pyproject.toml | 1 - {sleepecg => src/sleepecg}/__init__.py | 0 {sleepecg => src/sleepecg}/_heartbeat_detection.c | 0 {sleepecg => src/sleepecg}/_heartbeat_detection.pyi | 0 {sleepecg => src/sleepecg}/classification.py | 0 .../sleepecg}/classifiers/wrn-gru-mesa-weighted.zip | Bin .../sleepecg}/classifiers/wrn-gru-mesa.zip | Bin .../sleepecg}/classifiers/ws-gru-mesa.zip | Bin {sleepecg => src/sleepecg}/config.py | 0 {sleepecg => src/sleepecg}/config.yml | 0 {sleepecg => src/sleepecg}/data/ecg.npz | Bin {sleepecg => src/sleepecg}/feature_extraction.py | 0 {sleepecg => src/sleepecg}/heartbeats.py | 0 {sleepecg => src/sleepecg}/io/__init__.py | 0 {sleepecg => src/sleepecg}/io/ecg_readers.py | 0 {sleepecg => src/sleepecg}/io/gudb.py | 0 {sleepecg => src/sleepecg}/io/nsrr.py | 0 {sleepecg => src/sleepecg}/io/physionet.py | 0 {sleepecg => src/sleepecg}/io/sleep_readers.py | 0 {sleepecg => src/sleepecg}/io/utils.py | 0 {sleepecg => src/sleepecg}/plot.py | 0 {sleepecg => src/sleepecg}/py.typed | 0 .../sleepecg}/test/test_classification.py | 0 {sleepecg => src/sleepecg}/test/test_config.py | 0 .../sleepecg}/test/test_feature_extraction.py | 0 .../sleepecg}/test/test_heartbeat_detection.py | 0 {sleepecg => src/sleepecg}/test/test_heartbeats.py | 0 .../sleepecg}/test/test_sleep_readers.py | 0 {sleepecg => src/sleepecg}/utils.py | 0 29 files changed, 1 deletion(-) rename {sleepecg => src/sleepecg}/__init__.py (100%) rename {sleepecg => src/sleepecg}/_heartbeat_detection.c (100%) rename {sleepecg => src/sleepecg}/_heartbeat_detection.pyi (100%) rename {sleepecg => src/sleepecg}/classification.py (100%) rename {sleepecg => src/sleepecg}/classifiers/wrn-gru-mesa-weighted.zip (100%) rename {sleepecg => src/sleepecg}/classifiers/wrn-gru-mesa.zip (100%) rename {sleepecg => src/sleepecg}/classifiers/ws-gru-mesa.zip (100%) rename {sleepecg => src/sleepecg}/config.py (100%) rename {sleepecg => src/sleepecg}/config.yml (100%) rename {sleepecg => src/sleepecg}/data/ecg.npz (100%) rename {sleepecg => src/sleepecg}/feature_extraction.py (100%) rename {sleepecg => src/sleepecg}/heartbeats.py (100%) rename {sleepecg => src/sleepecg}/io/__init__.py (100%) rename {sleepecg => src/sleepecg}/io/ecg_readers.py (100%) rename {sleepecg => src/sleepecg}/io/gudb.py (100%) rename {sleepecg => src/sleepecg}/io/nsrr.py (100%) rename {sleepecg => src/sleepecg}/io/physionet.py (100%) rename {sleepecg => src/sleepecg}/io/sleep_readers.py (100%) rename {sleepecg => src/sleepecg}/io/utils.py (100%) rename {sleepecg => src/sleepecg}/plot.py (100%) rename {sleepecg => src/sleepecg}/py.typed (100%) rename {sleepecg => src/sleepecg}/test/test_classification.py (100%) rename {sleepecg => src/sleepecg}/test/test_config.py (100%) rename {sleepecg => src/sleepecg}/test/test_feature_extraction.py (100%) rename {sleepecg => src/sleepecg}/test/test_heartbeat_detection.py (100%) rename {sleepecg => src/sleepecg}/test/test_heartbeats.py (100%) rename {sleepecg => src/sleepecg}/test/test_sleep_readers.py (100%) rename {sleepecg => src/sleepecg}/utils.py (100%) diff --git a/pyproject.toml b/pyproject.toml index 8c1b793c..cc2930ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,7 +122,6 @@ convention = "numpy" [tool.setuptools.dynamic] version = {attr = "sleepecg.__version__"} -readme = {file = "README.md", content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = ["examples"] diff --git a/sleepecg/__init__.py b/src/sleepecg/__init__.py similarity index 100% rename from sleepecg/__init__.py rename to src/sleepecg/__init__.py diff --git a/sleepecg/_heartbeat_detection.c b/src/sleepecg/_heartbeat_detection.c similarity index 100% rename from sleepecg/_heartbeat_detection.c rename to src/sleepecg/_heartbeat_detection.c diff --git a/sleepecg/_heartbeat_detection.pyi b/src/sleepecg/_heartbeat_detection.pyi similarity index 100% rename from sleepecg/_heartbeat_detection.pyi rename to src/sleepecg/_heartbeat_detection.pyi diff --git a/sleepecg/classification.py b/src/sleepecg/classification.py similarity index 100% rename from sleepecg/classification.py rename to src/sleepecg/classification.py diff --git a/sleepecg/classifiers/wrn-gru-mesa-weighted.zip b/src/sleepecg/classifiers/wrn-gru-mesa-weighted.zip similarity index 100% rename from sleepecg/classifiers/wrn-gru-mesa-weighted.zip rename to src/sleepecg/classifiers/wrn-gru-mesa-weighted.zip diff --git a/sleepecg/classifiers/wrn-gru-mesa.zip b/src/sleepecg/classifiers/wrn-gru-mesa.zip similarity index 100% rename from sleepecg/classifiers/wrn-gru-mesa.zip rename to src/sleepecg/classifiers/wrn-gru-mesa.zip diff --git a/sleepecg/classifiers/ws-gru-mesa.zip b/src/sleepecg/classifiers/ws-gru-mesa.zip similarity index 100% rename from sleepecg/classifiers/ws-gru-mesa.zip rename to src/sleepecg/classifiers/ws-gru-mesa.zip diff --git a/sleepecg/config.py b/src/sleepecg/config.py similarity index 100% rename from sleepecg/config.py rename to src/sleepecg/config.py diff --git a/sleepecg/config.yml b/src/sleepecg/config.yml similarity index 100% rename from sleepecg/config.yml rename to src/sleepecg/config.yml diff --git a/sleepecg/data/ecg.npz b/src/sleepecg/data/ecg.npz similarity index 100% rename from sleepecg/data/ecg.npz rename to src/sleepecg/data/ecg.npz diff --git a/sleepecg/feature_extraction.py b/src/sleepecg/feature_extraction.py similarity index 100% rename from sleepecg/feature_extraction.py rename to src/sleepecg/feature_extraction.py diff --git a/sleepecg/heartbeats.py b/src/sleepecg/heartbeats.py similarity index 100% rename from sleepecg/heartbeats.py rename to src/sleepecg/heartbeats.py diff --git a/sleepecg/io/__init__.py b/src/sleepecg/io/__init__.py similarity index 100% rename from sleepecg/io/__init__.py rename to src/sleepecg/io/__init__.py diff --git a/sleepecg/io/ecg_readers.py b/src/sleepecg/io/ecg_readers.py similarity index 100% rename from sleepecg/io/ecg_readers.py rename to src/sleepecg/io/ecg_readers.py diff --git a/sleepecg/io/gudb.py b/src/sleepecg/io/gudb.py similarity index 100% rename from sleepecg/io/gudb.py rename to src/sleepecg/io/gudb.py diff --git a/sleepecg/io/nsrr.py b/src/sleepecg/io/nsrr.py similarity index 100% rename from sleepecg/io/nsrr.py rename to src/sleepecg/io/nsrr.py diff --git a/sleepecg/io/physionet.py b/src/sleepecg/io/physionet.py similarity index 100% rename from sleepecg/io/physionet.py rename to src/sleepecg/io/physionet.py diff --git a/sleepecg/io/sleep_readers.py b/src/sleepecg/io/sleep_readers.py similarity index 100% rename from sleepecg/io/sleep_readers.py rename to src/sleepecg/io/sleep_readers.py diff --git a/sleepecg/io/utils.py b/src/sleepecg/io/utils.py similarity index 100% rename from sleepecg/io/utils.py rename to src/sleepecg/io/utils.py diff --git a/sleepecg/plot.py b/src/sleepecg/plot.py similarity index 100% rename from sleepecg/plot.py rename to src/sleepecg/plot.py diff --git a/sleepecg/py.typed b/src/sleepecg/py.typed similarity index 100% rename from sleepecg/py.typed rename to src/sleepecg/py.typed diff --git a/sleepecg/test/test_classification.py b/src/sleepecg/test/test_classification.py similarity index 100% rename from sleepecg/test/test_classification.py rename to src/sleepecg/test/test_classification.py diff --git a/sleepecg/test/test_config.py b/src/sleepecg/test/test_config.py similarity index 100% rename from sleepecg/test/test_config.py rename to src/sleepecg/test/test_config.py diff --git a/sleepecg/test/test_feature_extraction.py b/src/sleepecg/test/test_feature_extraction.py similarity index 100% rename from sleepecg/test/test_feature_extraction.py rename to src/sleepecg/test/test_feature_extraction.py diff --git a/sleepecg/test/test_heartbeat_detection.py b/src/sleepecg/test/test_heartbeat_detection.py similarity index 100% rename from sleepecg/test/test_heartbeat_detection.py rename to src/sleepecg/test/test_heartbeat_detection.py diff --git a/sleepecg/test/test_heartbeats.py b/src/sleepecg/test/test_heartbeats.py similarity index 100% rename from sleepecg/test/test_heartbeats.py rename to src/sleepecg/test/test_heartbeats.py diff --git a/sleepecg/test/test_sleep_readers.py b/src/sleepecg/test/test_sleep_readers.py similarity index 100% rename from sleepecg/test/test_sleep_readers.py rename to src/sleepecg/test/test_sleep_readers.py diff --git a/sleepecg/utils.py b/src/sleepecg/utils.py similarity index 100% rename from sleepecg/utils.py rename to src/sleepecg/utils.py