Skip to content

Commit 9533de3

Browse files
committed
Support Python 3.13 and minor clean-up
1 parent c68e3c9 commit 9533de3

20 files changed

+90
-52
lines changed

.github/workflows/publish_on_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: "3.11"
18+
python-version: "3.12"
1919

2020
- name: Install build tool
2121
run: python -m pip install build --user

.github/workflows/test_with_tox.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
10+
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1111

1212
steps:
1313
- uses: actions/checkout@v4
@@ -21,5 +21,5 @@ jobs:
2121

2222
- run: tox -e py
2323

24-
- if: matrix.python == 3.11
24+
- if: matrix.python == 3.12
2525
run: TOXENV=ruff,manifest,docs,spell tox

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 Christoph Zwerschke
3+
Copyright (c) 2025 Christoph Zwerschke
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ to a database that can be used in all kinds of multi-threaded environments.
77
The suite supports DB-API 2 compliant database interfaces
88
and the classic PyGreSQL interface.
99

10-
The current version 3.1.0 of DBUtils supports Python versions 3.7 to 3.12.
10+
The current version 3.1.1 of DBUtils supports Python versions 3.7 to 3.13.
1111

1212
**Please have a look at the [changelog](https://webwareforpython.github.io/DBUtils/changelog.html), because there were some breaking changes in version 2.0.**
1313

dbutils/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
"""The DBUtils main package."""
22

3-
__all__ = [
4-
'__version__',
5-
'simple_pooled_pg', 'steady_pg', 'pooled_pg', 'persistent_pg',
6-
'simple_pooled_db', 'steady_db', 'pooled_db', 'persistent_db']
3+
__all__ = ["__version__"]
74

8-
__version__ = '3.1.0'
5+
__version__ = "3.1.1"

dbutils/persistent_db.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
# Fall back to the default version of threading.local.
124124
from threading import local
125125

126+
__all__ = ['PersistentDB', 'PersistentDBError', 'NotSupportedError']
127+
126128

127129
class PersistentDBError(Exception):
128130
"""General PersistentDB error."""

dbutils/persistent_pg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@
113113
# Fall back to the default version of threading.local.
114114
from threading import local
115115

116+
__all__ = ['PersistentPg']
117+
116118

117119
class PersistentPg:
118120
"""Generator for persistent classic PyGreSQL connections.

dbutils/pooled_db.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@
153153
from . import __version__
154154
from .steady_db import connect
155155

156+
__all__ = [
157+
'PooledDB', 'PooledDedicatedDBConnection',
158+
'SharedDBConnection', 'PooledSharedDBConnection',
159+
'PooledDBError', 'InvalidConnectionError',
160+
'NotSupportedError', 'TooManyConnectionsError',
161+
]
162+
156163

157164
class PooledDBError(Exception):
158165
"""General PooledDB error."""

dbutils/pooled_pg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@
118118
from . import __version__
119119
from .steady_pg import SteadyPgConnection
120120

121+
__all__ = [
122+
'PooledPg', 'PooledPgConnection',
123+
'PooledPgError', 'InvalidConnectionError', 'TooManyConnectionsError',
124+
'RESET_ALWAYS_ROLLBACK', 'RESET_COMPLETELY',
125+
]
126+
121127
# constants for "reset" parameter
122128
RESET_ALWAYS_ROLLBACK = 1
123129
RESET_COMPLETELY = 2

dbutils/simple_pooled_db.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474

7575
from . import __version__
7676

77+
__all__ = [
78+
'PooledDB', 'PooledDBConnection', 'PooledDBError', 'NotSupportedError',
79+
]
80+
7781

7882
class PooledDBError(Exception):
7983
"""General PooledDB error."""

0 commit comments

Comments
 (0)