]> Untitled Git - axy/ft/a-maze-ing.git/commitdiff
Rename
authorAxy <gilliardmarthey.axel@gmail.com>
Fri, 27 Mar 2026 12:45:51 +0000 (13:45 +0100)
committerAxy <gilliardmarthey.axel@gmail.com>
Fri, 27 Mar 2026 12:45:51 +0000 (13:45 +0100)
27 files changed:
Makefile
__main__.py
mazegen/__init__.py [moved from amazeing/__init__.py with 100% similarity]
mazegen/config/__init__.py [moved from amazeing/config/__init__.py with 100% similarity]
mazegen/config/config_parser.py [moved from amazeing/config/config_parser.py with 99% similarity]
mazegen/config/parser_combinator.py [moved from amazeing/config/parser_combinator.py with 100% similarity]
mazegen/display/__init__.py [moved from amazeing/display/__init__.py with 100% similarity]
mazegen/display/layout.py [moved from amazeing/display/layout.py with 99% similarity]
mazegen/display/observer.py [moved from amazeing/display/observer.py with 94% similarity]
mazegen/display/tty.py [moved from amazeing/display/tty.py with 98% similarity]
mazegen/maze/__init__.py [moved from amazeing/maze/__init__.py with 100% similarity]
mazegen/maze/dirty_tracker.py [moved from amazeing/maze/dirty_tracker.py with 91% similarity]
mazegen/maze/make_empty.py [moved from amazeing/maze/make_empty.py with 78% similarity]
mazegen/maze/make_pacman.py [moved from amazeing/maze/make_pacman.py with 88% similarity]
mazegen/maze/make_perfect.py [moved from amazeing/maze/make_perfect.py with 78% similarity]
mazegen/maze/maze.py [moved from amazeing/maze/maze.py with 98% similarity]
mazegen/maze/network_tracker.py [moved from amazeing/maze/network_tracker.py with 97% similarity]
mazegen/maze/pacman_tracker.py [moved from amazeing/maze/pacman_tracker.py with 91% similarity]
mazegen/maze/path.py [moved from amazeing/maze/path.py with 94% similarity]
mazegen/maze/pattern.py [moved from amazeing/maze/pattern.py with 98% similarity]
mazegen/utils/__init__.py [moved from amazeing/utils/__init__.py with 100% similarity]
mazegen/utils/avl.py [moved from amazeing/utils/avl.py with 99% similarity]
mazegen/utils/bi_map.py [moved from amazeing/utils/bi_map.py with 98% similarity]
mazegen/utils/coords.py [moved from amazeing/utils/coords.py with 99% similarity]
mazegen/utils/ivec2.py [moved from amazeing/utils/ivec2.py with 100% similarity]
mazegen/utils/quadtree.py [moved from amazeing/utils/quadtree.py with 99% similarity]
mazegen/utils/randset.py [moved from amazeing/utils/randset.py with 100% similarity]

index 576591f83ab2fb825060d1318c045168b43db10b..693e8cdd93e8b9cc6bc11e42e9f2369aeb084f1d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 install:
-       pip install flake8 mypy flameprof
+       pip install flake8 mypy flameprof build
 
 .venv:
        python -m venv .venv
@@ -11,6 +11,9 @@ run-prof:
        python -m cProfile -o out.prof __main__.py
        flameprof out.prof > prof.svg
 
+package:
+       python -m build --sdist mazegen
+
 run:
 
 clean:
@@ -25,4 +28,4 @@ lint-strict:
 profile:
        python -m cProfile -o out.prof __main__.py
 
-.PHONY: install venv  run clean lint lint-strict profile
+.PHONY: install venv  run clean lint lint-strict profile package
index bc8828dc095c83d29114097ef1be0f801ac1d9d5..a0d2863e495bbebb61ea11691acb41404172ec56 100644 (file)
@@ -1,5 +1,5 @@
-from amazeing.display.observer import MazeRegenerate, TTYTracker
-from amazeing.maze import (
+from mazegen.display.observer import MazeRegenerate, TTYTracker
+from mazegen.maze import (
     Maze,
     Pattern,
     make_empty,
@@ -9,7 +9,7 @@ from amazeing.maze import (
     make_perfect,
     make_empty,
 )
-from amazeing.config.config_parser import Config
+from mazegen.config.config_parser import Config
 import random
 
 config = Config.parse(open("./example.conf").read())
similarity index 100%
rename from amazeing/__init__.py
rename to mazegen/__init__.py
similarity index 99%
rename from amazeing/config/config_parser.py
rename to mazegen/config/config_parser.py
index 63f18dd71ec6aaf73cacc9cb9b18f4f714fa22a5..5b8157ba958bdf011a60ee578d49c90cb55cdd9e 100644 (file)
@@ -2,7 +2,7 @@ from abc import ABC, abstractmethod
 from collections.abc import Callable
 from typing import Any, Type, cast
 
-from amazeing.utils import IVec2
+from mazegen.utils import IVec2
 from .parser_combinator import (
     ParseResult,
     Parser,
@@ -408,7 +408,7 @@ class Config:
 
     @staticmethod
     def parse(s: str) -> "Config":
-        from amazeing.maze import Pattern
+        from mazegen.maze import Pattern
 
         fields = parser_complete(
             fields_parser(
similarity index 99%
rename from amazeing/display/layout.py
rename to mazegen/display/layout.py
index 7d7155ec2ea9f1e5c1c6aef02abd4105a2387a33..8cd460ec36f2483583bf0c9bfc0c07dc49dab5c8 100644 (file)
@@ -1,6 +1,6 @@
 from abc import ABC, abstractmethod
 from collections.abc import Callable
-from amazeing.utils import IVec2
+from mazegen.utils import IVec2
 
 
 class BInt:
similarity index 94%
rename from amazeing/display/observer.py
rename to mazegen/display/observer.py
index fe61fbec36314b0b679ed89e1b2e5b6830373730..4571452e9d67e102e2e0a8f23a1dd539e7ae6f96 100644 (file)
@@ -1,11 +1,11 @@
 from sys import stderr
 import time
-from amazeing.config.config_parser import Config
-from amazeing.display.tty import TTYBackend, TileCycle
-from amazeing.maze.dirty_tracker import DirtyTracker
-from amazeing.maze.maze import Maze
-from amazeing.maze.path import path_pixels, pathfind_astar
-from amazeing.utils.coords import Cardinal
+from mazegen.config.config_parser import Config
+from mazegen.display.tty import TTYBackend, TileCycle
+from mazegen.maze.dirty_tracker import DirtyTracker
+from mazegen.maze.maze import Maze
+from mazegen.maze.path import path_pixels, pathfind_astar
+from mazegen.utils.coords import Cardinal
 
 
 class MazeRegenerate(Exception):
similarity index 98%
rename from amazeing/display/tty.py
rename to mazegen/display/tty.py
index ab29be8750919997e7a7b3026ba81476cf8ada79..99595584a06a8d25775f7109bae2beebd127c220 100644 (file)
@@ -1,9 +1,9 @@
 from abc import ABC, abstractmethod
 from collections.abc import Callable, Generator, Iterable
 from dataclasses import dataclass
-from amazeing.utils import BiMap
-from amazeing.config.config_parser import Color, Config, ColoredLine, ColorPair
-from amazeing.display.layout import (
+from mazegen.utils import BiMap
+from mazegen.config.config_parser import Color, Config, ColoredLine, ColorPair
+from mazegen.display.layout import (
     BInt,
     Box,
     DBox,
@@ -15,10 +15,10 @@ from amazeing.display.layout import (
     layout_sort_chunked,
     layout_split,
 )
-from amazeing.utils import Rect, QuadTree, IVec2
+from mazegen.utils import Rect, QuadTree, IVec2
 import curses
 
-from amazeing.utils.coords import Orientation
+from mazegen.utils.coords import Orientation
 
 
 class BackendException(Exception):
similarity index 91%
rename from amazeing/maze/dirty_tracker.py
rename to mazegen/maze/dirty_tracker.py
index 7e0b661b8d3ed1021ea6f99ebe35404e185230d6..e4b77ea220922d4ecb20146c14123c0e89ae870f 100644 (file)
@@ -1,5 +1,5 @@
-from amazeing.maze import Maze
-from amazeing.utils import WallCoord
+from mazegen.maze import Maze
+from mazegen.utils import WallCoord
 
 
 class DirtyTracker:
similarity index 78%
rename from amazeing/maze/make_empty.py
rename to mazegen/maze/make_empty.py
index f56d53d61e2463b717ce730d2e68980c706c6f65..65099cd22c429fe1df6d6940bfd37f11195755be 100644 (file)
@@ -1,5 +1,5 @@
-from amazeing.maze import Maze
-from amazeing.utils import WallCoord
+from mazegen.maze import Maze
+from mazegen.utils import WallCoord
 import random
 
 
similarity index 88%
rename from amazeing/maze/make_pacman.py
rename to mazegen/maze/make_pacman.py
index e5d9e854465fa907918e52084cdf34d000b7f770..90bf73101aa473b976be000d4afa601c60e9de49 100644 (file)
@@ -1,8 +1,8 @@
-from amazeing.maze import Maze
-from amazeing.utils import WallCoord
+from mazegen.maze import Maze
+from mazegen.utils import WallCoord
 import random
 
-from amazeing.maze import PacmanTracker
+from mazegen.maze import PacmanTracker
 
 
 def make_pacman(
similarity index 78%
rename from amazeing/maze/make_perfect.py
rename to mazegen/maze/make_perfect.py
index eb45b6139839252040ce6af4911153712a4b9585..16809fed78eb75791369a6137b4e2172e9b54094 100644 (file)
@@ -1,7 +1,7 @@
-from amazeing.maze import Maze
+from mazegen.maze import Maze
 import random
 
-from amazeing.maze import NetworkTracker
+from mazegen.maze import NetworkTracker
 
 
 def make_perfect(
similarity index 98%
rename from amazeing/maze/maze.py
rename to mazegen/maze/maze.py
index 82209571f13fe346556d90e644f2c3f3a54a530b..c85bae82a6927ce203ed014bd0e48f9504509f94 100644 (file)
@@ -1,6 +1,6 @@
 from typing import Callable, Generator, Iterable
-from amazeing.config.config_parser import Config
-from amazeing.utils import (
+from mazegen.config.config_parser import Config
+from mazegen.utils import (
     CellCoord,
     Orientation,
     WallCoord,
similarity index 97%
rename from amazeing/maze/network_tracker.py
rename to mazegen/maze/network_tracker.py
index 0e5108af42ca2951a07799a2102330a4c8ad8607..fa1f757b518a8b755a3e60bf411e6a5a32e2b9e8 100644 (file)
@@ -1,14 +1,14 @@
-from amazeing.maze import Maze
-from amazeing.utils.coords import (
+from mazegen.maze import Maze
+from mazegen.utils.coords import (
     Cardinal,
     CellCoord,
     split_wall_ccw,
     split_wall_cw,
     split_wall_opposite,
 )
-from amazeing.utils import AVLTree, AVLLeaf, SplitWall, WallCoord
-from amazeing.utils.avl import BVHKey
-from amazeing.utils.quadtree import Rect
+from mazegen.utils import AVLTree, AVLLeaf, SplitWall, WallCoord
+from mazegen.utils.avl import BVHKey
+from mazegen.utils.quadtree import Rect
 
 
 class DualForest:
similarity index 91%
rename from amazeing/maze/pacman_tracker.py
rename to mazegen/maze/pacman_tracker.py
index be9bea854175c4e57e25438c5829a7cf9fcae73b..c39d838eb08f98d7c810396f5119295ed23bfd35 100644 (file)
@@ -1,6 +1,6 @@
 from collections.abc import Iterable
-from amazeing.maze import Maze
-from amazeing.utils import Randset, WallCoord
+from mazegen.maze import Maze
+from mazegen.utils import Randset, WallCoord
 
 
 class PacmanTracker:
similarity index 94%
rename from amazeing/maze/path.py
rename to mazegen/maze/path.py
index 0062be5be598adfc67b6a4661f9e3cac32456b08..e62688f417261fdc2b3bfc8b2b7a07a75760bf4f 100644 (file)
@@ -1,8 +1,8 @@
 from collections.abc import Generator
 from dataclasses import dataclass
-from amazeing.maze.maze import Maze
-from amazeing.utils.coords import Cardinal, CellCoord
-from amazeing.utils.ivec2 import IVec2
+from mazegen.maze.maze import Maze
+from mazegen.utils.coords import Cardinal, CellCoord
+from mazegen.utils.ivec2 import IVec2
 import heapq
 
 
similarity index 98%
rename from amazeing/maze/pattern.py
rename to mazegen/maze/pattern.py
index 542897433e8388f0faefdebbf031ada2cdae3c9a..ef38b48570a5ec9e534abc4dbeb384124c46f27a 100644 (file)
@@ -1,6 +1,6 @@
 from collections.abc import Iterable, Generator, Callable
-from amazeing.utils import IVec2, CellCoord
-from amazeing.maze import Maze
+from mazegen.utils import IVec2, CellCoord
+from mazegen.maze import Maze
 
 
 class Pattern:
similarity index 99%
rename from amazeing/utils/avl.py
rename to mazegen/utils/avl.py
index 0a9c320504eb3316d4173351553fcfffd465789f..e8e3eb4f71f3509d3d63a6248d0b62610e622357 100644 (file)
@@ -3,9 +3,9 @@ from collections.abc import Callable, Iterator
 from typing import Self, cast
 import textwrap
 
-from amazeing.utils.coords import CellCoord, SplitWall
-from amazeing.utils.ivec2 import IVec2
-from amazeing.utils.quadtree import Rect
+from mazegen.utils.coords import CellCoord, SplitWall
+from mazegen.utils.ivec2 import IVec2
+from mazegen.utils.quadtree import Rect
 
 
 class Key(ABC):
similarity index 98%
rename from amazeing/utils/bi_map.py
rename to mazegen/utils/bi_map.py
index ac461a078c95a5db15fe1449330a585c600c5a8c..d32e6cbc84f2865abef4f071626116fc69989ce8 100644 (file)
@@ -1,4 +1,4 @@
-from amazeing.utils.avl import (
+from mazegen.utils.avl import (
     Tree as AVLTree,
     Leaf as AVLLeaf,
     NoopKey as AVLNoopKey,
similarity index 99%
rename from amazeing/utils/coords.py
rename to mazegen/utils/coords.py
index 565afee9d407b99736e734c5edc8abea1d993f5c..1a042e6771519c9ff84c26ee30bf6f89f21cce9c 100644 (file)
@@ -1,6 +1,6 @@
 from enum import Enum, auto
 from typing import Iterable, cast, overload
-from amazeing.utils.ivec2 import IVec2
+from mazegen.utils.ivec2 import IVec2
 
 
 class Orientation(Enum):
similarity index 99%
rename from amazeing/utils/quadtree.py
rename to mazegen/utils/quadtree.py
index 346e0a2bdb1af699a39d9ed5ac0efb8c12134626..5d8c77231832f7b506aca66c92768287ed7e351f 100644 (file)
@@ -1,5 +1,5 @@
 from collections.abc import Callable, Generator
-from amazeing.utils.ivec2 import IVec2
+from mazegen.utils.ivec2 import IVec2
 from functools import partial
 from itertools import chain