Skip to content

Commit

Permalink
require Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
samschott committed Nov 9, 2023
1 parent e9a0027 commit f3e9ae6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ sources = ["src/maestral_cocoa"]
requires = [
"chardet==5.1.0",
"click==8.1.3",
"importlib_metadata;python_version<'3.8'",
"maestral==1.8.1.dev0",
"markdown2==2.4.8",
"rubicon-objc==0.4.6",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ install_requires =
markdown2
toga==0.3.1
rubicon-objc>=0.4.5
python_requires = >=3.7
python_requires = >=3.8

[options.packages.find]
where = src
Expand Down
2 changes: 1 addition & 1 deletion src/maestral_cocoa/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# system imports
import sys

from importlib_metadata import metadata
from importlib.metadata import metadata


# detect if we have been built with briefcase or frozen with PyInstaller
Expand Down
2 changes: 2 additions & 0 deletions src/maestral_cocoa/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
try:
# Python 3.9 and later
from importlib.resources import as_file, files # type: ignore

def resource_path(name: str) -> str:
return str(files("maestral_cocoa.resources") / name)

except ImportError:
# Python 3.8
from importlib.resources import path # type: ignore

def resource_path(name: str) -> str:
Expand Down

0 comments on commit f3e9ae6

Please sign in to comment.