-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
89: Update to python 3.10 and update to latest python template.
- Loading branch information
1 parent
def86d4
commit 06f1ebc
Showing
15 changed files
with
152 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.8-slim-buster | ||
FROM python:3.10-slim-buster | ||
|
||
WORKDIR /app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
set -a | ||
source $1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env sh | ||
#!/usr/bin/env bash | ||
|
||
python3.8 -m venv ./.venv | ||
. .venv/bin/activate | ||
python3.10 -m venv ./.venv | ||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
pip3 install pip-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
|
||
flake8 ./src/grow_worker ./unit_test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
|
||
PYTHONPATH='$PYTHONPATH:src/' pytest --junit-xml=test-results.xml unit_test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
|
||
python -m mypy ./src/grow_worker ./unit_test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
|
||
pip-compile --output-file=requirements.txt pyproject.toml | ||
pip-compile --extra=dev -c requirements.txt --output-file=dev-requirements.txt pyproject.toml | ||
pip-compile --upgrade --output-file=requirements.txt pyproject.toml | ||
pip-compile --upgrade --extra=dev -c requirements.txt --output-file=dev-requirements.txt pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.