Skip to content

Commit

Permalink
fix(python): improve modules path (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
cli-s1n authored Feb 6, 2025
1 parent 00c387d commit 728d960
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions pyadb_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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")
Expand All @@ -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
```

0 comments on commit 728d960

Please sign in to comment.