From 7ada1f959a4e64ddcc9eb1f12ae07808e4a63ef4 Mon Sep 17 00:00:00 2001 From: Lucas Cimon <925560+Lucas-C@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:34:42 +0100 Subject: [PATCH] Dropping Python 3.7 support to conform to pre-commit project --- .github/workflows/build.yml | 2 +- setup.py | 1 - tests/safety_test.py | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7652ac..d590913 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: strategy: max-parallel: 5 matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11'] steps: - name: Checkout 🛎️ uses: actions/checkout@v3 diff --git a/setup.py b/setup.py index 4f03e8f..b40ef12 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,6 @@ classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', diff --git a/tests/safety_test.py b/tests/safety_test.py index abf61b1..9f9cad6 100644 --- a/tests/safety_test.py +++ b/tests/safety_test.py @@ -102,7 +102,7 @@ def test_pyproject_toml_with_ko_deps(tmpdir): authors = ['Lucas Cimon'] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" jubatus = '1.0.2' """) assert safety([str(pyproject_file)]) == EXIT_CODE_VULNERABILITIES_FOUND @@ -116,7 +116,7 @@ def test_pyproject_toml_with_ko_dev_deps(tmpdir): authors = ['Lucas Cimon'] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" # Poetry pre-1.2.x style [tool.poetry.dev-dependencies] @@ -141,7 +141,7 @@ def test_pyproject_toml_with_groups(tmpdir, group_arg, status): authors = ['Lucas Cimon'] [tool.poetry.dependencies] - python = "^3.7" + python = "^3.8" # Poetry 1.2.0 style [tool.poetry.group.dev.dependencies]