Skip to content

Commit

Permalink
Fix deploys by moving everything to Python 3.10 (#686)
Browse files Browse the repository at this point in the history
* v1

* Move everything to Python 3.10

* ugh
  • Loading branch information
juberti authored Dec 8, 2024
1 parent c13b689 commit 0e73a12
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 25 deletions.
41 changes: 22 additions & 19 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

# Python pycache:
__pycache__/
# Ignored by the build system
/setup.cfg
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

# Python pycache:
__pycache__/
# Ignored by the build system
/setup.cfg

# This should be ignored since it's in .gitignore, but it's not
venv
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.10"

- name: Set up dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.8
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.10"

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime: python311
runtime: python310
2 changes: 1 addition & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from cron import photos, schedules, update_lunch

if __name__ == "__main__":
if not "GOOGLE_APPLICATION_CREDENTIALS" in os.environ:
if "GOOGLE_APPLICATION_CREDENTIALS" not in os.environ:
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "service_account.json"
parser = argparse.ArgumentParser()
parser.add_argument("data", help="Which data update.")
Expand Down

0 comments on commit 0e73a12

Please sign in to comment.