Fix Python libraries' names to prepare for releasing
This commit is contained in:
parent
d8718c3f05
commit
89e85a20cf
14
.github/workflows/publish-python.yaml
vendored
14
.github/workflows/publish-python.yaml
vendored
@ -39,11 +39,13 @@ jobs:
|
|||||||
- name: "Install requirements"
|
- name: "Install requirements"
|
||||||
run: ${PYBIN}/pip install -r requirements.txt
|
run: ${PYBIN}/pip install -r requirements.txt
|
||||||
|
|
||||||
- name: "Generate bdk.py"
|
- name: "Generate bdk.py and binaries"
|
||||||
run: bash generate.sh
|
run: bash generate.sh
|
||||||
|
|
||||||
- name: "Build wheel"
|
- name: "Build wheel"
|
||||||
run: ${PYBIN}/python setup.py bdist_wheel --verbose
|
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
|
||||||
|
# see issue #350 for more information
|
||||||
|
run: ${PYBIN}/python setup.py bdist_wheel --plat-name manylinux_2_17_x86_64 --verbose
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -71,7 +73,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
- name: "Generate bdk.py"
|
- name: "Generate bdk.py and binaries"
|
||||||
run: |
|
run: |
|
||||||
python3 --version
|
python3 --version
|
||||||
rustup target add aarch64-apple-darwin
|
rustup target add aarch64-apple-darwin
|
||||||
@ -81,7 +83,9 @@ jobs:
|
|||||||
- name: "Build wheel"
|
- name: "Build wheel"
|
||||||
env:
|
env:
|
||||||
ARCHFLAGS: "-arch x86_64 -arch arm64"
|
ARCHFLAGS: "-arch x86_64 -arch arm64"
|
||||||
run: python3 setup.py bdist_wheel --verbose
|
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
|
||||||
|
# see issue #350 for more information
|
||||||
|
run: python3 setup.py bdist_wheel --plat-name macosx_12_0_universal2 --verbose
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -109,7 +113,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
- name: "Generate bdk.py"
|
- name: "Generate bdk.py and binaries"
|
||||||
run: |
|
run: |
|
||||||
python --version
|
python --version
|
||||||
pip install --user -r requirements.txt
|
pip install --user -r requirements.txt
|
||||||
|
14
.github/workflows/test-python.yaml
vendored
14
.github/workflows/test-python.yaml
vendored
@ -48,11 +48,13 @@ jobs:
|
|||||||
- name: "Install requirements"
|
- name: "Install requirements"
|
||||||
run: ${PYBIN}/pip install -r requirements.txt
|
run: ${PYBIN}/pip install -r requirements.txt
|
||||||
|
|
||||||
- name: "Generate bdk.py"
|
- name: "Generate bdk.py and binaries"
|
||||||
run: bash generate.sh
|
run: bash generate.sh
|
||||||
|
|
||||||
- name: "Build wheel"
|
- name: "Build wheel"
|
||||||
run: ${PYBIN}/python setup.py bdist_wheel --verbose
|
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
|
||||||
|
# see issue #350 for more information
|
||||||
|
run: ${PYBIN}/python setup.py bdist_wheel --plat-name manylinux_2_17_x86_64 --verbose
|
||||||
|
|
||||||
- name: "Install wheel"
|
- name: "Install wheel"
|
||||||
run: ${PYBIN}/pip install ./dist/*.whl
|
run: ${PYBIN}/pip install ./dist/*.whl
|
||||||
@ -75,7 +77,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python:
|
python:
|
||||||
- "3.8"
|
# 3.8 returns an error for the macos-12 image when we try to install the wheel:
|
||||||
|
# bdkpython-0.28.0.dev0-cp38-cp38-macosx_12_0_universal2.whl is not a supported wheel on this platform.
|
||||||
|
# - "3.8"
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.10"
|
- "3.10"
|
||||||
steps:
|
steps:
|
||||||
@ -87,7 +91,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
- name: "Generate bdk.py"
|
- name: "Generate bdk.py and binaries"
|
||||||
run: |
|
run: |
|
||||||
python3 --version
|
python3 --version
|
||||||
rustup target add aarch64-apple-darwin
|
rustup target add aarch64-apple-darwin
|
||||||
@ -97,7 +101,7 @@ jobs:
|
|||||||
- name: "Build wheel"
|
- name: "Build wheel"
|
||||||
env:
|
env:
|
||||||
ARCHFLAGS: "-arch x86_64 -arch arm64"
|
ARCHFLAGS: "-arch x86_64 -arch arm64"
|
||||||
run: python3 setup.py bdist_wheel --verbose
|
run: python3 setup.py bdist_wheel --plat-name macosx_12_0_universal2 --verbose
|
||||||
|
|
||||||
- name: "Install wheel"
|
- name: "Install wheel"
|
||||||
run: pip3 install ./dist/*.whl
|
run: pip3 install ./dist/*.whl
|
||||||
|
@ -62,4 +62,7 @@ setup(
|
|||||||
url="https://github.com/bitcoindevkit/bdk-ffi",
|
url="https://github.com/bitcoindevkit/bdk-ffi",
|
||||||
author="Alekos Filini <alekos.filini@gmail.com>, Steve Myers <steve@notmandatory.org>",
|
author="Alekos Filini <alekos.filini@gmail.com>, Steve Myers <steve@notmandatory.org>",
|
||||||
license="MIT or Apache 2.0",
|
license="MIT or Apache 2.0",
|
||||||
|
# This is required to ensure the library name includes the python version, abi, and platform tags
|
||||||
|
# See issue #350 for more information
|
||||||
|
has_ext_modules=lambda: True,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user