Skip to content

Commit

Permalink
getrmpytools: install poetry before RLTest
Browse files Browse the repository at this point in the history
  • Loading branch information
rafie committed Aug 25, 2022
1 parent ed8290a commit 3d44a08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/getrmpytools
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class RMPyToolsSetup(paella.Setup):

def macos(self):
self.pip_install("psutil==5.8.0")
# without this, RLTest installation may fail (pip install does not install dev dependencies)
self.pip_install("poetry")

def alpine(self):
self.install("linux-headers")
Expand All @@ -87,18 +89,20 @@ class RMPyToolsSetup(paella.Setup):
self.rltest_version = 'master'
self.ramp_version = 'master'

redis_py_cluster_installed = False
if self.redispy_version is None:
if self.modern:
self.pip_install("--no-cache-dir redis~=4.2.2")
else:
self.pip_install("--no-cache-dir git+https://github.com/redisfab/redis-py.git@3.5")

self.pip_install("--no-cache-dir git+https://github.com/redisfab/redis-py-cluster@2.1")
redis_py_cluster_installed = True
else:
self.pip_install("--no-cache-dir git+https://github.com/{ORG}/redis-py.git@{VER}".\
format(ORG=self.redispy_org, VER=self.redispy_version))

if not self.master and not self.modern:
if not self.master and not self.modern and not redis_py_cluster_installed:
# redis-py-cluster should be installed from git due to redis-py dependency
# self.pip_install("--no-cache-dir git+https://github.com/Grokzen/redis-py-cluster.git@master")
# self.pip_install("--no-cache-dir redis-py-cluster")
Expand Down

0 comments on commit 3d44a08

Please sign in to comment.