-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
98 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
src/breez_liquid_sdk/* | ||
!src/breez_liquid_sdk/__init__.py | ||
*.egg-info | ||
build | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Breez Liquid SDK bindings for Python | ||
|
||
## Usage | ||
|
||
``` | ||
pip install breez_liquid_sdk | ||
``` | ||
|
||
``` python | ||
import breez_liquid_sdk | ||
``` | ||
|
||
## Python Package | ||
|
||
Run the GitHub workflow 'Publish Python Bindings' when creating a new release of Breez Liquid SDK. | ||
It will create wheels for the following Python versions and Platforms and upload them to [PyPi.org](https://pypi.org/project/breez-sdk-liquid/). | ||
|
||
### Supported Wheels | ||
|
||
| | GNU/Linux amd64 | GNU/Linux arm64v8 | macOS x86_64 | macOS aarch64 | Windows x86_64 | Windows 32 | | ||
|-----------------|-----------------|-------------------|--------------|---------------|----------------|------------| | ||
| **Python 3.8** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
| **Python 3.9** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
| **Python 3.10** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
| **Python 3.11** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
| **Python 3.12** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
|
||
## Building Manually | ||
|
||
To build the package manually inside this directory use the supplied `makefile`: | ||
|
||
``` shell | ||
make darwin # builds the package for macos | ||
make linux # builds the package for linux | ||
``` | ||
|
||
The artifacts will be placed in `src/breez_liquid_sdk/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.PHONY: init | ||
init: | ||
make -C ../ init | ||
|
||
darwin: | ||
make -C ../ python-darwin | ||
cp ../ffi/python/breez_liquid_sdk.py src/breez_liquid_sdk | ||
cp ../ffi/python/libbreez_liquid_sdk_bindings.dylib src/breez_liquid_sdk | ||
|
||
linux: | ||
make -C ../ python-linux | ||
cp ../ffi/python/breez_liquid_sdk.py src/breez_liquid_sdk | ||
cp ../ffi/python/libbreez_liquid_sdk_bindings.so src/breez_liquid_sdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup | ||
|
||
LONG_DESCRIPTION = """# Breez Liquid SDK | ||
Python language bindings for the [Breez Liquid SDK](https://github.com/breez/breez-sdk-liquid). | ||
## Installing | ||
```shell | ||
pip install breez_liquid_sdk | ||
``` | ||
""" | ||
|
||
setup( | ||
name="breez_liquid_sdk", | ||
version="0.2.7.dev9", | ||
description="Python language bindings for the Breez Liquid SDK", | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type="text/markdown", | ||
packages=["breez_liquid_sdk"], | ||
package_dir={"breez_liquid_sdk": "./src/breez_liquid_sdk"}, | ||
include_package_data=True, | ||
package_data={"breez_liquid_sdk": ["*.dylib", "*.so", "*.dll"]}, | ||
url="https://github.com/breez/breez-sdk-liquid", | ||
author="Breez <contact@breez.technology>", | ||
license="MIT", | ||
has_ext_modules=lambda: True, | ||
) |
1 change: 1 addition & 0 deletions
1
lib/ls-sdk-bindings/bindings-python/src/breez_liquid_sdk/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from breez_liquid_sdk.breez_liquid_sdk import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters