Skip to content

Commit

Permalink
Merge pull request #875 from a-luna/minor-release/v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
a-luna authored Jul 8, 2022
2 parents 6cede5c + 2fc75ef commit 84bd023
Show file tree
Hide file tree
Showing 76 changed files with 4,131 additions and 3,149 deletions.
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/__pycache__
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
README.md
4 changes: 2 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
env:
USING_COVERAGE: "3.9"
USING_COVERAGE: "3.10"

strategy:
matrix:
python-version: ["3.9"]
python-version: ["3.10"]

steps:
- uses: "actions/checkout@v2"
Expand Down
51 changes: 51 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FROM gitpod/workspace-base:latest

RUN echo "CI version from base"

### NodeJS ###
USER gitpod
ENV NODE_VERSION=16.13.0
ENV TRIGGER_REBUILD=1
RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | PROFILE=/dev/null bash \
&& bash -c ". .nvm/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& npm install -g typescript yarn node-gyp" \
&& echo ". ~/.nvm/nvm.sh" >> /home/gitpod/.bashrc.d/50-node
ENV PATH=$PATH:/home/gitpod/.nvm/versions/node/v${NODE_VERSION}/bin

### Python ###
USER gitpod
RUN sudo install-packages python3-pip

ENV PATH=$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
RUN curl -fsSL https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \
&& { echo; \
echo 'eval "$(pyenv init -)"'; \
echo 'eval "$(pyenv virtualenv-init -)"'; } >> /home/gitpod/.bashrc.d/60-python \
&& pyenv update \
&& pyenv install 3.10.1 \
&& pyenv global 3.10.1 \
&& python3 -m pip install --no-cache-dir --upgrade pip \
&& python3 -m pip install --no-cache-dir --upgrade \
setuptools wheel virtualenv flake8 pydocstyle twine \
&& sudo rm -rf /tmp/*USER gitpod
ENV PYTHONUSERBASE=/workspace/.pip-modules \
PIP_USER=yes
ENV PATH=$PYTHONUSERBASE/bin:$PATH

# SQLite

RUN sudo apt-get update && sudo apt-get install -y build-essential uuid-dev sqlite3

# Add aliases

RUN echo 'alias python=python3' >> ~/.bashrc && \
echo 'alias pip=pip3' >> ~/.bashrc && \
echo 'alias font_fix="python3 $GITPOD_REPO_ROOT/.vscode/font_fix.py"' >> ~/.bashrc

# Local environment variables

ENV PORT="8080"
ENV IP="0.0.0.0"

26 changes: 26 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
image:
file: .gitpod.Dockerfile

tasks:
- before: printf "\n[settings]\napi_key = $WAKA_TIME_API_KEY\n" > ~/.wakatime.cfg
- init: |
pip install -r requirements-dev.txt
pip install -e .
command: vig
vscode:
extensions:
- github.vscode-pull-request-github
- redhat.vscode-yaml
- vivaxy.vscode-conventional-commits
- mhutchie.git-graph
- oderwat.indent-rainbow
- christian-kohler.path-intellisense
- esbenp.prettier-vscode
- vscode-icons-team.vscode-icons
- wakatime.vscode-wakatime
- qcz.text-power-tools
- ms-python.python
- ms-toolsai.jupyter
- ms-azuretools.vscode-docker
- alexcvzz.vscode-sqlite
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

Loading

0 comments on commit 84bd023

Please sign in to comment.