mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-28 16:04:35 +02:00
Compare commits
1 Commits
40e25757c7
...
whl
| Author | SHA1 | Date | |
|---|---|---|---|
| 843fe5f80c |
@@ -216,3 +216,4 @@ __marimo__/
|
|||||||
.streamlit/secrets.toml
|
.streamlit/secrets.toml
|
||||||
test.txt
|
test.txt
|
||||||
|
|
||||||
|
mazegen-1.0.0-py3-none-any.whl
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
build:
|
||||||
|
uv build --clear --wheel
|
||||||
|
cp dist/*.whl mazegen-1.0.0-py3-none-any.whl
|
||||||
|
|
||||||
install:
|
install:
|
||||||
uv sync
|
uv sync
|
||||||
uv pip install mlx-2.2-py3-none-any.whl
|
uv pip install mlx-2.2-py3-none-any.whl
|
||||||
@@ -12,7 +16,10 @@ debug:
|
|||||||
uv pdb python3 a_maze_ing.py config.txt
|
uv pdb python3 a_maze_ing.py config.txt
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf __pycache__ .mypy_cache .venv
|
rm -rf */**__pycache__ __pycache__ .mypy_cache .venv dist build */**/*.egg-info *.egg-info
|
||||||
|
|
||||||
|
fclean: clean
|
||||||
|
rm mazegen-1.0.0-py3-none-any.whl
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
uv run flake8 . --exclude=.venv
|
uv run flake8 . --exclude=.venv
|
||||||
@@ -34,3 +41,5 @@ run_test:
|
|||||||
uv run pytest
|
uv run pytest
|
||||||
mlx:
|
mlx:
|
||||||
uv run python3 test.py
|
uv run python3 test.py
|
||||||
|
|
||||||
|
.PHONY: build install run debug clean fclean lint lint-strict run_test
|
||||||
|
|||||||
+5
-4
@@ -1,6 +1,6 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
from src.AMazeIng import AMazeIng
|
from src.AMazeIng import AMazeIng
|
||||||
from src.parsing import Parsing
|
from src.parsing.Parsing import DataMaze as Parsing
|
||||||
from mlx import Mlx
|
from mlx import Mlx
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import time
|
import time
|
||||||
@@ -308,8 +308,9 @@ class MazeMLX:
|
|||||||
if keycode == 52:
|
if keycode == 52:
|
||||||
self.close_loop(None)
|
self.close_loop(None)
|
||||||
|
|
||||||
def handle_key_press_mteriier(self, keycode: int,
|
def handle_key_press_mteriier(
|
||||||
amazing: AMazeIng) -> None:
|
self, keycode: int, amazing: AMazeIng
|
||||||
|
) -> None:
|
||||||
if keycode == 38:
|
if keycode == 38:
|
||||||
self.restart_maze(amazing)
|
self.restart_maze(amazing)
|
||||||
self.print_path = False
|
self.print_path = False
|
||||||
@@ -339,7 +340,7 @@ def main() -> None:
|
|||||||
mlx = None
|
mlx = None
|
||||||
try:
|
try:
|
||||||
mlx = MazeMLX(1000, 1000)
|
mlx = MazeMLX(1000, 1000)
|
||||||
config = Parsing.DataMaze.get_data_maze("config.txt")
|
config = Parsing.get_data_maze("config.txt")
|
||||||
amazing = AMazeIng(**config)
|
amazing = AMazeIng(**config)
|
||||||
mlx.start(amazing)
|
mlx.start(amazing)
|
||||||
with open("test.txt", "w") as output:
|
with open("test.txt", "w") as output:
|
||||||
|
|||||||
@@ -23,3 +23,11 @@ python_version = "3.10"
|
|||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
pythonpath = ["src"]
|
pythonpath = ["src"]
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=78.1.0", "wheel>=0.45.1"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
package-dir = {"" = "src/amaz_lib"}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
__version__ = "1.0.0"
|
|
||||||
__author__ = "mteriier, dgaillet"
|
|
||||||
|
|
||||||
from .Parsing import DataMaze
|
|
||||||
|
|
||||||
__all__ = ["DataMaze"]
|
|
||||||
@@ -9,7 +9,7 @@ resolution-markers = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "a-maze-ing"
|
name = "a-maze-ing"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = { virtual = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
||||||
{ name = "numpy", version = "2.4.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
{ name = "numpy", version = "2.4.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
||||||
|
|||||||
Reference in New Issue
Block a user