Skip to content

Commit

Permalink
Merge branch 'main' into dpe-3451-expose
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Feb 5, 2024
2 parents cbb6b81 + f3fa622 commit dc5660a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 75 deletions.
13 changes: 10 additions & 3 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ parts:
- cargo
- pkg-config
charm-strict-dependencies: true
charm-binary-python-packages:
- psycopg2-binary
- psycopg-binary
libpq:
build-packages:
- libpq-dev
plugin: dump
source: /usr/lib/
source-type: local
prime:
- lib/
organize:
"*-linux-gnu/libpq.so*": lib/
92 changes: 24 additions & 68 deletions poetry.lock

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

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pydantic = "^1.10.14"
poetry-core = "^1.8.1"
cryptography = "^42.0.2"
jsonschema = "^4.21.1"
psycopg2-binary = "^2.9.9"
psycopg = {extras = ["binary"], version = "^3.1.17"}
psycopg2 = "^2.9.9"
psycopg = {extras = ["c"], version = "^3.1.17"}

[tool.poetry.group.charm-libs.dependencies]
# data_platform_libs/v0/data_interfaces.py
Expand Down Expand Up @@ -59,7 +59,6 @@ optional = true
coverage = {extras = ["toml"], version = "^7.4.1"}
pytest = "^8.0.0"
pytest-asyncio = "*"
psycopg2-binary = "^2.9.9"
jinja2 = "^3.1.3"

[tool.poetry.group.integration]
Expand Down
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env -S LD_LIBRARY_PATH=lib python3
# Copyright 2022 Canonical Ltd.
# See LICENSE file for licensing details.

Expand Down

0 comments on commit dc5660a

Please sign in to comment.