INNER CODE UNIT · Python
get_version
Squarespace/datasheets · setup.py:11
def get_version():
""" Based on the functionality in pallets/click's setup.py
(https://github.com/pallets/click/blob/master/setup.py) """
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('datasheets/__init__.py', 'rb') as f:
lines = f.read().decode('utf-8')
version = ensure_one_level_of_quotes(_version_re.search(lines).group(1))
return version
required = [
'google_auth',
'google_auth_oauthlib',
'pandas',
'numpy',
'google-api-python-client>=1.5.4',
'six>=1.10.0', # required by google-api-python-client but not installed by it
'httplib2!=0.10.2', # Skip 0.10.2 becauses it causes httplib2.CertificateValidationUnsupported error