From 728d9603dcf1e32682f8a67ab8fc09790aa99aa2 Mon Sep 17 00:00:00 2001 From: cli Date: Thu, 6 Feb 2025 16:53:29 +0100 Subject: [PATCH] fix(python): improve modules path (#88) --- .github/workflows/python-build.yml | 2 +- pyadb_client/README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 74847bb..34e03c9 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -25,7 +25,7 @@ jobs: run: pip install ".[build]" - name: Build Python packages - run: maturin build --release --compatibility manylinux_2_25 --auditwheel=skip + run: maturin build --release -m pyadb_client/Cargo.toml --compatibility manylinux_2_25 --auditwheel=skip publish-python-packages: runs-on: ubuntu-latest diff --git a/pyadb_client/README.md b/pyadb_client/README.md index 18ca3bb..964b20e 100644 --- a/pyadb_client/README.md +++ b/pyadb_client/README.md @@ -13,9 +13,9 @@ pip install pyadb_client ### Use ADB server ```python -from pyadb_client import pyadb_client +from pyadb_client import PyADBServer -server = pyadb_client.PyADBServer("127.0.0.1:5037") +server = PyADBServer("127.0.0.1:5037") for i, device in enumerate(server.devices()): print(i, device.identifier, device.state) @@ -27,7 +27,7 @@ print(device, device.identifier) ### Push a file on device ```python -from pyadb_client import pyadb_client +from pyadb_client import PyADBUSBDevice usb_device = PyADBUSBDevice.autodetect() usb_device.push("file.txt", "/data/local/tmp/file.txt") @@ -51,5 +51,5 @@ maturin develop cargo run --bin stub_gen # Build release Python package -maturin build --release +maturin build --release -m pyadb_client/Cargo.toml ```