Skip to content

Commit

Permalink
Bump Python version to 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-weinberg committed Feb 16, 2024
1 parent 6c8747c commit 7555000
Show file tree
Hide file tree
Showing 9 changed files with 230 additions and 5,518 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
node-version: ['18']
python-version: ['3.11']
python-version: ['3.12']
env:
TM_NTT_CERT_ARN: ${{ secrets.TM_NTT_CERT_ARN }}
TM_LABS_WILDCARD_CERT_ARN: ${{ secrets.TM_LABS_WILDCARD_CERT_ARN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
node-version: ['18']
python-version: ['3.11']
python-version: ['3.12']
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -38,7 +38,7 @@ jobs:
strategy:
matrix:
node-version: ['18']
python-version: ['3.11']
python-version: ['3.12']
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ Shows new MBTA Orange, Red, and Green Line trains as they come into service.
## Install & Run
Dependencies:
- `node` `18.x`
- `python` `3.11`
- `python` `3.12`
- [`poetry`](https://python-poetry.org/)
- Ensure `poetry` is using the correct Python version by running `poetry env use <your python3.12 binary>`

Run:
- `$ npm install`
Expand Down
8 changes: 4 additions & 4 deletions devops/deploy-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
repo: ppa:deadsnakes/ppa
update_cache: yes

- name: install python3.11
- name: install python3.12
become: yes
become_user: root
apt:
name: python3.11
name: python3.12
state: latest

- name: install poetry
Expand Down Expand Up @@ -82,8 +82,8 @@
state: restarted
daemon_reload: yes

- name: ensure using python 3.11 poetry environment
shell: /home/ubuntu/.local/bin/poetry env use 3.11
- name: ensure using python 3.12 poetry environment
shell: /home/ubuntu/.local/bin/poetry env use 3.12
args:
chdir: /home/ubuntu/new-train-tracker

Expand Down
Loading

0 comments on commit 7555000

Please sign in to comment.