From fb780bf13def5ff2db1ba4690c8124d28b7ee834 Mon Sep 17 00:00:00 2001 From: AshGw Date: Fri, 31 May 2024 06:59:42 +0100 Subject: [PATCH] build: clearup py module --- py/__init__.py | 5 +++++ pyproject.toml | 4 ++-- python/gcm_rs/__init__.py | 4 ---- 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 py/__init__.py delete mode 100644 python/gcm_rs/__init__.py diff --git a/py/__init__.py b/py/__init__.py new file mode 100644 index 0000000..a0090ba --- /dev/null +++ b/py/__init__.py @@ -0,0 +1,5 @@ +from py import * + +key = gen_key() +nonce = gen_nonce() +gcm = GCM() \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 9ab9484..c9bf38c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,6 @@ classifiers = [ dynamic = ["version"] [tool.maturin] -python-source = "python" -module-name = "gcm_rs._lib_name" +python-source = "." +module-name = "py._lib_name" features = ["pyo3/extension-module"] diff --git a/python/gcm_rs/__init__.py b/python/gcm_rs/__init__.py deleted file mode 100644 index db0773c..0000000 --- a/python/gcm_rs/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from gcm_rs import * - -print(gen_key()) -a = GCM() \ No newline at end of file