Skip to content

Commit

Permalink
test v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bimalkjha committed Dec 30, 2024
1 parent 2b26cdd commit bc45427
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 28 deletions.
37 changes: 13 additions & 24 deletions .github/workflows/bld_wheels_and_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_BUILD: "*-win_amd64"
CIBW_SKIP: "cp36-* pp*"
- uses: actions/[email protected]
with:
name: ibmdb-wheels64-${{ matrix.os }}
Expand All @@ -41,7 +40,6 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_BUILD: "*-win32"
CIBW_SKIP: "cp36-* pp*"
- uses: actions/[email protected]
with:
name: ibmdb-wheels32-${{ matrix.os }}
Expand All @@ -59,7 +57,7 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_SKIP: "cp36-* *-musllinux_* pp* *-*linux_{aarch64,ppc64le}"
CIBW_SKIP: "*-musllinux_* *-*linux_{aarch64}"
CIBW_REPAIR_WHEEL_COMMAND_LINUX:
auditwheel repair
--exclude libdb2.so.1
Expand All @@ -84,30 +82,24 @@ jobs:
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Set macOS deployment target
run: echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> $GITHUB_ENV
uses: pypa/[email protected]

- name: Install build dependencies
run: |
pip install --upgrade pip
pip install cibuildwheel delocate build
- name: Build the wheel for macOS
env:
CIBW_SKIP: "cp36-* cp37-* pp36-* pp37-*"
CIBW_SKIP: "cp37-* cp38-*"
CIBW_ARCHS_MACOS: "arm64"
run: |
cibuildwheel --platform macos --output-dir dist
MACOSX_DEPLOYMENT_TARGET: 14.0

- name: Upload sdist
uses: actions/[email protected]
with:
name: ibmdb-wheelsarm64
path: dist/*.whl
path: wheelhouse/*.whl

build_wheels_macos_x86:
name: Build wheels for macOS x86_64
Expand All @@ -122,15 +114,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cibuildwheel # Install cibuildwheel to build the wheels
- name: Set macOS deployment target
run: echo "MACOSX_DEPLOYMENT_TARGET=10.15" >> $GITHUB_ENV
pip install cibuildwheel delocate build
- name: Build wheels with cibuildwheel
run: |
CIBW_ARCHS_MACOS="${{ matrix.architecture }}"
python -m cibuildwheel --platform macos --output-dir ./wheelhouse
env:
CIBW_BUILD: "*-x86_64"
CIBW_ARCHS_MACOS: "x86_64"
MACOSX_DEPLOYMENT_TARGET: 10.15

- name: Upload wheels as artifacts
uses: actions/[email protected]
Expand Down Expand Up @@ -172,7 +161,7 @@ jobs:


upload_pypi:
needs: [build_sdist,build_wheels_linux, build_wheels_windows_64,build_wheels_windows_32, build_macos_arm64_wheels, build_wheels_macos_x86]
needs: [build_wheels_windows_64, build_wheels_windows_32, build_wheels_linux, build_macos_arm64_wheel, build_wheels_macos_x86, build_sdist]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion ibm_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
+--------------------------------------------------------------------------+
*/

#define MODULE_RELEASE "0.0.1"
#define MODULE_RELEASE "0.0.2"

#include <Python.h>
#include <datetime.h>
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel.macos]
[tool.cibuildwheel.macos]
repair-wheel-command = "delocate-wheel --ignore-missing-dependencies --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
skip = "cp36-macosx_x86_64"
skip = "cp36-* pp*"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from setuptools.command.install import install

PACKAGE = 'ibm_db2'
VERSION = '0.0.1'
VERSION = '0.0.2'
LICENSE = 'Apache License 2.0'
readme = os.path.join(os.path.dirname(__file__),'README.md')

Expand Down

0 comments on commit bc45427

Please sign in to comment.