Skip to content

Commit

Permalink
Support pyproject.toml features with older python
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm committed Apr 16, 2024
1 parent ba314a8 commit 8594c36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ env:
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
version: [3.10, 3.11, 3.12]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version-file: .python-version
python-version-file: ${{ matrix.version }}

- name: Install Dependencies
run: make install
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ authors = [{"name" = "Robert Hafner"}]
dependencies = [
"pydot",
"sqlalchemy",
"typer"
"typer",
"toml; python_version < '3.11'",
]
description = ""
dynamic = ["version"]
Expand All @@ -27,7 +28,7 @@ dev = [
"pytest-pretty",
"ruamel.yaml",
"ruff",
"toml-sort"
"toml-sort",
]

[project.scripts]
Expand Down

0 comments on commit 8594c36

Please sign in to comment.