Skip to content

Commit

Permalink
fix(pyadb_client): add adb_client as a path dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cocool97 committed Feb 11, 2025
1 parent 17bb77a commit 69107e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .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 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
Expand All @@ -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 }}

Expand Down
20 changes: 12 additions & 8 deletions pyadb_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
pyo3-stub-gen-derive = "0.7.0"

0 comments on commit 69107e2

Please sign in to comment.