Skip to content

Commit

Permalink
Minimum Python 3.7 and update build tools (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline authored Dec 8, 2023
1 parent ad7dc87 commit 80bffda
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: "3.6.x"
python-version: "3.7.16"

- name: Requirements
run: make requirements
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: "3.6.x"
python-version: "3.7.16"

- uses: actions/cache@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Metabase data model.

## Requirements

Requires Python 3.6 or above.
Requires Python 3.7 or above.

## Main Features

Expand Down
11 changes: 6 additions & 5 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
setuptools>=45
pip>=23.3.1
setuptools>=68
wheel
pylint>=2.13.9
mypy>=0.971
pylint>=2.17.7
mypy>=1.4.1
types-requests
types-PyYAML
black>=22.8.0
isort>=5.10.1
black>=23.3.0
isort>=5.11.5
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from setuptools import find_packages, setup

if sys.version_info < (3, 6):
raise ValueError("Requires Python 3.6+")
if sys.version_info < (3, 7):
raise ValueError("Requires Python 3.7+")


def requires_from_file(filename: str) -> list:
Expand Down Expand Up @@ -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.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down

0 comments on commit 80bffda

Please sign in to comment.