From 37298b7096500f633a47a81abd808872526ce281 Mon Sep 17 00:00:00 2001
From: Tom <thomas.hodson@ecmwf.int>
Date: Wed, 12 Feb 2025 13:43:38 +0000
Subject: [PATCH] move tests around

---
 pyproject.toml                             |  18 ++++++++++++++++--
 {tests => test}/data/fdb_list_compact.gz   | Bin
 {tests => test}/data/fdb_list_porcelain.gz | Bin
 {tests => test}/data/mars_list.gz          | Bin
 test/test.py                               |  12 ++++++++++++
 {tests => test_scripts}/new_format.py      |   0
 {tests => test_scripts}/open_climate_dt.py |   0
 {tests => test_scripts}/reconstruct.py     |   0
 {tests => test_scripts}/test.py            |   0
 9 files changed, 28 insertions(+), 2 deletions(-)
 rename {tests => test}/data/fdb_list_compact.gz (100%)
 rename {tests => test}/data/fdb_list_porcelain.gz (100%)
 rename {tests => test}/data/mars_list.gz (100%)
 create mode 100644 test/test.py
 rename {tests => test_scripts}/new_format.py (100%)
 rename {tests => test_scripts}/open_climate_dt.py (100%)
 rename {tests => test_scripts}/reconstruct.py (100%)
 rename {tests => test_scripts}/test.py (100%)

diff --git a/pyproject.toml b/pyproject.toml
index d3bf608..3753410 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -17,7 +17,7 @@ classifiers = [
 requires-python = ">= 3.11"
 dynamic = ["version"]
 dependencies = [
-    "pe"
+    "frozendict",
 ]
 
 [tool.maturin]
@@ -27,11 +27,25 @@ features = ["pyo3/extension-module"]
 
 
 [project.optional-dependencies]
-rust-backend = ["maturin"]
+rust-backend = ["maturin", "pyo3"]
+
+stac_server = [
+    "fastapi",
+]
 
 docs = [
     "sphinx",
     "sphinx-rtd-theme",
     "myst_nb",
     "sphinx-autobuild"
+]
+
+dev = [
+    "pytest",
+    "black",
+    "ruff",
+    "flake8",
+    "pre-commit",
+    "isort",
+    "responses",
 ]
\ No newline at end of file
diff --git a/tests/data/fdb_list_compact.gz b/test/data/fdb_list_compact.gz
similarity index 100%
rename from tests/data/fdb_list_compact.gz
rename to test/data/fdb_list_compact.gz
diff --git a/tests/data/fdb_list_porcelain.gz b/test/data/fdb_list_porcelain.gz
similarity index 100%
rename from tests/data/fdb_list_porcelain.gz
rename to test/data/fdb_list_porcelain.gz
diff --git a/tests/data/mars_list.gz b/test/data/mars_list.gz
similarity index 100%
rename from tests/data/mars_list.gz
rename to test/data/mars_list.gz
diff --git a/test/test.py b/test/test.py
new file mode 100644
index 0000000..6bfc8b6
--- /dev/null
+++ b/test/test.py
@@ -0,0 +1,12 @@
+from qubed import Qube
+
+q = Qube.from_dict({
+    "class=od" : {
+        "expver=0001": {"param=1":{}, "param=2":{}},
+        "expver=0002": {"param=1":{}, "param=2":{}},
+    },
+    "class=rd" : {
+        "expver=0001": {"param=1":{}, "param=2":{}, "param=3":{}},
+        "expver=0002": {"param=1":{}, "param=2":{}},
+    },
+})
\ No newline at end of file
diff --git a/tests/new_format.py b/test_scripts/new_format.py
similarity index 100%
rename from tests/new_format.py
rename to test_scripts/new_format.py
diff --git a/tests/open_climate_dt.py b/test_scripts/open_climate_dt.py
similarity index 100%
rename from tests/open_climate_dt.py
rename to test_scripts/open_climate_dt.py
diff --git a/tests/reconstruct.py b/test_scripts/reconstruct.py
similarity index 100%
rename from tests/reconstruct.py
rename to test_scripts/reconstruct.py
diff --git a/tests/test.py b/test_scripts/test.py
similarity index 100%
rename from tests/test.py
rename to test_scripts/test.py