Skip to content

Commit b50cc2d

Browse files
committed
Increase minimum python version to 3.8 and bump zod version
1 parent 122dd9f commit b50cc2d

File tree

3 files changed

+8
-21
lines changed

3 files changed

+8
-21
lines changed

pyproject.toml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "zod"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
description = "Zenseact Open Dataset"
55
authors = ["Zenseact <opendataset@zenseact.com>"]
66
license = "MIT"
@@ -12,7 +12,7 @@ repository = "https://github.com/zenseact/zod"
1212
zod = "zod.cli.main:app"
1313

1414
[tool.poetry.dependencies]
15-
python = "^3.7.1"
15+
python = "^3.8"
1616
tqdm = ">=4.60"
1717
numpy = "^1.19"
1818
scipy = "^1.5"
@@ -21,15 +21,13 @@ h5py = ">=3.1"
2121
pyquaternion = ">=0.9"
2222
numpy-quaternion = ">=2022.4.2"
2323
dataclass-wizard = ">=0.22.2"
24-
importlib-metadata = { version = "*", python = "<3.8" }
25-
typing-extensions = { version = "*", python = "<3.8" }
2624
# Optional dependencies
2725
typer = { extras = ["all"], version = ">=0.7.0", optional = true }
2826
dropbox = { version = ">=11.36.0", optional = true }
29-
opencv-python = { version = ">=4", optional = true }
30-
matplotlib = { version = ">=3", optional = true }
27+
opencv-python = { version = "^4", optional = true }
28+
matplotlib = { version = "^3", optional = true }
3129
plotly = { version = "^5", optional = true }
32-
dash-bootstrap-components = { version = ">=1.1", optional = true }
30+
dash-bootstrap-components = { version = "^1.1", optional = true }
3331
pandas = { version = "^1.3", optional = true }
3432
notebook = { version = ">=5", optional = true }
3533
imageio = { version = "^2", optional = true }

zod/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Top-level package for Zenseact Open Dataset (ZOD)."""
22

3+
import importlib.metadata as importlib_metadata
4+
35
from ._zod_dataset import ZodDataset as ZodDataset # For type hinting
46
from .anno.ego_road import EgoRoadAnnotation as EgoRoadAnnotation
57
from .anno.lane import LaneAnnotation as LaneAnnotation
@@ -16,13 +18,6 @@
1618
from .zod_frames import ZodFrames as ZodFrames
1719
from .zod_sequences import ZodSequences as ZodSequences
1820

19-
try:
20-
# importlib.metadata is present in Python 3.8 and later
21-
import importlib.metadata as importlib_metadata
22-
except ImportError:
23-
# use the shim package importlib-metadata pre-3.8
24-
import importlib_metadata as importlib_metadata
25-
2621
try:
2722
__version__ = importlib_metadata.version(__package__ or __name__)
2823
except importlib_metadata.PackageNotFoundError:

zod/constants.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
import typing
44
from enum import Enum
5-
from typing import Union
6-
7-
# Python 3.7 compatibility
8-
try:
9-
from typing import Literal
10-
except ImportError:
11-
from typing_extensions import Literal
5+
from typing import Literal, Union
126

137
# Dataset paths
148
FRAMES = "single_frames"

0 commit comments

Comments
 (0)