Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Python 3.11 #26

Merged
merged 39 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6b0ae3d
upgrade to python 3.11
rmccar Jul 25, 2023
6749e1f
update lock file
rmccar Jul 31, 2023
0ef717e
update git actions v2 use node 12
rmccar Jul 31, 2023
1e92593
update lock file
rmccar Jul 31, 2023
9d29eea
update lock file
rmccar Jul 31, 2023
dba33ed
update pylint config
rmccar Jul 31, 2023
2030089
add wrapt
rmccar Jul 31, 2023
244acc7
add dill
rmccar Jul 31, 2023
99191ab
update lockfile
rmccar Jul 31, 2023
82c0323
removes test deps
rmccar Aug 1, 2023
2287003
add dill and wrapt back in
rmccar Sep 4, 2023
583e1fb
update pipfile lock
rmccar Sep 15, 2023
e35fb27
update setup python in actions
rmccar Sep 15, 2023
184dcd0
add dill
rmccar Sep 15, 2023
c788de6
update pipfile lock
rmccar Sep 15, 2023
482615f
revert
rmccar Sep 15, 2023
c58c326
pin pylint
rmccar Sep 15, 2023
3873cdd
pin pylint
rmccar Sep 15, 2023
70e70ed
pin pylint
rmccar Sep 15, 2023
33bf7e0
pin pylint
rmccar Sep 15, 2023
af28aa0
pin pylint
rmccar Sep 15, 2023
87ab20c
pin pylint
rmccar Sep 15, 2023
d97f768
pin pylint
rmccar Sep 15, 2023
1cba517
pin pylint
rmccar Sep 15, 2023
1e5e000
pin pylint
rmccar Sep 15, 2023
3e7ccd2
pin pylint
rmccar Sep 15, 2023
f5ede4f
pin pylint
rmccar Sep 15, 2023
6f5e39a
pin pylint
rmccar Sep 15, 2023
178117c
action v3
rmccar Sep 15, 2023
a509e1b
revert to v2
rmccar Sep 15, 2023
3bb80d8
pin everything
rmccar Sep 15, 2023
e59c96f
all prereleases true
rmccar Sep 15, 2023
7d01488
lockfile from last time passed
rmccar Sep 15, 2023
1ca4d17
update actions
rmccar Sep 18, 2023
d6ee03f
remove accidental file
rmccar Sep 18, 2023
55beb4a
try with ubuntu latest and setup python v4
rmccar Sep 18, 2023
dc422bb
update lock file
rmccar Sep 19, 2023
ae73529
revert to non pinned
rmccar Sep 19, 2023
50e7839
fix pylint error
rmccar Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV
- uses: actions/setup-python@v2
- uses: actions/setup-python@v3
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Pipenv
Expand Down
6 changes: 3 additions & 3 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ persistent=yes

# Minimum Python version to use for version dependent checks. Will default to
# the version used to run pylint.
py-version=3.10
py-version=3.11

# Discover python modules and packages in the file system subtree.
recursive=no
Expand Down Expand Up @@ -302,8 +302,8 @@ max-complexity=10
[EXCEPTIONS]

# Exceptions that will emit a warning when caught.
overgeneral-exceptions=BaseException,
Exception
overgeneral-exceptions=builtins.BaseException,
builtins.Exception


[FORMAT]
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.8
3.11.4
4 changes: 3 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ pytest-cov = "*"
functions-framework = "*"
python-dotenv = "*"
types-requests = "*"
wrapt = "*"
dill = "*"
rmccar marked this conversation as resolved.
Show resolved Hide resolved

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

[pipenv]
allow_prereleases = false
1,507 changes: 762 additions & 745 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ On instantiation the function forwards the request on to Gov Notify, which is re

## Development

Local development uses Pipenv to manage the Python environment. Make sure you have Pipenv installed and are using Python version 3.10.
Local development uses Pipenv to manage the Python environment. Make sure you have Pipenv installed and are using Python version 3.11.

There are two environment variables required to run the function:

Expand Down