From baf011c752ada8e8a14e5190d6275272f5419283 Mon Sep 17 00:00:00 2001 From: Oliver Mannion <125105+tekumara@users.noreply.github.com> Date: Sun, 14 Jan 2024 20:51:18 +1100 Subject: [PATCH] chore! remove support for python 3.7 (#445) as its EOL and the latest version of our dependencies (eg: setuptools, dirty-equals, pre-commit) no longer support it --- .github/workflows/ci.yml | 4 +--- .python-version | 1 + README.md | 2 +- pyproject.toml | 4 ++-- toast.yml | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 .python-version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0631bb8..dee0a6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,11 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.7 + - name: Set up Python id: setup-python uses: actions/setup-python@v4 - with: - python-version: 3.7 - name: Cache virtualenv id: cache-venv uses: actions/cache@v3 diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..cc1923a --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/README.md b/README.md index 1981fbb..152820f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ For examples see: ## Prerequisites -- python 3.7+ +- python 3.8+ ## Install diff --git a/pyproject.toml b/pyproject.toml index a5bbc3a..b1a25eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ readme = "README.md" license = { file = "LICENSE" } keywords = ["AWS", "EC2", "command line", "cli"] classifiers = ["License :: OSI Approved :: MIT License"] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "boto3==1.28.1", "importlib_resources==5.12.0", @@ -23,7 +23,7 @@ dev = [ "boto3-stubs[ec2,compute-optimizer,ssm,s3]", "cogapp~=3.3", "dirty-equals~=0.6", - "moto[ec2]~=4.1", + "moto[ec2]==4.2.9", "pre-commit~=2.20", "pyfakefs~=5.1", "pytest~=7.4", diff --git a/toast.yml b/toast.yml index b844903..100f483 100644 --- a/toast.yml +++ b/toast.yml @@ -1,4 +1,4 @@ -image: python:3.7-slim +image: python:3.8-slim command_prefix: set -euo pipefail tasks: install-packages: