Skip to content
Snippets Groups Projects
Commit 0fa8fb68 authored by David Trattnig's avatar David Trattnig
Browse files

Python 3.8 as a minimum requirement. #61

parent 106f38ee
No related branches found
No related tags found
No related merge requests found
image: python:3.7
image: python:3.8
stages:
- test
......@@ -9,13 +9,6 @@ before_script:
- apt-get install -y python3-virtualenv virtualenv opam libev4 libev-dev libsndfile1 quelcom # mariadb-server libmariadbclient-dev
- /usr/bin/virtualenv venv
- . venv/bin/activate
# - opam init --disable-sandboxing -y
# - opam switch create 4.08.0
# - opam update -y
# - opam install depext -y
# - opam depext taglib mad lame vorbis flac opus cry samplerate pulseaudio bjack alsa ssl liquidsoap -y
# - opam install taglib mad lame vorbis flac opus cry samplerate pulseaudio bjack alsa ssl liquidsoap -y
# - eval $(opam env)
- python3 -V
- pip3 install -r requirements.txt
- mkdir /etc/aura
......
......@@ -15,12 +15,12 @@ fi
# Find the correct Python version (3.7 or 3.8)
if hash python3.8 2>/dev/null; then
if hash python3.9 2>/dev/null; then
PYTHON_EXEC="python3.9"
echo "[ Using Python 3.9 ]"
else
PYTHON_EXEC="python3.8"
echo "[ Using Python 3.8 ]"
else
PYTHON_EXEC="python3.7"
echo "[ Using Python 3.7 ]"
fi
# Development and Production
......
......@@ -32,14 +32,14 @@ echo "[ Run mode=$mode ]"
echo "[ Docker=$docker ]"
# Find the correct Python version (3.7 or 3.8)
# Find the correct Python version (3.8 or 3.9)
if hash python3.8 2>/dev/null; then
if hash python3.9 2>/dev/null; then
PYTHON_EXEC="python3.9"
echo "[ Using Python 3.9 ]"
else
PYTHON_EXEC="python3.8"
echo "[ Using Python 3.8 ]"
else
PYTHON_EXEC="python3.7"
echo "[ Using Python 3.7 ]"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment