From 1e18831e5f6666a02512f5f40dabaac2e646be14 Mon Sep 17 00:00:00 2001 From: melkor Date: Sat, 6 Jul 2024 15:51:13 -0700 Subject: [PATCH] Nest Python sources under `python/` Per https://github.com/PyO3/maturin/issues/490 and https://github.com/PyO3/maturin/pull/855, this avoids problems when importing from the project dir. --- pyproject.toml | 1 + {peppi_py => python/peppi_py}/__init__.py | 0 {peppi_py => python/peppi_py}/frame.py | 0 {peppi_py => python/peppi_py}/game.py | 0 {peppi_py => python/peppi_py}/parse.py | 0 {peppi_py => python/peppi_py}/util.py | 0 6 files changed, 1 insertion(+) rename {peppi_py => python/peppi_py}/__init__.py (100%) rename {peppi_py => python/peppi_py}/frame.py (100%) rename {peppi_py => python/peppi_py}/game.py (100%) rename {peppi_py => python/peppi_py}/parse.py (100%) rename {peppi_py => python/peppi_py}/util.py (100%) diff --git a/pyproject.toml b/pyproject.toml index cdea8af..c8315c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,7 @@ build-backend = "maturin" requires = ["pyarrow~=16.1"] [tool.maturin] +python-source = "python" module-name = "peppi_py._peppi" [pytest] diff --git a/peppi_py/__init__.py b/python/peppi_py/__init__.py similarity index 100% rename from peppi_py/__init__.py rename to python/peppi_py/__init__.py diff --git a/peppi_py/frame.py b/python/peppi_py/frame.py similarity index 100% rename from peppi_py/frame.py rename to python/peppi_py/frame.py diff --git a/peppi_py/game.py b/python/peppi_py/game.py similarity index 100% rename from peppi_py/game.py rename to python/peppi_py/game.py diff --git a/peppi_py/parse.py b/python/peppi_py/parse.py similarity index 100% rename from peppi_py/parse.py rename to python/peppi_py/parse.py diff --git a/peppi_py/util.py b/python/peppi_py/util.py similarity index 100% rename from peppi_py/util.py rename to python/peppi_py/util.py