Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions kubernetes/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

95 changes: 51 additions & 44 deletions kubernetes/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,57 @@
# Copyright 2022 Canonical Ltd.
# See LICENSE file for licensing details.

[project]
name = "mysql-router-k8s-operator"
version = "0.0.1"
dynamic = ["dependencies", "requires-python"]

[dependency-groups]
charm-libs = [
# data_platform_libs/v0/data_interfaces.py
"ops>=2.0.0",
# grafana_k8s/grafana_dashboard.py
"cosl>=0.0.50",
# tempo_coordinator_k8s/v0/charm_tracing.py
"opentelemetry-exporter-otlp-proto-http==1.21.0",
# tempo_coordinator_k8s/v0/tracing.py
"pydantic",
# tls_certificates_interface/v1/tls_certificates.py
"cryptography",
"jsonschema",
]
format = [
"ruff~=0.12.11",
]
lint = [
"ruff~=0.12.11",
"codespell~=2.4",
]
unit = [
"pytest~=8.4",
"pytest-xdist~=3.8",
"pytest-forked~=1.6", # Workaround to deal with memory leaks in scenario tests
"pytest-cov~=6.2",
"ops-scenario==6.0.3", # 6.0.4 requires ops >= 2.12
"ops~=2.9",
]
integration = [
"pytest~=8.4",
"pytest-operator~=0.43.1",
"requests~=2.32",
"juju~=3.6",
"mysql-connector-python~=9.5",
"pyyaml~=6.0",
"tenacity~=9.1",
"allure-pytest~=2.15",
"allure-pytest-default-results~=0.1.3",
"tomli~=2.2",
"tomli-w~=1.2",
]
build-refresh-version = [
"charm-refresh-build-version~=0.4.0",
]

[tool.poetry]
package-mode = false
requires-poetry = ">=2.0.0"
Expand All @@ -14,59 +65,15 @@ lightkube = "^0.17.2"
tenacity = "^9.1.2"
charm-refresh = "^3.1.0.2"

[tool.poetry.group.charm-libs.dependencies]
# data_platform_libs/v0/data_interfaces.py
ops = ">=2.0.0"
# grafana_k8s/grafana_dashboard.py
cosl = ">= 0.0.50"
# tempo_coordinator_k8s/v0/charm_tracing.py
opentelemetry-exporter-otlp-proto-http = "1.21.0"
# tempo_coordinator_k8s/v0/tracing.py
pydantic = "*"
# tls_certificates_interface/v1/tls_certificates.py
cryptography = "*"
jsonschema = "*"

[tool.poetry.group.format]
optional = true

[tool.poetry.group.format.dependencies]
ruff = "^0.12.11"

[tool.poetry.group.lint]
optional = true

[tool.poetry.group.lint.dependencies]
ruff = "^0.12.11"
codespell = "^2.4.1"

[tool.poetry.group.unit.dependencies]
pytest = "^8.4.1"
pytest-xdist = "^3.8.0"
pytest-forked = "^1.6.0" # Workaround to deal with memory leaks in scenario tests
pytest-cov = "^6.2.1"
ops-scenario = "^6.0.3, <6.0.4" # 6.0.4 requires ops >= 2.12
ops = "^2.9.0"

[tool.poetry.group.integration.dependencies]
pytest = "^8.4.1"
pytest-operator = "^0.43.1"
requests = "^2.32.5"
juju = "^3.6.0.0"
mysql-connector-python = "^9.5.0"
pyyaml = "^6.0.2"
tenacity = "^9.1.2"
allure-pytest = "^2.15.0"
allure-pytest-default-results = "^0.1.3"
tomli = "^2.2.1"
tomli-w = "^1.2.0"

[tool.poetry.group.build-refresh-version]
optional = true

[tool.poetry.group.build-refresh-version.dependencies]
charm-refresh-build-version = "^0.4.0"

[tool.coverage.run]
branch = true

Expand Down
4 changes: 2 additions & 2 deletions machines/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 49 additions & 42 deletions machines/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,57 @@
# Copyright 2022 Canonical Ltd.
# See LICENSE file for licensing details.

[project]
name = "mysql-router-operator"
version = "0.0.1"
dynamic = ["dependencies", "requires-python"]

[dependency-groups]
charm-libs = [
# data_platform_libs/v0/data_interfaces.py
"ops>=2.0.0",
# tls_certificates_interface/v2/tls_certificates.py
# tls_certificates lib v2 uses a feature only available in cryptography >=42.0.5
"cryptography>=42.0.5",
"jsonschema",
# grafana_agent/v0/cos_agent.py
"pydantic",
"cosl>=0.0.50",
# tempo_coordinator_k8s/v0/charm_tracing.py
"opentelemetry-exporter-otlp-proto-http==1.21.0",
]
format = [
"ruff~=0.12.11",
]
lint = [
"ruff~=0.12.11",
"codespell~=2.4",
]
unit = [
"pytest~=8.4",
"pytest-xdist~=3.8",
"pytest-cov~=6.2",
"ops-scenario==6.0.3", # 6.0.4 requires ops >= 2.12
]
integration = [
"pytest~=8.4",
"pytest-operator~=0.43.1",
"requests~=2.32",
"juju~=3.6",
"mysql-connector-python~=8.0.33",
"tenacity~=9.1",
"ops~=2.9",
"allure-pytest-default-results~=0.1.3",
"tomli~=2.2",
"tomli-w~=1.2",
]
build-refresh-version = [
"charm-refresh-build-version~=0.4.0",
]

[tool.poetry]
package-mode = false
requires-poetry = ">=2.0.0"
requires-poetry = ">=2.2.0"

[tool.poetry.dependencies]
python = "^3.10"
Expand All @@ -13,56 +61,15 @@ ops = "^2.9.0, <2.10"
tenacity = "^9.1.2"
charm-refresh = "^3.1.0.2"

[tool.poetry.group.charm-libs.dependencies]
# data_platform_libs/v0/data_interfaces.py
ops = ">=2.0.0"
# tls_certificates_interface/v2/tls_certificates.py
# tls_certificates lib v2 uses a feature only available in cryptography >=42.0.5
cryptography = ">=42.0.5"
jsonschema = "*"
# grafana_agent/v0/cos_agent.py
pydantic = "*"
cosl = ">=0.0.50"
# tempo_coordinator_k8s/v0/charm_tracing.py
opentelemetry-exporter-otlp-proto-http = "1.21.0"

[tool.poetry.group.format]
optional = true

[tool.poetry.group.format.dependencies]
ruff = "^0.12.11"

[tool.poetry.group.lint]
optional = true

[tool.poetry.group.lint.dependencies]
ruff = "^0.12.11"
codespell = "^2.4.1"

[tool.poetry.group.unit.dependencies]
pytest = "^8.4.1"
pytest-xdist = "^3.8.0"
pytest-cov = "^6.2.1"
ops-scenario = "^6.0.3, <6.0.4" # 6.0.4 requires ops >= 2.12

[tool.poetry.group.integration.dependencies]
pytest = "^8.4.1"
pytest-operator = "^0.43.1"
requests = "^2.32.5"
juju = "^3.6.0.0"
mysql-connector-python = "~8.0.33"
tenacity = "^9.1.2"
ops = "^2.9.0"
allure-pytest-default-results = "^0.1.3"
tomli = "^2.2.1"
tomli-w = "^1.2.0"

[tool.poetry.group.build-refresh-version]
optional = true

[tool.poetry.group.build-refresh-version.dependencies]
charm-refresh-build-version = "^0.4.0"

[tool.coverage.run]
branch = true

Expand Down
Loading