File tree 3 files changed +23
-3
lines changed
3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 28
28
"""
29
29
30
30
31
- from pkg_resources import get_distribution
31
+ from google . cloud . bigquery import version as bigquery_version
32
32
33
- __version__ = get_distribution ( "google-cloud-bigquery" ). version
33
+ __version__ = bigquery_version . __version__
34
34
35
35
from google .cloud .bigquery .client import Client
36
36
from google .cloud .bigquery .dataset import AccessEntry
Original file line number Diff line number Diff line change
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ __version__ = "2.1.0"
Original file line number Diff line number Diff line change 22
22
23
23
name = "google-cloud-bigquery"
24
24
description = "Google BigQuery API client library"
25
- version = "2.1.0"
25
+
26
26
# Should be one of:
27
27
# 'Development Status :: 3 - Alpha'
28
28
# 'Development Status :: 4 - Beta'
83
83
with io .open (readme_filename , encoding = "utf-8" ) as readme_file :
84
84
readme = readme_file .read ()
85
85
86
+ version = {}
87
+ with open (os .path .join (package_root , "google/cloud/bigquery/version.py" )) as fp :
88
+ exec (fp .read (), version )
89
+ version = version ["__version__" ]
90
+
86
91
# Only include packages under the 'google' namespace. Do not include tests,
87
92
# benchmarks, etc.
88
93
packages = [
You can’t perform that action at this time.
0 commit comments