Skip to content

Commit b4fcfbd

Browse files
committed
Just add storage as a POC for #2395.
1 parent fdbd094 commit b4fcfbd

6 files changed

Lines changed: 26 additions & 46 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*.egg
99
*.egg-info
1010
dist
11+
*/setup_base
1112
build
1213
eggs
1314
parts

setup.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,7 @@
2525

2626
# NOTE: This is duplicated throughout and we should try to
2727
# consolidate.
28-
SETUP_BASE = {
29-
'author': 'Google Cloud Platform',
30-
'author_email': 'jjg+google-cloud-python@google.com',
31-
'scripts': [],
32-
'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python',
33-
'license': 'Apache 2.0',
34-
'platforms': 'Posix; MacOS X; Windows',
35-
'include_package_data': True,
36-
'zip_safe': False,
37-
'classifiers': [
38-
'Development Status :: 4 - Beta',
39-
'Intended Audience :: Developers',
40-
'License :: OSI Approved :: Apache Software License',
41-
'Operating System :: OS Independent',
42-
'Programming Language :: Python :: 2',
43-
'Programming Language :: Python :: 2.7',
44-
'Programming Language :: Python :: 3',
45-
'Programming Language :: Python :: 3.4',
46-
'Programming Language :: Python :: 3.5',
47-
'Topic :: Internet',
48-
],
49-
}
50-
28+
from setup_base import SETUP_BASE
5129

5230
REQUIREMENTS = [
5331
'google-cloud-bigquery >= 0.20.0',

setup_base/__init__.py

Whitespace-only changes.

setup_base/base.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
SETUP_BASE = {
2+
'author': 'Google Cloud Platform',
3+
'author_email': 'jjg+google-cloud-python@google.com',
4+
'scripts': [],
5+
'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python',
6+
'license': 'Apache 2.0',
7+
'platforms': 'Posix; MacOS X; Windows',
8+
'include_package_data': True,
9+
'zip_safe': False,
10+
'classifiers': [
11+
'Development Status :: 4 - Beta',
12+
'Intended Audience :: Developers',
13+
'License :: OSI Approved :: Apache Software License',
14+
'Operating System :: OS Independent',
15+
'Programming Language :: Python :: 2',
16+
'Programming Language :: Python :: 2.7',
17+
'Programming Language :: Python :: 3',
18+
'Programming Language :: Python :: 3.4',
19+
'Programming Language :: Python :: 3.5',
20+
'Topic :: Internet',
21+
],
22+
}

storage/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include README.rst
22
graft google
3+
include ../setup_base.py
34
graft unit_tests
45
global-exclude *.pyc

storage/setup.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,7 @@
2525

2626
# NOTE: This is duplicated throughout and we should try to
2727
# consolidate.
28-
SETUP_BASE = {
29-
'author': 'Google Cloud Platform',
30-
'author_email': 'jjg+google-cloud-python@google.com',
31-
'scripts': [],
32-
'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python',
33-
'license': 'Apache 2.0',
34-
'platforms': 'Posix; MacOS X; Windows',
35-
'include_package_data': True,
36-
'zip_safe': False,
37-
'classifiers': [
38-
'Development Status :: 4 - Beta',
39-
'Intended Audience :: Developers',
40-
'License :: OSI Approved :: Apache Software License',
41-
'Operating System :: OS Independent',
42-
'Programming Language :: Python :: 2',
43-
'Programming Language :: Python :: 2.7',
44-
'Programming Language :: Python :: 3',
45-
'Programming Language :: Python :: 3.4',
46-
'Programming Language :: Python :: 3.5',
47-
'Topic :: Internet',
48-
],
49-
}
50-
28+
from setup_base.base import SETUP_BASE
5129

5230
REQUIREMENTS = [
5331
'google-cloud-core >= 0.20.0',

0 commit comments

Comments
 (0)