From 69107e233357d5bf9da27ab1267fa94cc2d430e0 Mon Sep 17 00:00:00 2001 From: LIAUD Corentin Date: Tue, 11 Feb 2025 14:38:20 +0100 Subject: [PATCH] fix(pyadb_client): add adb_client as a path dependency --- .github/workflows/python-build.yml | 4 ++-- pyadb_client/Cargo.toml | 20 ++++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index c236663..c3b0e65 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -25,7 +25,7 @@ jobs: run: pip install maturin==1.8.2 - name: Build Python packages - run: maturin build --release -m pyadb_client/Cargo.toml --compatibility manylinux_2_25 --auditwheel=skip + run: maturin build --sdist --release -m pyadb_client/Cargo.toml publish-python-packages: runs-on: ubuntu-latest @@ -39,7 +39,7 @@ jobs: run: pip install maturin==1.8.2 - name: Publish Python packages - run: maturin publish -m pyadb_client/Cargo.toml --non-interactive --compatibility manylinux_2_25 --auditwheel=skip + run: maturin publish -m pyadb_client/Cargo.toml --non-interactive env: MATURIN_PYPI_TOKEN: ${{ secrets.MATURIN_PYPI_TOKEN }} diff --git a/pyadb_client/Cargo.toml b/pyadb_client/Cargo.toml index 11804b4..c08df38 100644 --- a/pyadb_client/Cargo.toml +++ b/pyadb_client/Cargo.toml @@ -1,26 +1,30 @@ [package] -name = "pyadb_client" -description = "Python wrapper for adb_client library" authors.workspace = true +description = "Python wrapper for adb_client library" edition.workspace = true homepage.workspace = true keywords.workspace = true license.workspace = true +name = "pyadb_client" +readme = "README.md" repository.workspace = true version.workspace = true -readme = "README.md" [lib] -name = "pyadb_client" crate-type = ["cdylib", "rlib"] +name = "pyadb_client" [[bin]] -name = "stub_gen" doc = false +name = "stub_gen" [dependencies] +adb_client = { path = "../adb_client" } anyhow = { version = "1.0.95" } -adb_client = { version = "2.1.5" } -pyo3 = { version = "0.23.4", features = ["extension-module", "anyhow", "abi3-py37"] } +pyo3 = { version = "0.23.4", features = [ + "abi3-py37", + "anyhow", + "extension-module", +] } pyo3-stub-gen = "0.7.0" -pyo3-stub-gen-derive = "0.7.0" \ No newline at end of file +pyo3-stub-gen-derive = "0.7.0"