Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions build_proto.py

This file was deleted.

2 changes: 1 addition & 1 deletion dgp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2021-2022 Toyota Research Institute. All rights reserved.
import os

__version__ = "1.6.0"
__version__ = "2.0.1"

DGP_PATH = os.getenv("DGP_PATH", default=os.getenv("HOME", os.getcwd()))
DGP_DATA_DIR = os.path.join(DGP_PATH, ".dgp")
Expand Down
16 changes: 12 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2025 Toyota Research Institute. All rights reserved.
import importlib.util
import logging
import os
from pathlib import Path
Expand All @@ -10,10 +11,16 @@

logger = logging.getLogger(__file__)

__version__ = "2.0.0"

_PACKAGE = "dgp"
_ROOT_DIRPATH = Path(__file__).parent.absolute()

_init_py = _ROOT_DIRPATH / _PACKAGE / "__init__.py"
_spec = importlib.util.spec_from_file_location(_PACKAGE, _init_py)
_module = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(_module)

__version__ = _module.__version__

# Specify the dev version for development.
_DEV_VERSION = str(os.environ.get("DGP_DEV_VERSION", ""))

Expand All @@ -30,7 +37,8 @@
]
setup_requires = [
"protobuf>=4.0.0,<5.0.0",
"grpcio-tools<1.66.0", # for protobuf 4.X.X support.
"grpcio==1.62.2", # for the latest protobuf 4.X.X support.
"grpcio-tools==1.62.2", # for the latest protobuf 4.X.X support.
]


Expand Down Expand Up @@ -61,7 +69,7 @@ def run(self):
packages = find_packages(exclude=["tests"])

setup(
name="dgp",
name=_PACKAGE,
version=_VERSION,
description="Dataset Governance Policy (DGP) for Autonomous Vehicle ML datasets.",
long_description=open("README.md", encoding="utf-8").read(),
Expand Down
Loading