Skip to content

Commit

Permalink
Unpin python-libjuju based on environment variable
Browse files Browse the repository at this point in the history
PR#652 pinned python-libjuju to < 3.0.0 to resolve
CI issues with OpenStack Charms. However Sunbeam
project requires juju 3.x to run zaza tests.
Unpin python-libjuju if environment variable
JUJU3 is set.
This is a temporary fix until python-libjuju is
unpinned for all the projects.
  • Loading branch information
hemanthnakkina committed Apr 1, 2024
1 parent 4089cc3 commit 8f6cdca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@

# https://github.com/go-macaroon-bakery/py-macaroon-bakery/issues/94
'macaroonbakery != 1.3.3',
'juju<3.0.0',
]
if os.environ.get("JUJU3"):
install_require.append('juju')
else:
install_require.append('juju<3.0.0')

tests_require = [
'tox >= 2.3.1',
Expand Down

0 comments on commit 8f6cdca

Please sign in to comment.