Skip to content

Commit

Permalink
Depend on tomli on Python 3.10 re #11114
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored and chiatt committed Aug 6, 2024
1 parent 0ad64d5 commit d52a3bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions arches/apps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import tomllib
import warnings
from importlib.metadata import PackageNotFoundError, requires
from pathlib import Path
Expand All @@ -9,9 +8,14 @@
from semantic_version import SimpleSpec, Version

from arches import __version__

from arches.settings_utils import generate_frontend_configuration

try:
import tomllib # Python 3.11+
except ImportError:
# Python 3.10 depends on tomli instead
import tomli as tomllib


class ArchesAppConfig(AppConfig):
name = "arches"
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ dependencies = [
"requests[security]>=2.31.0",
"semantic-version==2.10.0",
"SPARQLWrapper==1.8.5",
"tomli==2.0.1;python_version<'3.11'",
"tzdata==2023.3",
"urllib3<2",
]
Expand Down
2 changes: 1 addition & 1 deletion releases/7.6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Python:
Added:
django-hosts
tomli (on Python 3.10 only) == 2.0.1
(dev dependencies):
pre-commit
black
Expand Down

0 comments on commit d52a3bd

Please sign in to comment.