Skip to content

Commit 4d8d40e

Browse files
committed
Add setup_base to all packages.
1 parent c524bbe commit 4d8d40e

43 files changed

Lines changed: 57 additions & 348 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*.egg
99
*.egg-info
1010
dist
11-
*/setup_base
1211
build
1312
eggs
1413
parts

bigquery/setup.py

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,14 @@
1717
from setuptools import find_packages
1818
from setuptools import setup
1919

20+
from setup_base.base import SETUP_BASE
21+
2022

2123
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
2224

2325
with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
2426
README = file_obj.read()
2527

26-
# NOTE: This is duplicated throughout and we should try to
27-
# 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-
51-
5228
REQUIREMENTS = [
5329
'google-cloud-core',
5430
]

bigquery/setup_base

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../setup_base

bigtable/MANIFEST.in

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

bigtable/setup.py

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,14 @@
1717
from setuptools import find_packages
1818
from setuptools import setup
1919

20+
from setup_base.base import SETUP_BASE
21+
2022

2123
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
2224

2325
with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
2426
README = file_obj.read()
2527

26-
# NOTE: This is duplicated throughout and we should try to
27-
# 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-
51-
5228
REQUIREMENTS = [
5329
'google-cloud-core',
5430
'grpcio >= 1.0.0',

bigtable/setup_base

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../setup_base

core/MANIFEST.in

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

core/setup.py

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,14 @@
1717
from setuptools import find_packages
1818
from setuptools import setup
1919

20+
from setup_base.base import SETUP_BASE
21+
2022

2123
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
2224

2325
with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
2426
README = file_obj.read()
2527

26-
# NOTE: This is duplicated throughout and we should try to
27-
# 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-
51-
5228
REQUIREMENTS = [
5329
'httplib2 >= 0.9.1',
5430
'googleapis-common-protos >= 1.3.4',

core/setup_base

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../setup_base

datastore/MANIFEST.in

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

0 commit comments

Comments
 (0)