mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
As the new-age Python package manager, Poetry brings a lot of good additions to the table. It allows us to more easily deal with virtualenvs for the project and resolve dependencies. As of this commit, `requirements.txt` is replaced by Poetry, configured at `pyproject.toml`. In Docker and GitLab, we currently use Poetry in a root fashion. We should work toward purely using virtualenvs in Docker, but, for now we'd like to move forward with other things. The project can still be installed to a virtualenv and used on a user's system through Poetry; it is just not yet doing so in Docker. Modifications: * docker/scripts/install-deps.sh * Remove python dependencies. * conf/config.defaults * Script paths have been updated to use '/usr/bin'. * docker/git-entrypoint.sh * Use '/usr/bin/aurweb-git-auth' instead of '/usr/local/bin/aurweb-git-auth'. Additions: * docker/scripts/install-python-deps.sh * A script used purely to install Python dependencies with Poetry. This has to be used within the aurweb project directory and requires system-wide dependencies are installed beforehand. * Also upgrades system-wide pip. Signed-off-by: Kevin Morris <kevr@0cost.org>
16 lines
594 B
Bash
Executable file
16 lines
594 B
Bash
Executable file
#!/bin/bash
|
|
# Install Arch Linux dependencies. This is centralized here
|
|
# for CI and Docker usage and should always reflect the most
|
|
# robust development ecosystem.
|
|
set -eou pipefail
|
|
|
|
pacman -Syu --noconfirm --noprogressbar \
|
|
--cachedir .pkg-cache git gpgme nginx redis openssh \
|
|
mariadb mariadb-libs cgit uwsgi uwsgi-plugin-cgi \
|
|
php php-fpm memcached php-memcached python-pip pyalpm \
|
|
python-srcinfo curl
|
|
|
|
# https://python-poetry.org/docs/ Installation section.
|
|
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
|
|
|
|
exec "$@"
|