From f227092d01c2b5c9e326642deba92e651c8d9d69 Mon Sep 17 00:00:00 2001
From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de>
Date: Tue, 24 Jun 2025 10:54:46 +0200
Subject: [PATCH] use flatt directory structure

---
 stundenplan/.gitignore                |    4 ++++
 /dev/null                             |    0 
 stundenplan/src/graphdemo_tests.py    |    2 +-
 stundenplan/src/graphdemo.py          |    0 
 stundenplan/Readme.md                 |    4 ++--
 stundenplan/src/shortestpath.py       |    2 +-
 stundenplan/src/shortestpath_tests.py |    4 ++--
 7 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/stundenplan/.gitignore b/stundenplan/.gitignore
new file mode 100644
index 0000000..e019710
--- /dev/null
+++ b/stundenplan/.gitignore
@@ -0,0 +1,4 @@
+*.venv*
+__pycache__/
+.idea/
+*.egg-info/
\ No newline at end of file
diff --git a/stundenplan/Readme.md b/stundenplan/Readme.md
index 00ba398..6f8c067 100644
--- a/stundenplan/Readme.md
+++ b/stundenplan/Readme.md
@@ -2,7 +2,7 @@
 
 ## Installation
 
-Installation das Projekt auf einem virtuellen Python-Umgebung:
+Installation das Projekt auf einer virtuellen Python-Umgebung:
 
 ````shell
 pip install -e .
@@ -11,7 +11,7 @@
 ## Run Unittest
 
 ```shell
-python3 -m unittest discover --pattern *tests.py
+pytest *_tests.py
 ```
 
 ## Run programm
diff --git a/stundenplan/src/pygraph/graphdemo.py b/stundenplan/src/graphdemo.py
similarity index 100%
rename from stundenplan/src/pygraph/graphdemo.py
rename to stundenplan/src/graphdemo.py
diff --git a/stundenplan/tests/pygraph/graphdemo_tests.py b/stundenplan/src/graphdemo_tests.py
similarity index 98%
rename from stundenplan/tests/pygraph/graphdemo_tests.py
rename to stundenplan/src/graphdemo_tests.py
index d8d1ba5..cd6234c 100644
--- a/stundenplan/tests/pygraph/graphdemo_tests.py
+++ b/stundenplan/src/graphdemo_tests.py
@@ -1,6 +1,6 @@
 import unittest
 
-from pygraph.graphdemo import Graph
+from graphdemo import Graph
 
 
 class GraphTestCase(unittest.TestCase):
diff --git a/stundenplan/src/pygraph/__init__.py b/stundenplan/src/pygraph/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/stundenplan/src/pygraph/__init__.py
+++ /dev/null
diff --git a/stundenplan/src/pygraph/shortestpath.py b/stundenplan/src/shortestpath.py
similarity index 98%
rename from stundenplan/src/pygraph/shortestpath.py
rename to stundenplan/src/shortestpath.py
index 5d3e2af..824de12 100644
--- a/stundenplan/src/pygraph/shortestpath.py
+++ b/stundenplan/src/shortestpath.py
@@ -1,7 +1,7 @@
 import collections
 from typing import Mapping
 
-from pygraph.graphdemo import Graph
+from graphdemo import Graph
 
 
 def bfs(g: Graph, start: int) -> Graph:
diff --git a/stundenplan/tests/pygraph/shortestpath_tests.py b/stundenplan/src/shortestpath_tests.py
similarity index 91%
rename from stundenplan/tests/pygraph/shortestpath_tests.py
rename to stundenplan/src/shortestpath_tests.py
index dc914a1..85ab21f 100644
--- a/stundenplan/tests/pygraph/shortestpath_tests.py
+++ b/stundenplan/src/shortestpath_tests.py
@@ -1,7 +1,7 @@
 import unittest
 
-from pygraph.graphdemo import Graph
-from pygraph.shortestpath import bfs, bfs_dict, find_path, find_path_gpt
+from graphdemo import Graph
+from shortestpath import bfs, bfs_dict, find_path, find_path_gpt
 
 
 class ShortestPathTestCase(unittest.TestCase):
diff --git a/stundenplan/src/stundenplan.egg-info/PKG-INFO b/stundenplan/src/stundenplan.egg-info/PKG-INFO
deleted file mode 100644
index 121e906..0000000
--- a/stundenplan/src/stundenplan.egg-info/PKG-INFO
+++ /dev/null
@@ -1,3 +0,0 @@
-Metadata-Version: 2.1
-Name: stundenplan
-Version: 0.0.1
diff --git a/stundenplan/src/stundenplan.egg-info/SOURCES.txt b/stundenplan/src/stundenplan.egg-info/SOURCES.txt
deleted file mode 100644
index a47d17f..0000000
--- a/stundenplan/src/stundenplan.egg-info/SOURCES.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-pyproject.toml
-src/pygraph/__init__.py
-src/pygraph/graphdemo.py
-src/pygraph/shortestpath.py
-src/stundenplan.egg-info/PKG-INFO
-src/stundenplan.egg-info/SOURCES.txt
-src/stundenplan.egg-info/dependency_links.txt
-src/stundenplan.egg-info/top_level.txt
\ No newline at end of file
diff --git a/stundenplan/src/stundenplan.egg-info/dependency_links.txt b/stundenplan/src/stundenplan.egg-info/dependency_links.txt
deleted file mode 100644
index 8b13789..0000000
--- a/stundenplan/src/stundenplan.egg-info/dependency_links.txt
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/stundenplan/src/stundenplan.egg-info/top_level.txt b/stundenplan/src/stundenplan.egg-info/top_level.txt
deleted file mode 100644
index ba98b63..0000000
--- a/stundenplan/src/stundenplan.egg-info/top_level.txt
+++ /dev/null
@@ -1 +0,0 @@
-pygraph
diff --git a/stundenplan/tests/__init__.py b/stundenplan/tests/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/stundenplan/tests/__init__.py
+++ /dev/null
diff --git a/stundenplan/tests/pygraph/__init__.py b/stundenplan/tests/pygraph/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/stundenplan/tests/pygraph/__init__.py
+++ /dev/null

--
Gitblit v1.10.0