Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(馃巵) only use tomli in python<3.11 #100

Merged
merged 3 commits into from Nov 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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