[release-monitoring] Add poetry to staging build config

Anitya is now using poetry instead of setup.py. This commit is doing the
necessary changes in the buildconfig to reflect this change.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2022-09-26 16:27:21 +02:00
parent 04106895fb
commit ffa16d3195

View file

@ -21,6 +21,9 @@ items:
httpd \
graphviz \
fedora-messaging \
{% if env == 'staging' %}
poetry \
{% endif %}
python3-alembic \
python3-beautifulsoup4 \
python3-arrow \
@ -52,10 +55,12 @@ items:
pushd anitya && \
{% if env == 'staging' %}
git checkout staging && \
poetry config virtualenvs.create false && \
poetry install && \
{% else %}
git checkout production && \
{% endif %}
python3 setup.py install && \
{% endif %}
pushd docs && \
mkdir -p images && \
python3 generate_db_schema && \
@ -63,8 +68,10 @@ items:
mkdir -p ../anitya/static/docs/ && \
cp -r _build/html/* ../anitya/static/docs/ && \
popd && \
{% if env != 'staging' %}
python3 setup.py install && \
pip-3 install . && \
{% endif %}
popd && \
rm -rf anitya
# Let's use staging auth server in staging