Skip to content

Commit

Permalink
Bumped python version to 3.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNye committed Nov 13, 2024
1 parent 762c993 commit 28e2824
Show file tree
Hide file tree
Showing 13 changed files with 2,153 additions and 1,934 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# 3. Because point 2, it will include Read access to Metadata
- name: bootstrap
run: |
python3.10 -m venv build-env
python3.11 -m venv build-env
. build-env/bin/activate && pip install poetry setuptools pip --upgrade
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.37.3
- name: set git identity
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"
- name: bootstrap
run: |
pip install poetry setuptools pip --upgrade
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.9'
python-version: '3.11'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- name: run-test
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.base_image
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG FUNCTION_DIR="/app"
ARG AWS_LINUX_VERSION="2023"
ARG PYTHON_VERSION="3.10.12"
ARG PYTHON_VERSION="3.11.10"

ARG ARCH=
FROM ${ARCH}amazonlinux:${AWS_LINUX_VERSION} as python-layer
Expand Down
2 changes: 1 addition & 1 deletion docs/web/docs/1-getting_started/00-configuring_iambic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ IAMbic runs on Mac, Linux, or Windows Subsystem for Linux (WSL). Before getting
and permissions:

1. Install [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
2. Install [Python](https://www.python.org/downloads/) 3.9+. Running IAMbic locally instead of Docker is the recommended way.
2. Install [Python](https://www.python.org/downloads/) 3.11+. Running IAMbic locally instead of Docker is the recommended way.
3. [Install the GitHub CLI](https://cli.github.com/manual#installation) and [authenticate with GitHub](https://cli.github.com/manual/) (recommended)
4. Set up administrative access in AWS to run the IAMbic Setup Wizard. (required)
5. Set up administrative access to your GitHub organization or personal account. (required)
Expand Down
4 changes: 2 additions & 2 deletions docs/web/docs/2-how_to_guides/3-contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Our team would be delighted to assist you.

Before proceeding you will need to have the following configured, and know the basics of using them:

- Python 3.10+ (see [Python’s download page](https://www.python.org/downloads/)) <!-- #TODO is python required if we use the docker install below? -->
- Python 3.11+ (see [Python’s download page](https://www.python.org/downloads/)) <!-- #TODO is python required if we use the docker install below? -->
- Git (see [GitHub’s set up Git guide](https://help.github.com/en/github/getting-started-with-github/set-up-git))
- Git LFS (see [GitHub's LFS guide](https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage))
- GitHub
Expand Down Expand Up @@ -59,7 +59,7 @@ Install from [Python's download page](https://www.python.org/downloads/), or
via [Brew](https://brew.sh/):

```bash
brew install python@3.10
brew install python@3.11
```

### Install Docker and Docker Compose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ toc_max_heading_level: 5

## Pre-requisites

* Python 3.10 or later
* Python 3.11 or later

## Install Python if you have not already

To download IAMbic from PyPI, you will need to ensure that Python is installed on your machine. Here are two methods for installing Python:

### Method 1: Python

1. Go to the [Python Downloads page]( https://www.python.org/downloads) and download and install Python 3.10 or later.
1. Go to the [Python Downloads page]( https://www.python.org/downloads) and download and install Python 3.11 or later.
1. Create a virtual environment and install IAMbic by running the following commands:

```bash
Expand All @@ -39,12 +39,12 @@ Test by running `iambic --help`
1. Create a virtual environment and install IAMbic by running the following commands:

```bash
# Install the desired version of Python (replace 3.10 with your desired version).
pyenv install 3.10
# Set the Python version globally with `pyenv global 3.10` or locally within a folder with `pyenv local 3.10`.
pyenv local 3.10
# Create a virtual environment (replace 3.10 and iambic with your desired version and environment name).
pyenv virtualenv 3.10 iambic
# Install the desired version of Python (replace 3.11 with your desired version).
pyenv install 3.11
# Set the Python version globally with `pyenv global 3.11` or locally within a folder with `pyenv local 3.11`.
pyenv local 3.11
# Create a virtual environment (replace 3.11 and iambic with your desired version and environment name).
pyenv virtualenv 3.11 iambic
# Activate the virtual environment
pyenv activate iambic
# Install IAMbic
Expand Down
4 changes: 2 additions & 2 deletions iambic/plugins/v0_1_0/aws/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ skip_gitignore = true
line_length = 88

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"
boto3 = "^1.24.88"
"ruamel.yaml" = "^0.17.21"
asgiref = "^3.5.2"
Expand All @@ -44,7 +44,7 @@ PyGithub = "^1.57"
pydantic-factories = "^1.12.0"
asyncache = "^0.3.1"
dateparser = "^1.1.4"
pytest-mock = "^3.10.0"
pytest-mock = "^3.14.0"
types-dateparser = "^1.1.4.5"

[tool.poetry.group.dev.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions iambic/plugins/v0_1_0/google_workspace/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ skip_gitignore = true
line_length = 88

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"
"ruamel.yaml" = "^0.17.21"
asgiref = "^3.5.2"
structlog = "^22.1.0"
Expand All @@ -45,7 +45,7 @@ PyGithub = "^1.57"
pydantic-factories = "^1.12.0"
asyncache = "^0.3.1"
dateparser = "^1.1.4"
pytest-mock = "^3.10.0"
pytest-mock = "^3.14.0"
types-dateparser = "^1.1.4.5"

[tool.poetry.group.dev.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions iambic/plugins/v0_1_0/okta/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ skip_gitignore = true
line_length = 88

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"
"ruamel.yaml" = "^0.17.21"
asgiref = "^3.5.2"
structlog = "^22.1.0"
Expand All @@ -44,7 +44,7 @@ pydantic-factories = "^1.12.0"
okta = "^2.8.0"
asyncache = "^0.3.1"
dateparser = "^1.1.4"
pytest-mock = "^3.10.0"
pytest-mock = "^3.14.0"
types-dateparser = "^1.1.4.5"

[tool.poetry.group.dev.dependencies]
Expand Down
Loading

0 comments on commit 28e2824

Please sign in to comment.