Skip to content

Commit

Permalink
Chore: Verify support for Python>=3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Apr 23, 2024
1 parent 2d7f44d commit 8e50e67
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.12"]
os: ["ubuntu-20.04"]
python-version: ["3.6", "3.12"]
fail-fast: false

env:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
# `setuptools 0.64.0` adds support for editable install hooks (PEP 660).
# https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400
pip install "setuptools>=64" --upgrade
pip install pip setuptools --upgrade
# Install package in editable mode.
pip install --use-pep517 --prefer-binary --editable=.[test,develop]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ format = [
]

lint = [
{ cmd = "ruff check ." },
{ shell = "ruff check . || true" },
# { cmd = "black --check ." },
{ cmd = "validate-pyproject pyproject.toml" },
{ cmd = "mypy" },
Expand Down
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"black<25",
"mypy<1.10",
"poethepoet<0.26",
"pyproject-fmt<1.8",
"ruff<0.5",
"pyproject-fmt<1.8; python_version>='3.7'",
"ruff<0.5; python_version>='3.7'",
"validate-pyproject<0.17",
],
"test": [
"grafana-dashboard==0.1.1",
"grafana-dashboard==0.1.1; python_version>='3.7'",
"pydantic<2",
"pytest<9",
"pytest-cov<6",
Expand Down Expand Up @@ -67,6 +67,9 @@
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down

0 comments on commit 8e50e67

Please sign in to comment.