fix(python): improve modules path (#88)

This commit is contained in:
cli
2025-02-06 16:53:29 +01:00
committed by GitHub
parent 00c387d85c
commit 728d9603dc
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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
```