Skip to content

Commit

Permalink
Increase minimum python version to 3.8 and bump zod version
Browse files Browse the repository at this point in the history
  • Loading branch information
atonderski committed Apr 22, 2024
1 parent 122dd9f commit b50cc2d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zod"
version = "0.4.0"
version = "0.5.0"
description = "Zenseact Open Dataset"
authors = ["Zenseact <opendataset@zenseact.com>"]
license = "MIT"
Expand All @@ -12,7 +12,7 @@ repository = "https://github.com/zenseact/zod"
zod = "zod.cli.main:app"

[tool.poetry.dependencies]
python = "^3.7.1"
python = "^3.8"
tqdm = ">=4.60"
numpy = "^1.19"
scipy = "^1.5"
Expand All @@ -21,15 +21,13 @@ h5py = ">=3.1"
pyquaternion = ">=0.9"
numpy-quaternion = ">=2022.4.2"
dataclass-wizard = ">=0.22.2"
importlib-metadata = { version = "*", python = "<3.8" }
typing-extensions = { version = "*", python = "<3.8" }
# Optional dependencies
typer = { extras = ["all"], version = ">=0.7.0", optional = true }
dropbox = { version = ">=11.36.0", optional = true }
opencv-python = { version = ">=4", optional = true }
matplotlib = { version = ">=3", optional = true }
opencv-python = { version = "^4", optional = true }
matplotlib = { version = "^3", optional = true }
plotly = { version = "^5", optional = true }
dash-bootstrap-components = { version = ">=1.1", optional = true }
dash-bootstrap-components = { version = "^1.1", optional = true }
pandas = { version = "^1.3", optional = true }
notebook = { version = ">=5", optional = true }
imageio = { version = "^2", optional = true }
Expand Down
9 changes: 2 additions & 7 deletions zod/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Top-level package for Zenseact Open Dataset (ZOD)."""

import importlib.metadata as importlib_metadata

from ._zod_dataset import ZodDataset as ZodDataset # For type hinting
from .anno.ego_road import EgoRoadAnnotation as EgoRoadAnnotation
from .anno.lane import LaneAnnotation as LaneAnnotation
Expand All @@ -16,13 +18,6 @@
from .zod_frames import ZodFrames as ZodFrames
from .zod_sequences import ZodSequences as ZodSequences

try:
# importlib.metadata is present in Python 3.8 and later
import importlib.metadata as importlib_metadata
except ImportError:
# use the shim package importlib-metadata pre-3.8
import importlib_metadata as importlib_metadata

try:
__version__ = importlib_metadata.version(__package__ or __name__)
except importlib_metadata.PackageNotFoundError:
Expand Down
8 changes: 1 addition & 7 deletions zod/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

import typing
from enum import Enum
from typing import Union

# Python 3.7 compatibility
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal
from typing import Literal, Union

# Dataset paths
FRAMES = "single_frames"
Expand Down

0 comments on commit b50cc2d

Please sign in to comment.