[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 \
|
httpd \
|
||||||
graphviz \
|
graphviz \
|
||||||
fedora-messaging \
|
fedora-messaging \
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
poetry \
|
||||||
|
{% endif %}
|
||||||
python3-alembic \
|
python3-alembic \
|
||||||
python3-beautifulsoup4 \
|
python3-beautifulsoup4 \
|
||||||
python3-arrow \
|
python3-arrow \
|
||||||
|
@ -52,10 +55,12 @@ items:
|
||||||
pushd anitya && \
|
pushd anitya && \
|
||||||
{% if env == 'staging' %}
|
{% if env == 'staging' %}
|
||||||
git checkout staging && \
|
git checkout staging && \
|
||||||
|
poetry config virtualenvs.create false && \
|
||||||
|
poetry install && \
|
||||||
{% else %}
|
{% else %}
|
||||||
git checkout production && \
|
git checkout production && \
|
||||||
{% endif %}
|
|
||||||
python3 setup.py install && \
|
python3 setup.py install && \
|
||||||
|
{% endif %}
|
||||||
pushd docs && \
|
pushd docs && \
|
||||||
mkdir -p images && \
|
mkdir -p images && \
|
||||||
python3 generate_db_schema && \
|
python3 generate_db_schema && \
|
||||||
|
@ -63,8 +68,10 @@ items:
|
||||||
mkdir -p ../anitya/static/docs/ && \
|
mkdir -p ../anitya/static/docs/ && \
|
||||||
cp -r _build/html/* ../anitya/static/docs/ && \
|
cp -r _build/html/* ../anitya/static/docs/ && \
|
||||||
popd && \
|
popd && \
|
||||||
|
{% if env != 'staging' %}
|
||||||
python3 setup.py install && \
|
python3 setup.py install && \
|
||||||
pip-3 install . && \
|
pip-3 install . && \
|
||||||
|
{% endif %}
|
||||||
popd && \
|
popd && \
|
||||||
rm -rf anitya
|
rm -rf anitya
|
||||||
# Let's use staging auth server in staging
|
# Let's use staging auth server in staging
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue