File tree Expand file tree Collapse file tree 3 files changed +13
-21
lines changed
Expand file tree Collapse file tree 3 files changed +13
-21
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Copyright 2021-2022 Toyota Research Institute. All rights reserved.
22import os
33
4- __version__ = "1.6.0 "
4+ __version__ = "2.0.1 "
55
66DGP_PATH = os .getenv ("DGP_PATH" , default = os .getenv ("HOME" , os .getcwd ()))
77DGP_DATA_DIR = os .path .join (DGP_PATH , ".dgp" )
Original file line number Diff line number Diff line change 11# Copyright 2025 Toyota Research Institute. All rights reserved.
2+ import importlib .util
23import logging
34import os
45from pathlib import Path
1011
1112logger = logging .getLogger (__file__ )
1213
13- __version__ = "2.0.0"
14-
14+ _PACKAGE = "dgp"
1515_ROOT_DIRPATH = Path (__file__ ).parent .absolute ()
1616
17+ _init_py = _ROOT_DIRPATH / _PACKAGE / "__init__.py"
18+ _spec = importlib .util .spec_from_file_location (_PACKAGE , _init_py )
19+ _module = importlib .util .module_from_spec (_spec )
20+ _spec .loader .exec_module (_module )
21+
22+ __version__ = _module .__version__
23+
1724# Specify the dev version for development.
1825_DEV_VERSION = str (os .environ .get ("DGP_DEV_VERSION" , "" ))
1926
3037]
3138setup_requires = [
3239 "protobuf>=4.0.0,<5.0.0" ,
33- "grpcio-tools<1.66.0" , # for protobuf 4.X.X support.
40+ "grpcio==1.62.2" , # for the latest protobuf 4.X.X support.
41+ "grpcio-tools==1.62.2" , # for the latest protobuf 4.X.X support.
3442]
3543
3644
@@ -61,7 +69,7 @@ def run(self):
6169packages = find_packages (exclude = ["tests" ])
6270
6371setup (
64- name = "dgp" ,
72+ name = _PACKAGE ,
6573 version = _VERSION ,
6674 description = "Dataset Governance Policy (DGP) for Autonomous Vehicle ML datasets." ,
6775 long_description = open ("README.md" , encoding = "utf-8" ).read (),
You can’t perform that action at this time.
0 commit comments