Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python wheels support #878

Merged
merged 260 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
393e6b1
Add release.yml
Earammak Jun 27, 2023
ed8755f
remove release.yml
Earammak Jun 27, 2023
b0d79b8
update bld_wheels_and_upload.yml
Earammak Jun 27, 2023
47ef47f
remove release.yml
Earammak Jun 27, 2023
bf159cd
update bld_wheels_and_upload.yml
Earammak Jun 27, 2023
8ba79ad
remove release.yml
Earammak Jun 27, 2023
d0133ce
remove release.yml
Earammak Jun 27, 2023
7a7e293
test release 0.0.13
Earammak Jun 27, 2023
bb6215d
change ibm_db version 3.1.4.1
Earammak Jul 4, 2023
086058a
update bld_wheels_and_upload.yml
Earammak Jul 4, 2023
6d48b63
update version 3.1.5
Earammak Jul 4, 2023
a42e103
version update 3.1.4.2 and add ibm_db.py
Earammak Jul 5, 2023
8eb4c81
test for excluding clidriver from source distribution
Earammak Jul 6, 2023
b11ec30
update .gitignore and update ibm_db version 3.1.4.4
Earammak Jul 6, 2023
cebfb38
test clidriver to exclude from sdist
Earammak Jul 7, 2023
2e8c9df
update manifest.in
Earammak Jul 11, 2023
c0266c6
test with version 3.1.4.5
Earammak Jul 11, 2023
c053576
test on setting env in pyproject.toml
Earammak Jul 17, 2023
60759a0
update MANIFEST.in
Earammak Jul 17, 2023
7be5653
Update test_script_to_exclude_clidriver.yml
Earammak Jul 17, 2023
4eeabad
Update test_script_to_exclude_clidriver.yml
Earammak Jul 17, 2023
292210c
Update test_script_to_exclude_clidriver.yml
Earammak Jul 18, 2023
967a8a0
Update test_script_to_exclude_clidriver.yml
Earammak Jul 18, 2023
31b0798
Update pyproject.toml
Earammak Jul 18, 2023
89b4ffd
Update test_script_to_exclude_clidriver.yml
Earammak Jul 25, 2023
a428b5e
Update bld_wheels_and_upload.yml
Earammak Jul 25, 2023
41bf5db
Update test_script_to_exclude_clidriver.yml
Earammak Jul 25, 2023
57e6c02
Create test_sdist.yml
Earammak Jul 25, 2023
2e2ed04
Update test_script_to_exclude_clidriver.yml
Earammak Jul 25, 2023
8a9733b
Update test_sdist.yml
Earammak Jul 25, 2023
0cc9d22
Update test_sdist.yml
Earammak Jul 25, 2023
8d1d524
Update test_sdist.yml
Earammak Jul 25, 2023
7b3e6f0
Update test_sdist.yml
Earammak Jul 25, 2023
cc7ab93
Update test_sdist.yml
Earammak Jul 25, 2023
0d44785
Update test_sdist.yml
Earammak Jul 25, 2023
a30f44c
Update test_sdist.yml
Earammak Jul 25, 2023
2e37b92
Update test_sdist.yml
Earammak Jul 25, 2023
48b8352
Update test_sdist.yml
Earammak Jul 25, 2023
e04f9f8
Update test_sdist.yml
Earammak Jul 25, 2023
a4325d9
Update test_sdist.yml
Earammak Jul 25, 2023
cf07680
Update test_sdist.yml
Earammak Jul 25, 2023
9447023
Update test_sdist.yml
Earammak Jul 25, 2023
4c1e402
Update test_sdist.yml
Earammak Jul 25, 2023
182a5e6
Update test_sdist.yml
Earammak Jul 25, 2023
0248baa
Update test_sdist.yml
Earammak Jul 25, 2023
b24b5fe
Update test_sdist.yml
Earammak Jul 25, 2023
9bd51eb
Update test_sdist.yml
Earammak Jul 25, 2023
6924a0d
Update test_sdist.yml
Earammak Jul 25, 2023
759c95e
Update test_sdist.yml
Earammak Jul 25, 2023
318aedb
Update test_sdist.yml
Earammak Jul 25, 2023
926a119
Update test_sdist.yml
Earammak Jul 25, 2023
98c496e
Update test_sdist.yml
Earammak Jul 25, 2023
20cf26a
Update test_sdist.yml
Earammak Jul 25, 2023
4fecb80
Update test_sdist.yml
Earammak Jul 25, 2023
8a182dc
Update test_sdist.yml
Earammak Jul 25, 2023
14c271b
Update test_sdist.yml
Earammak Jul 25, 2023
56792a6
Update bld_wheels_and_upload.yml
Earammak Jul 25, 2023
1024184
Update ibm_db.c
Earammak Jul 25, 2023
337dfcd
Update setup.py
Earammak Jul 25, 2023
ddb3569
Update bld_wheels_and_upload.yml
Earammak Jul 25, 2023
1d32293
Update bld_wheels_and_upload.yml
Earammak Jul 25, 2023
711022f
Update bld_wheels_and_upload.yml
Earammak Jul 25, 2023
0b19fdd
Update bld_wheels_and_upload.yml
Earammak Jul 25, 2023
98a8ac0
Update test_sdist.yml
Earammak Jul 25, 2023
85f4be4
Update test_sdist.yml
Earammak Jul 26, 2023
41a9842
Update test_sdist.yml
Earammak Jul 26, 2023
f87e144
Update test_sdist.yml
Earammak Jul 26, 2023
4830f53
Update test_sdist.yml
Earammak Jul 26, 2023
87893db
Update test_sdist.yml
Earammak Jul 26, 2023
c10092e
Update test_sdist.yml
Earammak Jul 26, 2023
4499648
Update test_sdist.yml
Earammak Jul 26, 2023
e3c6230
Update test_sdist.yml
Earammak Jul 26, 2023
739474d
Update test_sdist.yml
Earammak Jul 26, 2023
a7af001
Update test_sdist.yml
Earammak Jul 26, 2023
cde2520
Update ibm_db.c
Earammak Jul 26, 2023
1cd00c1
Update setup.py
Earammak Jul 26, 2023
a7c1280
Update bld_wheels_and_upload.yml
Earammak Jul 26, 2023
c49847a
Update bld_wheels_and_upload.yml
Earammak Jul 26, 2023
91407b9
Update test_sdist.yml
Earammak Jul 26, 2023
41866eb
Update test_sdist.yml
Earammak Jul 26, 2023
d7a6f3b
Update test_sdist.yml
Earammak Jul 26, 2023
9de9411
Update test_sdist.yml
Earammak Jul 26, 2023
4408924
Update test_sdist.yml
Earammak Jul 26, 2023
7cb91a6
Update test_sdist.yml
Earammak Jul 26, 2023
4516994
Update test_sdist.yml
Earammak Jul 26, 2023
e29369a
Update test_sdist.yml
Earammak Jul 26, 2023
7ea65b9
Update test_sdist.yml
Earammak Jul 26, 2023
9088a6d
Update test_sdist.yml
Earammak Jul 26, 2023
631db39
Update test_sdist.yml
Earammak Jul 26, 2023
fb27e3c
Update test_sdist.yml
Earammak Jul 26, 2023
9a42432
Update test_sdist.yml
Earammak Jul 26, 2023
0a84eb0
Update bld_wheels_and_upload.yml
Earammak Jul 26, 2023
d440896
Update bld_wheels_and_upload.yml
Earammak Jul 26, 2023
dcf4ae5
Update test_sdist.yml
Earammak Jul 26, 2023
1bd7648
Update test_sdist.yml
Earammak Jul 26, 2023
2a841d9
Update test_sdist.yml
Earammak Jul 26, 2023
ccf38a1
Update MANIFEST.in
Earammak Jul 26, 2023
bdd8a37
Update test_sdist.yml
Earammak Jul 26, 2023
8174d13
Update ibm_db.c
Earammak Jul 26, 2023
aab90fd
Update setup.py
Earammak Jul 26, 2023
1ddc92b
Update bld_wheels_and_upload.yml
Earammak Jul 26, 2023
5f329d4
Update bld_wheels_and_upload.yml
Earammak Jul 26, 2023
1e2157f
Update pyproject.toml
Earammak Jul 26, 2023
d0da8de
Update bld_wheels_and_upload.yml
Earammak Jul 26, 2023
ecf9258
Update test_sdist.yml
Earammak Jul 26, 2023
c12cb84
Update MANIFEST.in
Earammak Jul 26, 2023
ce8934d
Update test_sdist.yml
Earammak Jul 26, 2023
05ecc8c
Update test_sdist.yml
Earammak Jul 26, 2023
c8a2f34
Update test_sdist.yml
Earammak Jul 26, 2023
8d39ac7
Update test_sdist.yml
Earammak Jul 26, 2023
90a4e8e
Update test_sdist.yml
Earammak Jul 26, 2023
487b60b
Update test_sdist.yml
Earammak Jul 26, 2023
3f21601
Update test_sdist.yml
Earammak Jul 26, 2023
3d1e6a0
Update test_sdist.yml
Earammak Jul 26, 2023
1fe0e00
Update test_sdist.yml
Earammak Jul 26, 2023
a8cb58e
Update test_sdist.yml
Earammak Jul 26, 2023
59abe5d
Update test_sdist.yml
Earammak Jul 26, 2023
e5f68af
Update test_sdist.yml
Earammak Jul 26, 2023
1c59e19
Update test_sdist.yml
Earammak Jul 26, 2023
0067b10
Update test_sdist.yml
Earammak Jul 26, 2023
baf89fb
Update test_sdist.yml
Earammak Jul 26, 2023
8175eed
Update test_sdist.yml
Earammak Jul 26, 2023
4eba734
Update test_sdist.yml
Earammak Jul 26, 2023
8cdd398
Update test_sdist.yml
Earammak Jul 27, 2023
15cb506
Update test_sdist.yml
Earammak Jul 27, 2023
af91706
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
ca48b58
Update ibm_db.c
Earammak Jul 27, 2023
b6a98f7
Update setup.py
Earammak Jul 27, 2023
d9c5193
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
0516c5d
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
c94f77c
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
80bc8b2
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
f655e84
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
61c7919
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
b166e35
Update ibm_db.c
Earammak Jul 27, 2023
44f2bcc
Update setup.py
Earammak Jul 27, 2023
0e3b225
Update setup.py
Earammak Jul 27, 2023
c7093e3
Update ibm_db.c
Earammak Jul 27, 2023
b0677fc
Update ibm_db.c
Earammak Jul 27, 2023
281760c
Update setup.py
Earammak Jul 27, 2023
53103f2
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
d924a39
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
b8ad911
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
7515533
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
ab80f46
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
1c04129
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
b5920f3
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
f338889
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
fbfacee
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
f7ce5c9
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
fa1de96
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
0735619
Update ibm_db.c
Earammak Jul 27, 2023
52b80a7
Update setup.py
Earammak Jul 27, 2023
861f900
Update bld_wheels_and_upload.yml
Earammak Jul 27, 2023
0dd1944
Update pyproject.toml
Earammak Jul 28, 2023
b0d1fa5
Update ibm_db.c
Earammak Jul 28, 2023
067a077
Update setup.py
Earammak Jul 28, 2023
5b7688d
Update bld_wheels_and_upload.yml
Earammak Jul 28, 2023
6c7f0e0
Update bld_wheels_and_upload.yml
Earammak Jul 28, 2023
2d855b2
Update bld_wheels_and_upload.yml
Earammak Jul 28, 2023
e53d537
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
7a26aea
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
4ac1c6c
Update ibm_db.c
Earammak Jul 31, 2023
9ed4283
Update setup.py
Earammak Jul 31, 2023
7c3f486
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
8295d3f
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
835b447
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
77fe8b0
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
9ab782a
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
aec4f0a
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
18bb683
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
665c855
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
ba57c81
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
c796933
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
a722157
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
f8a4f21
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
9d54a1b
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
a6c32aa
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
40f3636
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
dca5736
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
589ca1f
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
1194334
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
7a41452
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
6a79458
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
7a807ae
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
5bc3adf
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
d9de53f
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
ad7fdf8
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
eebb9c2
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
a2af6a6
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
f038221
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
e67cd32
Update test_sdist.yml
Earammak Jul 31, 2023
a9c8247
Update ibm_db.c
Earammak Jul 31, 2023
4a9003e
Update setup.py
Earammak Jul 31, 2023
f5ebc57
Update test_sdist.yml
Earammak Jul 31, 2023
c91b199
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
5ffc7bf
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
3abf33e
Update bld_wheels_and_upload.yml
Earammak Jul 31, 2023
34c5272
Update ibm_db.c
Earammak Jul 31, 2023
8e7d8af
Update setup.py
Earammak Jul 31, 2023
5799c90
python wheels support code update test version 3.1.4.18
Earammak Aug 7, 2023
3bc215a
update bld_wheels_and_upload.yml
Earammak Aug 7, 2023
7cf844f
update bld_wheels_and_upload.yml
Earammak Aug 7, 2023
d9bad6b
update bld_wheels_and_upload.yml
Earammak Aug 7, 2023
a983043
update bld_wheels_and_upload.yml
Earammak Aug 7, 2023
4e42419
update bld_wheels_and_upload.yml
Earammak Aug 7, 2023
40fecc6
update bld_wheels_and_upload.yml
Earammak Aug 7, 2023
d952ac9
update bld_wheels_and_upload.yml
Earammak Aug 7, 2023
dfbbc2d
update bld_wheels_and_upload.yml
Earammak Aug 7, 2023
0a0ef33
update bld_wheels_and_upload.yml
Earammak Aug 9, 2023
4bff5ab
test on ibm_db version 3.1.4.19
Earammak Aug 9, 2023
b49d5c2
remove ibm_db.py
Earammak Aug 9, 2023
4b43f6a
update bld_wheels_and_upload.yml
Earammak Aug 9, 2023
4b8f2bf
Update bld_wheels_and_upload.yml
Earammak Aug 9, 2023
8590e80
Update bld_wheels_and_upload.yml
Earammak Aug 9, 2023
bd8c44e
Update bld_wheels_and_upload.yml
Earammak Aug 9, 2023
7691e80
Update bld_wheels_and_upload.yml
Earammak Aug 9, 2023
54b346e
Update ibm_db.c
Earammak Aug 9, 2023
ead4757
Update setup.py
Earammak Aug 9, 2023
8fc6324
Update bld_wheels_and_upload.yml
Earammak Aug 9, 2023
5979e26
Update setup.py
Earammak Aug 9, 2023
2272e92
Update bld_wheels_and_upload.yml
Earammak Aug 10, 2023
1107287
Update setup.py
Earammak Aug 10, 2023
8e6f057
Update bld_wheels_and_upload.yml
Earammak Aug 10, 2023
edae002
Update setup.py
Earammak Aug 10, 2023
11b239a
Update bld_wheels_and_upload.yml
Earammak Aug 10, 2023
0dff888
Create test_workflow_dispatch.yml
Earammak Aug 10, 2023
5ce5ac7
Update test_workflow_dispatch.yml
Earammak Aug 10, 2023
97a71ea
Update test_workflow_dispatch.yml
Earammak Aug 10, 2023
4913057
Delete test_workflow_dispatch.yml
Earammak Aug 10, 2023
ac36b3f
Update bld_wheels_and_upload.yml
Earammak Aug 10, 2023
651f309
Update ibm_db.c
Earammak Aug 10, 2023
85f5a4a
Update setup.py
Earammak Aug 10, 2023
f199852
Update bld_wheels_and_upload.yml
Earammak Aug 10, 2023
6cec008
Update bld_wheels_and_upload.yml
Earammak Aug 10, 2023
a1f10a0
Update bld_wheels_and_upload.yml
Earammak Aug 10, 2023
5a38793
Update bld_wheels_and_upload.yml
Earammak Aug 10, 2023
8d665ad
Update setup.py
Earammak Aug 10, 2023
fa546db
Update ibm_db.c
Earammak Aug 10, 2023
f3c406a
Update bld_wheels_and_upload.yml
Earammak Aug 11, 2023
2e4d00d
Update ibm_db_dbi.py
Earammak Aug 11, 2023
fbb1d20
Update bld_wheels_and_upload.yml
Earammak Aug 11, 2023
10a9e7f
Create demo.yml
Earammak Aug 14, 2023
8dd466b
Update demo.yml
Earammak Aug 14, 2023
99efcc5
Delete demo.yml
Earammak Aug 14, 2023
a96ba74
Update bld_wheels_and_upload.yml
Earammak Aug 16, 2023
3581faf
Update bld_wheels_and_upload.yml
Earammak Aug 16, 2023
c475ed3
Update bld_wheels_and_upload.yml
Earammak Aug 16, 2023
7f7ddcb
Update install.md
Earammak Aug 17, 2023
d984306
Merge branch 'wheelSupport' into test_wheel
bimalkjha Aug 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 59 additions & 35 deletions .github/workflows/bld_wheels_and_upload.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
name: Build and upload to PyPI

# Build on every branch push, tag push, and pull request change:
# Build on every workflow_dispatch, branch push, tag push, and pull request change
on:
#workflow_dispatch:
workflow_dispatch:
pull_request:
push:
branches:
- WheelSupport
- master
bimalkjha marked this conversation as resolved.
Show resolved Hide resolved
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build_wheels_windows_64:
name: Build wheels on ${{ matrix.os }} 64-bit
name: Build wheels on ${{ matrix.os }} 64-bit
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.12.2
env:
CIBW_SKIP: "*-win32"
CIBW_SKIP: "*pp3*"
CIBW_BUILD: "*-win_amd64"
CIBW_SKIP: "cp36-* pp*"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
Expand All @@ -33,9 +38,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.12.2
env:
CIBW_BUILD: "*-win32"
CIBW_SKIP: "cp36-* pp*"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
Expand All @@ -45,14 +51,13 @@ jobs:
strategy:
matrix:
os: [macos-latest,ubuntu-latest]
#os: [windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.12.2
env:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_SKIP: "*-musllinux_* pp*"
CIBW_SKIP: "cp36-* *-musllinux_* pp* *-*linux_{aarch64,ppc64le}"
CIBW_REPAIR_WHEEL_COMMAND_LINUX:
auditwheel repair
--exclude libdb2.so.1
Expand All @@ -75,40 +80,59 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip build
run: python -m pip install --upgrade pip build
- name: Build sdist
run: python -m build --sdist --no-isolation
- name: Package version
id: version
run: |
cd dist
pip install ibm_db*
echo "VERSION=$(python -c 'import ibm_db; print(ibm_db.__version__)')" >> $GITHUB_OUTPUT
- name: Build source distribution
run: |
PACKAGE="ibm_db-$VERSION"
cd dist
tar -xzf $PACKAGE.tar.gz
rm -rf $PACKAGE/clidriver*
rm -rf $PACKAGE.tar.gz
tar -czf $PACKAGE.tar.gz $PACKAGE
rm -rf $PACKAGE
env:
VERSION: ${{ steps.version.outputs.VERSION}}
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
path: ./dist/*.tar.gz
path: |
./dist/*.tar.gz
upload_pypi:
needs: [build_sdist,build_wheels_macos_linux, build_wheels_windows_64,build_wheels_windows_32]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
#upload to PyPI on every tag starting with 'v'
#if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: Upload to testpypi
path: dist
- uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: ${{secrets.TESTPYPI_USER}}
password: ${{secrets.TESTPYPI_PASSWORD}}
repository_url: https://test.pypi.org/legacy/
skip_existing: true

- name: Upload to PYPI
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{secrets.TESTPYPI_USER}}
password: ${{secrets.TESTPYPI_PASSWORD}}
- uses: actions/download-artifact@v3
with:
# unpacks default artifact into dist/
#if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
path: dist
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{secrets.TESTPYPI_USER}}
password: ${{ secrets.TESTPYPI_PASSWORD}}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{secrets.PYPI_USER}}
password: ${{ secrets.PYPI_PASSWORD}}

19 changes: 19 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
2023-08-08, Version 3.1.5
=========================

* Fix for issue #857 (Earammak)

* Support for Null value for an array (Earammak)

* Fix for issue #838 (Earammak)

* Code change #837 and readme update (Earammak)

* Optimize _checkGcc in setup.py (pschoen-itsc)

* Initial wheel support code changes (Earammak)

* Fix for issues #823 and #828 (Earammak)

* Readme update for latest python #813 and Readme update #814 (Earammak)

2022-11-24, Version 3.1.4
=========================

Expand Down
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Provides Python interface for connecting to IBM Db2 for LUW, IBM Informix and IB

<a name="prereq"></a>
## Pre-requisites
Install Python 2.7 or Python 3 <= 3.11. The minimum python version supported by driver is python 2.7 and the latest version supported is python 3.11 except version 3.3 as it has reached end-of-life.
Install Python 3.7 <= 3.11. The minimum python version supported by driver is python 3.7 and the latest version supported is python 3.11.

> **For MacOS M1 / Apple Silicon chip system**
>
Expand All @@ -62,18 +62,6 @@ Install Python 2.7 or Python 3 <= 3.11. The minimum python version supported by
> ```
> 2. When regular installation does not work, it might help to preface your installation command with `ARCHFLAGS="-arch x86_64"`. Be sure to have uninstalled `ibm_db` before installing again, otherwise this fix won't help.

The pre-built 32-bit and 64-bit binaries on windows are available for the following versions:
```
python 2.7
python 3.4
python 3.5
python 3.6
python 3.7
python 3.8
python 3.9
python 3.10
python 3.11
```

You might need zlib, openssl, pip installations if not already available in your setup.

Expand Down Expand Up @@ -109,7 +97,8 @@ If you have to use your own URL for clidriver please set environment variable
IBM_DB_INSTALLER_URL
```

If you are using python 3.8 or 3.9 on windows and building the source manually, you will need to set dll path of dependent library of clidriver before importing the module as:
Note: For windows after installing ibm_db, we need to make sure to set dll path of dependent library of clidriver before importing the module as:

```
import os
os.add_dll_directory('path to clidriver installation until bin')
Expand Down
4 changes: 3 additions & 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.12"
#define MODULE_RELEASE "3.1.4"

#include <Python.h>
#include <datetime.h>
Expand Down Expand Up @@ -12405,6 +12405,7 @@ INIT_ibm_db(void) {
PyModule_AddIntConstant(m, "SQL_ATTR_PARAM_BIND_TYPE", SQL_ATTR_PARAM_BIND_TYPE);
PyModule_AddIntConstant(m, "SQL_PARAM_BIND_BY_COLUMN", SQL_PARAM_BIND_BY_COLUMN);
PyModule_AddIntConstant(m, "SQL_ATTR_XML_DECLARATION", SQL_ATTR_XML_DECLARATION);
#ifndef __MVS__
PyModule_AddIntConstant(m, "SQL_ATTR_CLIENT_APPLCOMPAT", SQL_ATTR_CLIENT_APPLCOMPAT);
PyModule_AddIntConstant(m, "SQL_ATTR_CURRENT_PACKAGE_SET", SQL_ATTR_CURRENT_PACKAGE_SET);
PyModule_AddIntConstant(m, "SQL_ATTR_ACCESS_MODE", SQL_ATTR_ACCESS_MODE);
Expand Down Expand Up @@ -12491,6 +12492,7 @@ INIT_ibm_db(void) {
PyModule_AddIntConstant(m, "SQL_ATTR_IGNORE_SERVER_LIST",SQL_ATTR_IGNORE_SERVER_LIST);
PyModule_AddIntConstant(m, "SQL_ATTR_DECFLOAT_ROUNDING_MODE", SQL_ATTR_DECFLOAT_ROUNDING_MODE);
PyModule_AddIntConstant(m, "SQL_ATTR_PING_DB", SQL_ATTR_PING_DB);
#endif
PyModule_AddIntConstant(m, " SQL_ATTR_TXN_ISOLATION", SQL_ATTR_TXN_ISOLATION);
return MOD_RETURN_VAL(m);
}
4 changes: 2 additions & 2 deletions ibm_db_dbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ def _set_cursor_helper(self):
self.messages.append(_get_exception(inst))
raise self.messages[len(self.messages) - 1]
if not num_columns:
return True
return False
self._result_set_produced = True

return True
Expand Down Expand Up @@ -1406,8 +1406,8 @@ def execute(self, operation, parameters=None):
self.__description = None
self._all_stmt_handlers = []
self._prepare_helper(operation)
self._set_cursor_helper()
self._execute_helper(parameters)
self._set_cursor_helper()
return self._set_rowcount()

def executemany(self, operation, seq_parameters):
Expand Down
26 changes: 26 additions & 0 deletions install.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,32 @@ Below steps were followed for the same:

- NOTE(Default behaviour):
- IBM_DB_HOME is the HLQ for your Db2 libraries(SDSNMACS, SDSNC.H)

- For compatibility with python ibm_db the following parameters must be set in the ODBC ini file
CURRENTAPPENSCH=ASCII or CURRENTAPPENSCH=UNICODE (CURRENTAPPENSCH=EBCDIC is not supported)
MULTICONTEXT=2
FLOAT=IEEE
e.g.
```; This is a comment line...
; Example COMMON stanza
[COMMON]
MVSDEFAULTSSID=VC1A
CONNECTTYPE=1
MULTICONTEXT=2
CURRENTAPPENSCH=ASCII
FLOAT=IEEE
; Example SUBSYSTEM stanza for VC1A subsystem
[VC1A]
MVSATTACHTYPE=RRSAF
PLANNAME=DSNACLI
; Example DATA SOURCE stanza for STLEC1 data source
[STLEC1]
AUTOCOMMIT=1
CURSORHOLD=1
```
- The ODBC ini file must be encoded in IBM-1047 and cannot have the text tag on, e.g.,
chtag -b $DSNAOINI or chtag -m -c IBM-1047 $DSNAOINI.
Use chtag -p $DSNAOINI to verify that the file have T=off (text tag off) and is either tagged binary or mixed IBM-1047.

e.g.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel.macos]
repair-wheel-command = "delocate-wheel --ignore-missing-dependencies --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
repair-wheel-command = "delocate-wheel --ignore-missing-dependencies --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
11 changes: 3 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from setuptools.command.build_ext import build_ext
from setuptools.command.install import install

PACKAGE = 'ibm_db_wheel'
VERSION = '0.0.12'
PACKAGE = 'ibm_db'
VERSION = '3.1.4'
LICENSE = 'Apache License 2.0'
readme = os.path.join(os.path.dirname(__file__),'README.md')

Expand Down Expand Up @@ -461,7 +461,7 @@ def print_exception( e, url):
(get_python_lib(), ['./LICENSE']),
(get_python_lib(), ['./config.py.sample'])]

modules = ['ibm_db','ibm_db_dbi', 'testfunctions', 'ibmdb_tests']
modules = ['ibm_db_dbi', 'testfunctions', 'ibmdb_tests']

if 'zos' == sys.platform:
ext_modules = _ext_modules(os.path.join(os.getcwd(), include_dir), library, ibm_db_lib, ibm_db_lib_runtime)
Expand Down Expand Up @@ -500,11 +500,6 @@ def print_exception( e, url):
'Operating System :: Microsoft :: Windows :: Windows 10',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand Down