Skip to content

Commit

Permalink
feat: Upgrade Python to 3.8 (#2104)
Browse files Browse the repository at this point in the history
* update Pipfile

* update github action

* update github workflow

* update again
  • Loading branch information
cewei8483 authored Jun 23, 2023
1 parent 69d6aa2 commit 41fe95b
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
architecture: "x64"
- name: Use Node.js
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
architecture: "x64"
- name: Setup nodejs
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup python-version
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
architecture: "x64"
- name: Install Python dependencies
run: |
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Generate requirements
run: pip freeze > requirements.txt
- name: Run Snyk to check for vulnerabilities in Python
uses: snyk/actions/python-3.7@master
uses: snyk/actions/python-3.8@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.7-slim-buster
FROM python:3.8-slim-buster

EXPOSE 8000

Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ PyPDF2 = "==2.10.6"
black = "*"

[requires]
python_version = "3.7"
python_version = "3.8"
110 changes: 32 additions & 78 deletions 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 setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"setuptools==62.1.0", # upgrading this causes an error when publishing the cfl_common package to PyPI for some reason, see https://github.com/ocadotechnology/codeforlife-portal/actions/runs/3883963564/jobs/6625894054
"django-import-export",
],
classifiers=["Programming Language :: Python", "Programming Language :: Python :: 3.7", "Framework :: Django"],
classifiers=["Programming Language :: Python", "Programming Language :: Python :: 3.8", "Framework :: Django"],
zip_safe=False,
)

0 comments on commit 41fe95b

Please sign in to comment.