Skip to content

Commit

Permalink
Update Python code to use Python 3.11 (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Apr 21, 2023
1 parent 74eca0e commit 8a9db25
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
# Ensure that it matches `python_version` field in the following files:
# - `automations/python/Pipfile`
# - `dead_links/Pipfile`
python-version: "3.10"
python-version: "3.11"
cache: pipenv
cache-dependency-path: |
**/Pipfile.lock
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/label_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
- name: Setup CI env
uses: ./.github/actions/setup-env
with:
python-version: "3.10"

- name: Install dependencies
working-directory: ./automations/python
run: |
python -m pip install --user --upgrade pip
python -m pip install --user pipenv
pipenv install --deploy
setup_nodejs: false # Node.js is not needed to run Python automations.
install_recipe: "automations/python/install"

- name: Label PR
working-directory: ./automations/python
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/label_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
- name: Setup CI env
uses: ./.github/actions/setup-env
with:
python-version: "3.10"

- name: Install dependencies
working-directory: ./automations/python
run: |
python -m pip install --user --upgrade pip
python -m pip install --user pipenv
pipenv install --deploy
setup_nodejs: false # Node.js is not needed to run Python automations.
install_recipe: "automations/python/install"

- name: Sync standard labels
working-directory: ./automations/python
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/pr_project_automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
- name: Setup CI env
uses: ./.github/actions/setup-env
with:
python-version: "3.10"

- name: Install dependencies
working-directory: ./automations/python
run: |
python -m pip install --user --upgrade pip
python -m pip install --user pipenv
pipenv install --deploy
setup_nodejs: false # Node.js is not needed to run Python automations.
install_recipe: "automations/python/install"

- name: Clear PRs in "Merged!"
working-directory: ./automations/python
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/project_automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
- name: Setup CI env
uses: ./.github/actions/setup-env
with:
python-version: "3.10"

- name: Install dependencies
working-directory: ./automations/python
run: |
python -m pip install --user --upgrade pip
python -m pip install --user pipenv
pipenv install --deploy
setup_nodejs: false # Node.js is not needed to run Python automations.
install_recipe: "automations/python/install"

- name: Move stale issues from "In progress"
working-directory: ./automations/python
Expand Down
2 changes: 1 addition & 1 deletion api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ wsgi-basic-auth = "~=1.1"
aiohttp = "~=3.8"

[requires]
python_version = "3.10"
python_version = "3.11"
22 changes: 15 additions & 7 deletions api/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion automations/python/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pyotp = "*"
ipython = "*"

[requires]
python_version = "3.10"
python_version = "3.11"

[pipenv]
allow_prereleases = true
31 changes: 29 additions & 2 deletions automations/python/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions documentation/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ verify_ssl = true
name = "pypi"

[packages]
sphinxcontrib-mermaid = "*"

[dev-packages]
sphinx = "*"
Expand All @@ -15,4 +14,4 @@ myst-parser = "*"
sphinxcontrib-mermaid = "*"

[requires]
python_version = "3.10"
python_version = "3.11"
4 changes: 2 additions & 2 deletions documentation/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ingestion_server/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ tldextract = "~=3.3"
sentry-sdk = {extras = ["falcon"], version = "*"}

[requires]
python_version = "3.10"
python_version = "3.11"
16 changes: 12 additions & 4 deletions ingestion_server/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a9db25

Please sign in to comment.