From 2b1b67daba1d8b0bf6147080d1dbc9ab37b5c469 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 28 Apr 2025 18:02:15 +0100 Subject: [PATCH] Rename pyo3 directory to python Also update the crate's name. --- .github/workflows/ci.yml | 2 +- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- {pyo3 => python}/.github/workflows/CI.yml | 0 {pyo3 => python}/.gitignore | 0 {pyo3 => python}/Cargo.toml | 2 +- {pyo3 => python}/README.md | 2 +- {pyo3 => python}/pyproject.toml | 0 {pyo3 => python}/src/database.rs | 0 {pyo3 => python}/src/error.rs | 0 {pyo3 => python}/src/game.rs | 0 {pyo3 => python}/src/lib.rs | 0 {pyo3 => python}/src/metadata.rs | 0 {pyo3 => python}/src/plugin.rs | 0 15 files changed, 6 insertions(+), 6 deletions(-) rename {pyo3 => python}/.github/workflows/CI.yml (100%) rename {pyo3 => python}/.gitignore (100%) rename {pyo3 => python}/Cargo.toml (92%) rename {pyo3 => python}/README.md (98%) rename {pyo3 => python}/pyproject.toml (100%) rename {pyo3 => python}/src/database.rs (100%) rename {pyo3 => python}/src/error.rs (100%) rename {pyo3 => python}/src/game.rs (100%) rename {pyo3 => python}/src/lib.rs (100%) rename {pyo3 => python}/src/metadata.rs (100%) rename {pyo3 => python}/src/plugin.rs (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81b13039..81bfe344 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,7 +99,7 @@ jobs: - name: Build the Python wrapper shell: bash - working-directory: pyo3 + working-directory: python run: | python -m venv .venv diff --git a/Cargo.lock b/Cargo.lock index 4ba65a55..0d506cdc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -598,7 +598,7 @@ dependencies = [ ] [[package]] -name = "libloot_pyo3" +name = "libloot_python" version = "0.26.0" dependencies = [ "libloot", diff --git a/Cargo.toml b/Cargo.toml index 9f4eccd6..bb69d325 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ parameterized-test = { path = "./parameterized-test" } tempfile = "3.17.1" [workspace] -members = ["cxx", "ffi-errors", "nodejs", "parameterized-test", "pyo3"] +members = ["cxx", "ffi-errors", "nodejs", "parameterized-test", "python"] [workspace.dependencies] esplugin = "6.1.2" diff --git a/README.md b/README.md index 0e94e94d..f3114a65 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This is an **experimental** reimplementation of [libloot](https://github.com/loot/libloot) using Rust instead of C++, that should match libloot v0.26.0. -See the `cxx` and `pyo3` subdirectories for C++ and Python wrappers respectively. +See the `cxx` and `python` subdirectories for C++ and Python wrappers respectively. Expect: diff --git a/pyo3/.github/workflows/CI.yml b/python/.github/workflows/CI.yml similarity index 100% rename from pyo3/.github/workflows/CI.yml rename to python/.github/workflows/CI.yml diff --git a/pyo3/.gitignore b/python/.gitignore similarity index 100% rename from pyo3/.gitignore rename to python/.gitignore diff --git a/pyo3/Cargo.toml b/python/Cargo.toml similarity index 92% rename from pyo3/Cargo.toml rename to python/Cargo.toml index 6579b46c..529f1d93 100644 --- a/pyo3/Cargo.toml +++ b/python/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "libloot_pyo3" +name = "libloot_python" version = "0.26.0" edition = "2024" diff --git a/pyo3/README.md b/python/README.md similarity index 98% rename from pyo3/README.md rename to python/README.md index 588f7161..d4afaa36 100644 --- a/pyo3/README.md +++ b/python/README.md @@ -1,4 +1,4 @@ -# libloot-pyo3 +# libloot-python An **experimental** Python wrapper around the libloot Rust implementation, built using [PyO3](https://pyo3.rs). diff --git a/pyo3/pyproject.toml b/python/pyproject.toml similarity index 100% rename from pyo3/pyproject.toml rename to python/pyproject.toml diff --git a/pyo3/src/database.rs b/python/src/database.rs similarity index 100% rename from pyo3/src/database.rs rename to python/src/database.rs diff --git a/pyo3/src/error.rs b/python/src/error.rs similarity index 100% rename from pyo3/src/error.rs rename to python/src/error.rs diff --git a/pyo3/src/game.rs b/python/src/game.rs similarity index 100% rename from pyo3/src/game.rs rename to python/src/game.rs diff --git a/pyo3/src/lib.rs b/python/src/lib.rs similarity index 100% rename from pyo3/src/lib.rs rename to python/src/lib.rs diff --git a/pyo3/src/metadata.rs b/python/src/metadata.rs similarity index 100% rename from pyo3/src/metadata.rs rename to python/src/metadata.rs diff --git a/pyo3/src/plugin.rs b/python/src/plugin.rs similarity index 100% rename from pyo3/src/plugin.rs rename to python/src/plugin.rs