[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:
parent
04106895fb
commit
ffa16d3195
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue