Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
1b427a8
Drop support for 2.7
sarahmonod Nov 20, 2023
e100fa1
Bump minor version
sarahmonod Nov 20, 2023
dae3858
Remove `six` compatibility library
sarahmonod Nov 20, 2023
5caf25d
Remove unnecessary try/except
sarahmonod Nov 20, 2023
5a0e834
Reword some of the docs to be focused on Python 3
sarahmonod Nov 20, 2023
b2a0b57
Merge pull request #51 from gusmonod/drop-2.7
Nov 20, 2023
7b81430
Drop support for 3.6
sarahmonod Nov 21, 2023
467128c
Allow parameter binding Arrays and Tuples
Nov 9, 2023
bd01ee0
Fix a potential use-after-free bug
godlygeek Nov 28, 2023
a0b6893
Prepare for release of `1.6.1`
sarahmonod Nov 28, 2023
456576e
Fix typo
Dec 1, 2023
448e0c9
Update type annotations to allow binding arrays
godlygeek Jan 23, 2024
060aea9
tests: Fix a test that fails on leap days
godlygeek Mar 1, 2024
7822ace
ci: Explicitly remove Comdb2 build artifacts
godlygeek Mar 26, 2024
4df6e82
ci: Build docs, and publish them for releases
godlygeek Mar 25, 2024
b3ad672
Avoid a `*` import
godlygeek Mar 26, 2024
cff4fa0
Merge type stubs into our Python code
godlygeek Mar 26, 2024
ec7b345
Format with `ruff`
godlygeek Mar 26, 2024
626a218
Use types from `collections.abc` for annotations
godlygeek Apr 10, 2024
59bb706
docs: Replace auto-generated NamedTuple docstrings
godlygeek Apr 10, 2024
42f37d0
Begin building as C++ rather than C99
godlygeek Apr 30, 2024
2a901be
Let users request specific result set column types
godlygeek Mar 27, 2024
d9cf62f
ci: Start building and testing for Python 3.13
sarahmonod Jul 1, 2024
0c32881
ci: Fix python matrix access
sarahmonod Jul 1, 2024
aae3395
Declare `fetchmany` and `fetchall` to return lists
Aug 3, 2024
ea25644
Prepare for 1.7.0 release
godlygeek Sep 4, 2024
92f90f1
docs: Document array binding
godlygeek Sep 4, 2024
3b5a2c0
Update `upload-artifact` and `download-artifact`
godlygeek Sep 5, 2024
5a1ff82
Enable dependabot for upgrading GitHub actions
godlygeek Sep 5, 2024
1b1e593
Bump actions/setup-python from 4 to 5
dependabot[bot] Sep 5, 2024
f1a68c5
Handle C++ exceptions thrown within `libcdb2api`
sarahmonod Sep 5, 2024
a4c0aa9
Prepare for 1.7.1 release
sarahmonod Sep 5, 2024
ef406ec
Export types for column and parameter values
jsurany-bloomberg Sep 23, 2024
518dd75
Prepare for 1.7.2 release
godlygeek Oct 1, 2024
cbb32dc
ci: Share built Comdb2 across jobs
godlygeek Jan 14, 2025
637c004
Drop support for Python 3.7
godlygeek Jan 15, 2025
d36da37
ci: Drop "-dev" from requested Python 3.13 version
godlygeek Jan 15, 2025
f87217b
Add `as_datetime` method to `DatetimeUs`
gaborbernat Jan 14, 2025
c4bd8c8
docs: Remove an unused setting from docs/conf.py
godlygeek Feb 28, 2025
5c2e155
Add support for binding parameters positionally
chands10 Dec 18, 2024
1a792fc
Release version 1.8.0
godlygeek Mar 24, 2025
f3a4419
tests: Ensure `dbapi2.Error` sets `__cause__`
thorpe-dev Jul 21, 2025
78acb39
Fix annotation for `dbapi2.Cursor.description`
jsurany-bloomberg Apr 1, 2025
2ef8f03
Bump actions/checkout from 4 to 5
dependabot[bot] Aug 12, 2025
eca7ccc
Bump actions/download-artifact from 4 to 5
dependabot[bot] Aug 12, 2025
b1a8028
Add Python 3.14 support
ivonastojanovic Aug 13, 2025
69fa93d
Fix test compatibility with Python 3.14 error message changes
ivonastojanovic Aug 13, 2025
5411356
tests: Drop dependency on `pytz`
godlygeek Aug 14, 2025
70fc9c7
docs: Clarify that we treat naive datetimes as UTC
godlygeek Aug 14, 2025
d6cdd28
Fix binding of ambiguous datetimes with `fold=1`
godlygeek Aug 14, 2025
3b96cff
Stop using pytz from Python 3.14 onwards
godlygeek Aug 14, 2025
5f8dfd8
Release version 1.9.0
sarahmonod Aug 14, 2025
ea7fe1a
ci: Install `tcl-dev` when building Comdb2
sarahmonod Sep 2, 2025
97f0be7
Bump actions/download-artifact from 5 to 6
dependabot[bot] Oct 27, 2025
cf2e6ec
Bump actions/upload-artifact from 4 to 5
dependabot[bot] Oct 27, 2025
10c73f2
Bump actions/setup-python from 5 to 6
dependabot[bot] Sep 4, 2025
96ce6ce
Mark cursor drain test as such
sarahmonod Nov 6, 2025
7803b60
Release 1.9.1
sarahmonod Nov 6, 2025
6a86084
Bump actions/download-artifact from 6 to 7
dependabot[bot] Mar 31, 2026
2be1071
Bump actions/upload-artifact from 5 to 6
dependabot[bot] Mar 31, 2026
454d921
Bump actions/checkout from 5 to 6
dependabot[bot] Mar 31, 2026
ccc2555
Allow manual trigger of tests
sarahmonod Jun 10, 2026
c9f6431
Add `apt-get update` before installation of pkgs
sarahmonod Jun 10, 2026
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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
70 changes: 33 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Tests

on:
workflow_dispatch:
push:
pull_request:
release:
Expand All @@ -24,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout bloomberg-comdb2 repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: bloomberg/comdb2
path: bloomberg-comdb2
Expand All @@ -46,6 +47,7 @@ jobs:
ncurses-dev
protobuf-c-compiler
tcl
tcl-dev
uuid-dev
zlib1g-dev
'
Expand All @@ -55,13 +57,14 @@ jobs:
mkdir bloomberg-comdb2/build &&
cd bloomberg-comdb2/build &&
cmake .. &&
make
make &&
sudo make install
)
'
- name: Archive bloomberg-comdb2 repo with build artifacts
run: 'tar czvf bloomberg-comdb2.tar.gz bloomberg-comdb2/'
- name: Upload bloomberg-comdb2 repo with build artifacts
uses: actions/upload-artifact@v3
run: 'tar -C /opt -czvf bloomberg-comdb2.tar.gz bb'
- name: Upload built bloomberg-comdb2
uses: actions/upload-artifact@v7
with:
name: bloomberg-comdb2
path: ./bloomberg-comdb2.tar.gz
Expand All @@ -72,36 +75,32 @@ jobs:
needs: [build_bloomberg_comdb2]
steps:
- name: Download bloomberg-comdb2 with build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v8
with:
name: bloomberg-comdb2
path: .
- name: Install bloomberg-comdb2
run: '
sudo apt-get install -qy
libevent-dev
liblz4-dev
libprotobuf-c-dev
libsqlite3-dev
libssl-dev
libunwind-dev
zlib1g-dev &&
tar xvf bloomberg-comdb2.tar.gz &&
(cd bloomberg-comdb2/build && sudo make install)
sudo apt-get update &&
sudo apt-get install -qy libprotobuf-c-dev libssl-dev libunwind-dev &&
sudo tar -C /opt -xzf bloomberg-comdb2.tar.gz &&
find /opt/bb &&
rm bloomberg-comdb2.tar.gz
'
- uses: actions/checkout@v4
- name: 'Set up Python 3.7'
uses: actions/setup-python@v4 # note that this step overwrites the PKG_CONFIG_PATH variable
- uses: actions/checkout@v6
- name: 'Set up Python 3.8'
uses: actions/setup-python@v6 # note that this step overwrites the PKG_CONFIG_PATH variable
with:
python-version: '3.7' # the lowest version that we support in CI
python-version: '3.8' # the lowest version that we support in CI
- name: Build sdist
run: '
sudo apt-get update &&
sudo apt-get install -qy pkg-config &&
PKG_CONFIG_PATH=/opt/bb/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
pipx run build --sdist
'
- name: Upload sdist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v7
with:
name: python-comdb2-sdist
path: dist/*.tar.gz
Expand All @@ -113,30 +112,26 @@ jobs:
strategy:
matrix:
python-version:
- '3.14-dev'
- '3.13'
- '3.12'
- '3.11'
- '3.10'
- '3.9'
- '3.8'
- '3.7'
steps:
- name: Download comdb2 repo with build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v8
with:
name: bloomberg-comdb2
path: .
- name: Install bloomberg-comdb2
run: '
sudo apt-get install -qy
libevent-dev
liblz4-dev
libprotobuf-c-dev
libsqlite3-dev
libssl-dev
libunwind-dev
zlib1g-dev &&
tar xvf bloomberg-comdb2.tar.gz &&
(cd bloomberg-comdb2/build && sudo make install)
sudo apt-get update &&
sudo apt-get install -qy libprotobuf-c-dev libssl-dev libunwind-dev &&
sudo tar -C /opt -xzf bloomberg-comdb2.tar.gz &&
find /opt/bb &&
rm bloomberg-comdb2.tar.gz
'
- name: Start local comdb2 instance
run: '
Expand All @@ -159,7 +154,7 @@ jobs:
done
'
- name: Download python-comdb2 sdist
uses: actions/download-artifact@v3
uses: actions/download-artifact@v8
with:
name: python-comdb2-sdist
path: dist
Expand All @@ -177,12 +172,13 @@ jobs:
echo "Creating $table_name from $table_file"
/opt/bb/bin/cdb2sql "$COMDB2_DBNAME" local "create table $table_name { $(cat $table_file) }"
done
- name: Set up Python ${{matrix.python_version}}
uses: actions/setup-python@v4 # note that this step overwrites the PKG_CONFIG_PATH variable
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v6 # note that this step overwrites the PKG_CONFIG_PATH variable
with:
python-version: "${{matrix.python_version}}"
python-version: "${{matrix.python-version}}"
- name: Install python-comdb2 from the sdist
run: '
sudo apt-get update &&
sudo apt-get install -qy pkg-config &&
python -m pip install --upgrade pip &&
PKG_CONFIG_PATH=/opt/bb/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Docs

on:
push:
pull_request:
release:
types:
- published
schedule:
# At 12:00 on every day-of-month
- cron: "0 12 */1 * *"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install Python dependencies
run: python3 -m pip install sphinx sphinx_rtd_theme
- name: Build docs
run: python -m sphinx docs html -a -E -n -v -W --keep-going
- name: Publish docs to GitHub Pages
if: github.event_name == 'release' && github.event.action == 'published'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: html
single-commit: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/build
/comdb2.egg-info/
/dist
/python_comdb2.egg-info
*.pyc
Expand Down
6 changes: 4 additions & 2 deletions comdb2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""This package provides Python interfaces to Comdb2 databases.

Two different Python submodules are provided for interacting with Comdb2
databases. Both submodules work from Python 2.7+ and from Python 3.5+.
databases.

`comdb2.dbapi2` provides an interface that conforms to `the Python Database API
Specification v2.0 <https://www.python.org/dev/peps/pep-0249/>`_. If you're
Expand All @@ -28,4 +28,6 @@
connections, this module may be simpler to get started with.
"""

from ._about import *
from ._about import __version__

__all__ = ["__version__"]
4 changes: 2 additions & 2 deletions comdb2/_about.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__all__ = ['__version__']
__version__ = "1.4.1"
__all__ = ["__version__"]
__version__ = "1.9.1"
Loading