Skip to content

Commit

Permalink
Only use tomli in python<3.11 (#100)
Browse files Browse the repository at this point in the history
Also exclude python 3.7 on Windows from CI test matrix, because this test env doesn't seem to work properly.


Co-authored-by: KotlinIsland <kotlinisland@users.noreply.github.com>
Co-authored-by: Nat Noordanus <n@natn.me>
  • Loading branch information
3 people committed Nov 13, 2022
1 parent 6924b81 commit 53083b5
Show file tree
Hide file tree
Showing 4 changed files with 429 additions and 359 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -39,6 +39,10 @@ jobs:
matrix:
os: [Ubuntu, MacOS, Windows]
python-version: ['3.7', '3.8', '3.9', '3.10']
# TODO: remove this when apparent issue with GitHub actions is fixed
exclude:
- os: Windows
python-version: '3.7'
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 5 additions & 1 deletion poethepoet/config.py
@@ -1,6 +1,10 @@
import json
from pathlib import Path
import tomli

try:
import tomllib as tomli
except ImportError:
import tomli # type: ignore
from typing import Any, Dict, Mapping, Optional, Sequence, Tuple, Union
from .exceptions import PoeException

Expand Down

0 comments on commit 53083b5

Please sign in to comment.