Skip to content

Commit

Permalink
ffi: remove unneeded python build dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Nov 5, 2024
1 parent 5f3c24a commit ee62264
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
6 changes: 3 additions & 3 deletions bindings/nostr-sdk-ffi/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ python:
cargo build --release
cargo run -p uniffi-bindgen generate --library ../../target/release/libnostr_sdk_ffi.so --language python --no-format -o python/src/nostr-sdk/
cp ../../target/release/libnostr_sdk_ffi.so python/src/nostr-sdk/
cd python && python setup.py --verbose bdist_wheel
cd python && python setup.py bdist_wheel
pip install ./python/dist/nostr_sdk*.whl --force-reinstall

[macos]
Expand All @@ -142,7 +142,7 @@ python:
cargo build --release
cargo run -p uniffi-bindgen generate --library ../../target/release/libnostr_sdk_ffi.dylib --language python --no-format -o python/src/nostr-sdk/
cp ../../target/release/libnostr_sdk_ffi.dylib python/src/nostr-sdk/
cd python && python setup.py --verbose bdist_wheel
cd python && python setup.py bdist_wheel
pip install ./python/dist/nostr_sdk*.whl --force-reinstall

[windows]
Expand All @@ -152,5 +152,5 @@ python:
cargo run -p uniffi-bindgen generate --library ..\..\target\release\nostr_sdk_ffi.dll --language python --no-format -o python\src\nostr-sdk\
copy ..\..\target\release\nostr_sdk_ffi.dll python\src\nostr-sdk
del /F /Q python\dist\* 2>nul || exit /b 0
cd python && python setup.py --verbose bdist_wheel
cd python && python setup.py bdist_wheel
FOR %%i in (.\python\dist\*.whl) DO pip install %i --force-reinstall
7 changes: 1 addition & 6 deletions bindings/nostr-sdk-ffi/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
[build-system]
requires = ["setuptools", "wheel"]

[tool.pytest.ini_options]
pythonpath = [
"."
]
requires = ["setuptools"]
5 changes: 1 addition & 4 deletions bindings/nostr-sdk-ffi/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
semantic-version==2.9.0
typing_extensions==4.0.1
setuptools==70.0.0
wheel==0.38.4
setuptools==75.3.0

0 comments on commit ee62264

Please sign in to comment.