Skip to content

Commit

Permalink
Use Python3.11 for panther-analysis (#1223) (#1226)
Browse files Browse the repository at this point in the history
* Use Python3.11 for panther-analysis
  • Loading branch information
Evan Gibler authored Apr 30, 2024
1 parent 55c4bac commit 4c328e6
Show file tree
Hide file tree
Showing 10 changed files with 119 additions and 172 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-packs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set python version
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Install panther_analysis_tool
run: pip install panther_analysis_tool
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set python version
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Install pipenv
run: pip install pipenv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: "3.9"
python-version: "3.11"
- name: Create new panther-analysis release
run: |
export AWS_REGION=${{ secrets.AWS_REGION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set python version
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.11"

- name: Install pipenv
run: pip install pipenv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set python version
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Install pipenv
run: pip install pipenv
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9
3.11
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM --platform=$TARGETPLATFORM cgr.dev/chainguard/wolfi-base

ARG TARGETPLATFORM
ARG PYTHON_VERSION="3.9.18"
ARG PYTHON_VERSION="3.11.9"

RUN apk update \
&& apk add --no-cache \
Expand All @@ -10,6 +10,7 @@ RUN apk update \
bzip2-dev \
git \
libffi-dev \
ncurses-dev \
nodejs \
npm \
openssl-dev \
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ panther-analysis-tool = "~=0.46"
panther-detection-helpers = "==0.3.0"

[requires]
python_version = "3.9"
python_version = "3.11"
272 changes: 109 additions & 163 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 100
target-version = ['py39']
target-version = ['py311']
include = '\.pyi?$'

[tool.isort]
Expand Down

0 comments on commit 4c328e6

Please sign in to comment.