Skip to content

Commit 7c44afd

Browse files
committed
Release 0.11.0
1 parent ff06b6b commit 7c44afd

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

Diff for: CONTRIBUTING.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Contributor Guidance
22

3+
## Development
4+
5+
Note: this project is explicitly meant to support Python versions as old
6+
as 3.8. This (unfortunately) means it requires Poetry 1.8.x to install
7+
and build correctly.
8+
9+
```
10+
$ brew install pipx
11+
$ pipx ensurepath
12+
$ pipx install poetry==1.8.5
13+
$ poetry update
14+
```
15+
316
## Publish package to PyPI
417

518
When we are ready to release a new version `vx.y.z`, one of the maintainers should:

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "wherobots-python-dbapi"
3-
version = "0.10.1"
3+
version = "0.11.0"
44
description = "Python DB-API driver for Wherobots DB"
55
authors = ["Maxime Petazzoni <[email protected]>"]
66
license = "Apache 2.0"

Diff for: wherobots/db/cursor.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def execute(self, operation: str, parameters: Dict[str, Any] = None) -> None:
8181
self.__rowcount = -1
8282
self.__description = None
8383

84-
sql = operation.format(**(parameters or {}))
84+
sql = (
85+
operation.replace("{", "{{").replace("}", "}}").format(**(parameters or {}))
86+
)
8587
self.__current_execution_id = self.__exec_fn(sql, self.__on_execution_result)
8688

8789
def executemany(

0 commit comments

Comments
 (0)