Skip to content

Commit 65368c8

Browse files
Build mysql-connector-python from source (#50)
mysql-connector-python fixed builds from source as of 9.3.0 (https://bugs.mysql.com/bug.php?id=113396) mysql-connector-python 9.3.0+ does not support Python 3.8 Since no binary packages are available for s390x, building from source will be needed to build a s390x charm
1 parent 6dc4d48 commit 65368c8

File tree

3 files changed

+39
-72
lines changed

3 files changed

+39
-72
lines changed

charmcraft.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ parts:
5252
after:
5353
- poetry-deps
5454
poetry-export-extra-args: ['--only', 'main,charm-libs']
55-
poetry-pip-extra-args: ['--only-binary', 'mysql-connector-python']
5655
override-build: |
5756
craftctl default
5857
# Include requirements.txt in *.charm artifact for easier debugging

poetry.lock

Lines changed: 37 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ package-mode = false
66
requires-poetry = ">=2.0.0"
77

88
[tool.poetry.dependencies]
9-
python = ">=3.8"
9+
python = ">=3.10"
1010
ops = "^2.0.0"
1111
tenacity = "^8.1.0"
12-
mysql-connector-python = "~8.0.33"
12+
mysql-connector-python = "^9.4.0"
1313

1414
[tool.poetry.group.charm-libs.dependencies]
1515
# data_platform_libs/v0/data_interfaces.py

0 commit comments

Comments
 (0)