Skip to content

Commit

Permalink
fix: use version.py for versioning (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha-gitg committed Oct 29, 2021
1 parent 33add34 commit 514031f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
12 changes: 9 additions & 3 deletions google/cloud/aiplatform/__init__.py
Expand Up @@ -15,27 +15,33 @@
# limitations under the License.
#

from google.cloud.aiplatform import gapic
from google.cloud.aiplatform import explain

from google.cloud.aiplatform import version as aiplatform_version

__version__ = aiplatform_version.__version__


from google.cloud.aiplatform import initializer

from google.cloud.aiplatform.datasets import (
ImageDataset,
TabularDataset,
TextDataset,
TimeSeriesDataset,
VideoDataset,
)
from google.cloud.aiplatform import explain
from google.cloud.aiplatform import gapic
from google.cloud.aiplatform import hyperparameter_tuning
from google.cloud.aiplatform.metadata import metadata
from google.cloud.aiplatform.models import Endpoint
from google.cloud.aiplatform.models import Model
from google.cloud.aiplatform.pipeline_jobs import PipelineJob
from google.cloud.aiplatform.jobs import (
BatchPredictionJob,
CustomJob,
HyperparameterTuningJob,
)
from google.cloud.aiplatform.pipeline_jobs import PipelineJob
from google.cloud.aiplatform.tensorboard import Tensorboard
from google.cloud.aiplatform.training_jobs import (
CustomTrainingJob,
Expand Down
18 changes: 18 additions & 0 deletions google/cloud/aiplatform/version.py
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-

# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

__version__ = "1.6.1"
8 changes: 6 additions & 2 deletions setup.py
Expand Up @@ -21,14 +21,18 @@
import setuptools # type: ignore

name = "google-cloud-aiplatform"
version = "1.6.1"
description = "Cloud AI Platform API client library"
description = "Vertex AI API client library"

package_root = os.path.abspath(os.path.dirname(__file__))
readme_filename = os.path.join(package_root, "README.rst")
with io.open(readme_filename, encoding="utf-8") as readme_file:
readme = readme_file.read()

version = {}
with open(os.path.join(package_root, "google/cloud/aiplatform/version.py")) as fp:
exec(fp.read(), version)
version = version["__version__"]

tensorboard_extra_require = ["tensorflow >=2.3.0, <=2.5.0"]
metadata_extra_require = ["pandas >= 1.0.0"]
xai_extra_require = ["tensorflow >=2.3.0, <=2.5.0"]
Expand Down

0 comments on commit 514031f

Please sign in to comment.