Skip to content

Commit 91a4ac1

Browse files
committed
packaging: require SQLAlchemy >= 1.3.16
SQLite AUTOCOMMIT isolation level support was added in SA 1.3.16. Versions before that reject it with ArgumentError, breaking SQLite connectivity. Enforce the minimum in all packaging metadata.
1 parent 1ce38b5 commit 91a4ac1

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

packaging/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Homepage: https://github.com/OpenSIPS/opensips-cli
99
Package: opensips-cli
1010
Architecture: all
1111
Multi-Arch: foreign
12-
Depends: python3, ${misc:Depends}, ${python3:Depends}, python3-sqlalchemy, python3-openssl, python3-pymysql, python3-opensips
12+
Depends: python3, ${misc:Depends}, ${python3:Depends}, python3-sqlalchemy (>= 1.3.16), python3-openssl, python3-pymysql, python3-opensips
1313
Description: Interactive command-line tool for OpenSIPS 3.0+
1414
This package contains the OpenSIPS CLI tool, an interactive command line tool
1515
that can be used to control and monitor OpenSIPS 3.0+ servers.

packaging/redhat_fedora/opensips-cli.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ AutoReqProv: no
1818

1919
Requires: python3
2020
%if 0%{?rhel} == 7
21-
Requires: python36-sqlalchemy
21+
Requires: python36-sqlalchemy >= 1.3.16
2222
Requires: python36-PyMySQL
2323
Requires: python36-pyOpenSSL
2424
%else
25-
Requires: python3-sqlalchemy
25+
Requires: python3-sqlalchemy >= 1.3.16
2626
Requires: python3-PyMySQL
2727
Requires: python3-pyOpenSSL
2828
%endif

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ maintainers = [
1818
dependencies = [
1919
"opensips",
2020
"PyMySQL",
21-
"sqlalchemy>=1.3.3",
21+
"sqlalchemy>=1.3.16",
2222
]
2323
classifiers = [
2424
"Programming Language :: Python :: 3",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
install_requires=[
4848
"opensips",
4949
"PyMySQL",
50-
"sqlalchemy>=1.3.3",
50+
"sqlalchemy>=1.3.16",
5151
],
5252
classifiers=[
5353
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)