Skip to content

Commit

Permalink
Stable build fixes
Browse files Browse the repository at this point in the history
Switch to using the latest charm-tools <3.0.0 to fix three build errors:
- An error related to 'pytz' fixed in charm-tools 2.8.6:
  juju/charm-tools#654
- An error related to ruamel.yaml fixed in charm-tools 2.8.8:
  here: juju/charm-tools#668
- An error related to macaroonbakery fixed in charm-tools 2.8.9:
  juju/charm-tools#671

Additionally merge bindep.txt to install libpq-dev required for
psycopg2-binary as wheels no longer exist for py36.

Additional fix for ussuri only:
- Switch bionic test bundles from vault 1.7/edge to 1.6/edge as the 1.7
  channel no longer supports bionic.

Change-Id: Idc16b84dc3dcdf001c73c7d2fdd57b1d08ebfb23
  • Loading branch information
lathiat committed Jan 17, 2024
1 parent 4b25656 commit 529f6e0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bindep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ libffi-dev [platform:dpkg]
libpq-dev [platform:dpkg]
libxml2-dev [platform:dpkg]
libxslt1-dev [platform:dpkg]

libpq-dev [platform:dpkg]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb
# Build requirements
pyparsing<3.0.0 # cffi needs pyparsing < 3.0.0.
cffi==1.14.6; python_version < '3.6' # cffi 1.15.0 drops support for py35.
charm-tools==2.8.3
charm-tools<3.0.0

simplejson

Expand Down
2 changes: 1 addition & 1 deletion src/tests/bundles/bionic-train-ha-ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,4 @@ applications:
vault:
charm: ch:vault
num_units: 1
channel: 1.7/edge
channel: 1.6/edge
2 changes: 1 addition & 1 deletion src/tests/bundles/bionic-train-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,4 @@ applications:
vault:
charm: ch:vault
num_units: 1
channel: 1.7/edge
channel: 1.6/edge
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ commands = stestr run --slowest {posargs}
[testenv:pep8]
basepython = python3
deps = flake8==3.9.2
charm-tools==2.8.3
PyYAML==6.0.1
charm-tools<3.0.0
commands = flake8 {posargs} src unit_tests

[testenv:func-target]
Expand Down

0 comments on commit 529f6e0

Please sign in to comment.