Skip to content

Commit

Permalink
chore: pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelin committed Aug 27, 2021
1 parent cea2c2e commit 89f8f3b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
17 changes: 9 additions & 8 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ COPY ["./build/*", "./"]
RUN arch && ls -al && sudo /bin/bash ./install_requirements.sh #

# install gtipod environment dev packages for app testing
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install --upgrade --upgrade setuptools && \
python3 -m pip install -U pytest && \
python3 -m pip install -U codecov && \
python3 -m pip install -U pytest-cov && \
python3 -m pip install -U pylint && \
sudo ln -s /usr/bin/python3 /usr/bin/python
# RUN python3 -m pip install --upgrade pip && \
# python3 -m pip install --upgrade --upgrade setuptools && \
# python3 -m pip install -U pytest && \
# python3 -m pip install -U codecov && \
# python3 -m pip install -U pytest-cov && \
# python3 -m pip install -U pylint && \
# sudo ln -s /usr/bin/python3 /usr/bin/python

# && \
# echo "pyenv global system" >> ~/.bashrc.d/60-python && \
# echo "python3 -m pip install -e ~/src" >> ~/.bashrc

#
#
8 changes: 7 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ image:
tasks:
- init: |
echo "Gitpod init. Setting up ambianic-edge dev environment."
pip3 install -e ./src
python3 -m pip install --upgrade pip && \
python3 -m pip install --upgrade --upgrade setuptools && \
python3 -m pip install -U pytest && \
python3 -m pip install -U codecov && \
python3 -m pip install -U pytest-cov && \
python3 -m pip install -U pylint && \
python3 -m pip install -e ./src
command: |
pyenv global system
echo "Started ambianic-edge development environment."
Expand Down
3 changes: 1 addition & 2 deletions .theia/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
"python.testing.pytestEnabled": true,
"editor.autoSave": "on",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.pylamaEnabled": true
"python.linting.pylintEnabled": true
}
1 change: 1 addition & 0 deletions build/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ concurrent-log-handler>=0.9.19
watchdog>=0.10
dynaconf>=3.1
apprise>=0.8.9pip
uvicorn>0.15
fastapi[all]>0.68

0 comments on commit 89f8f3b

Please sign in to comment.