Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
python_install.yml 460 B
Newer Older
.python_install:
Dorian Turba's avatar
Dorian Turba committed
    image: python:${IMAGE_TAG}
    variables:
        IMAGE_TAG: "latest"
        PROJECT_PATH: "."
Dorian Turba's avatar
Dorian Turba committed
        REQUIREMENTS_FILE: "requirements.txt"
        PYTHON_SETUP: "pip install -r ${PROJECT_PATH}/${REQUIREMENTS_FILE}"
    script:
        - python --version  # Debug
        - python -m venv venv --upgrade-deps || python -m venv venv  # upgrade-deps is not supported before 3.9
        - source venv/bin/activate
        - ${PYTHON_SETUP}