File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 3131 machine).
3232"""
3333
34- import pkg_resources
35-
36- try :
37- __version__ = pkg_resources .get_distribution ("google-cloud-storage" ).version
38- except pkg_resources .DistributionNotFound :
39- __version__ = None
40-
34+ from google .cloud .storage import __version__
4135from google .cloud .storage .batch import Batch
4236from google .cloud .storage .blob import Blob
4337from google .cloud .storage .bucket import Bucket
Original file line number Diff line number Diff line change 2222
2323name = "google-cloud-storage"
2424description = "Google Cloud Storage API client library"
25- version = "1.31.2"
2625# Should be one of:
2726# 'Development Status :: 3 - Alpha'
2827# 'Development Status :: 4 - Beta'
4140
4241package_root = os .path .abspath (os .path .dirname (__file__ ))
4342
43+ version = {}
44+ with open ("google/cloud/datastore/version.py" ) as fp :
45+ exec (fp .read (), version )
46+ version = version ["__version__" ]
47+
4448readme_filename = os .path .join (package_root , "README.rst" )
4549with io .open (readme_filename , encoding = "utf-8" ) as readme_file :
4650 readme = readme_file .read ()
You can’t perform that action at this time.
0 commit comments