From c44957445a431a0a06f752a666f8d80f9dabec04 Mon Sep 17 00:00:00 2001 From: Mike Gouline <1960272+gouline@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:04:57 +1100 Subject: [PATCH] Minimum Python 3.8 and update build tools --- .github/workflows/master.yml | 2 +- .github/workflows/pull_request.yml | 2 +- README.md | 2 +- requirements-test.txt | 12 ++++++------ setup.py | 5 ++--- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 663b314..88aa87d 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: "3.7.16" + python-version: "3.8.18" - name: Requirements run: make requirements diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index db8d740..192975e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: "3.7.16" + python-version: "3.8.18" - uses: actions/cache@v2 with: diff --git a/README.md b/README.md index a353bb2..5762445 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Metabase data model. ## Requirements -Requires Python 3.7 or above. +Requires Python 3.8 or above. ## Main Features diff --git a/requirements-test.txt b/requirements-test.txt index 53b0097..9cba6a3 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,9 +1,9 @@ pip>=23.3.1 -setuptools>=68 -wheel -pylint>=2.17.7 -mypy>=1.4.1 +setuptools>=69.0.2 +wheel>=0.42.0 +pylint>=3.0.2 +mypy>=1.7.1 types-requests types-PyYAML -black>=23.3.0 -isort>=5.11.5 +black>=23.11.0 +isort>=5.12.0 diff --git a/setup.py b/setup.py index 08c7289..2a1e8de 100755 --- a/setup.py +++ b/setup.py @@ -4,8 +4,8 @@ from setuptools import find_packages, setup -if sys.version_info < (3, 7): - raise ValueError("Requires Python 3.7+") +if sys.version_info < (3, 8): + raise ValueError("Requires Python 3.8+") def requires_from_file(filename: str) -> list: @@ -39,7 +39,6 @@ def requires_from_file(filename: str) -> list: "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Topic :: Software Development :: Libraries",