[release-monitoring] Fix poetry deployment

Poetry deployment is too different in container than the deployment we used
before. Let's try to use `pip-3 install .` as before, thanks to PEP-517, this
should work as expected.

[PEP-517](https://peps.python.org/pep-0517/)

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2022-09-27 13:09:51 +02:00
parent 2326ab1da9
commit a79b2eacdd
3 changed files with 4 additions and 6 deletions

View file

@ -22,5 +22,5 @@ sar_openshift:
# Output file on local machine
sar_output_file: anitya.json
# Location of the script
sar_script: /usr/local/bin/sar.py
sar_script: /usr/local/bin/sar
swap: false

View file

@ -55,8 +55,6 @@ items:
pushd anitya && \
{% if env == 'staging' %}
git checkout staging && \
poetry export -f requirements.txt --output requirements.txt --without-hashes && \
pip-3 install -r requirements.txt && \
poetry build && \
pip-3 install dist/*.whl && \
{% else %}
@ -72,12 +70,12 @@ items:
popd && \
{% if env != 'staging' %}
python3 setup.py install && \
pip-3 install . && \
{% endif %}
pip-3 install . && \
popd && \
rm -rf anitya
# Let's use staging auth server in staging
{% if env == 'staging' %}
# Let's use staging auth server in staging
RUN sed -i 's/id.fedoraproject.org/id.stg.fedoraproject.org/g' /usr/local/lib/python3.10/site-packages/social_core/backends/fedora.py
{% endif %}

View file

@ -55,7 +55,7 @@ LogLevel info
TypesConfig /etc/mime.types
AddDefaultCharset UTF-8
CoreDumpDirectory /tmp
Alias /docs /usr/local/lib/python3.10/anitya/static/docs/html/
Alias /docs /usr/local/lib/python3.10/site-packages/anitya/static/docs/html/
Alias /static /usr/local/lib/python3.10/site-packages/anitya/static/
WSGIDaemonProcess anitya display-name=anitya processes=2 threads=2 maximum-requests=1000 home=/httpdir
WSGIApplicationGroup %{GLOBAL}