From 21b6b019da2505fdc889d20275f51021f1f5b1b4 Mon Sep 17 00:00:00 2001 From: BrSh31 Date: Sun, 2 Nov 2025 22:17:12 +0100 Subject: [PATCH] changes for Test-PyPi --- .gitignore | 1 + README.md | 13 +++++++++++++ matrixmania/__init__.py | 1 + compute.py => matrixmania/compute.py | 0 pyproject.toml | 16 ++++++++++++++++ 5 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 matrixmania/__init__.py rename compute.py => matrixmania/compute.py (100%) create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5fa603c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +git/dist/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..a35ba43 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# MatrixMania + +A small teaching package for basic linear algebra operations. + +## Functions + +### `matmul(A, B)` +Matrix multiplication between two 2D lists. + +```python +>>> from matrixmania import matmul +>>> matmul([[1, 2]], [[3], [4]]) +[[11]] diff --git a/matrixmania/__init__.py b/matrixmania/__init__.py new file mode 100644 index 0000000..975a585 --- /dev/null +++ b/matrixmania/__init__.py @@ -0,0 +1 @@ +from .compute import matmul, transpose, rot_2D \ No newline at end of file diff --git a/compute.py b/matrixmania/compute.py similarity index 100% rename from compute.py rename to matrixmania/compute.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8ad05c1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[project] +name = "matrixmania_shehibr" +version = "0.1.0" +description = "MatrixMania: Simple linear algebra functions for teaching (matmul, transpose,rot_2D)." +authors = [ +{ name="shehibr", email="shehibr98345@th-nuernberg.de" } +] +readme = "README.md" +license = { text = "MIT" } +requires-python = ">=3.7" +dependencies = ["tabulate"] +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" +[tool.hatch.build.targets.wheel] +packages = ["matrixmania"] \ No newline at end of file