Skip to content

Commit 1c5caef

Browse files
author
Jon Wayne Parrott
committed
Moving gcloud.bigtable.happybase into third_party/
1 parent 77123bb commit 1c5caef

File tree

13 files changed

+225
-1
lines changed

13 files changed

+225
-1
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include README.rst
22
graft gcloud
3+
graft third_party
34
global-exclude *.pyc

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
'gax-google-pubsub-v1',
2424
]
2525

26+
THIRD_PARTY_PACKAGES = {
27+
'gcloud.bigtable.happybase': 'third_party/happybase'
28+
}
29+
30+
2631
setup(
2732
name='gcloud',
2833
version='0.13.0',
@@ -32,7 +37,8 @@
3237
long_description=README,
3338
scripts=[],
3439
url='https://github.com/GoogleCloudPlatform/gcloud-python',
35-
packages=find_packages(),
40+
packages=find_packages() + list(THIRD_PARTY_PACKAGES.keys()),
41+
package_dir=THIRD_PARTY_PACKAGES,
3642
license='Apache 2.0',
3743
platforms='Posix; MacOS X; Windows',
3844
include_package_data=True,

third_party/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This directory contains third-party code included in the gcloud-python distribution. Code here may be under a different license than gcloud-python's license. Refer to LICENSE under individual directories.

third_party/happybase/LICENSE

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
*******
2+
License
3+
*******
4+
5+
HappyBase itself is licensed under a `MIT License
6+
<http://www.opensource.org/licenses/MIT>`_. HappyBase contains code originating
7+
from HBase sources, licensed under the `Apache License
8+
<http://www.apache.org/licenses/>`_ (version 2.0). Both license texts are
9+
included below.
10+
11+
12+
HappyBase License
13+
=================
14+
15+
(This is the `MIT License <http://www.opensource.org/licenses/MIT>`_.)
16+
17+
Copyright © 2012 Wouter Bolsterlee
18+
19+
Permission is hereby granted, free of charge, to any person obtaining a copy of
20+
this software and associated documentation files (the "Software"), to deal in
21+
the Software without restriction, including without limitation the rights to
22+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
23+
of the Software, and to permit persons to whom the Software is furnished to do
24+
so, subject to the following conditions:
25+
26+
The above copyright notice and this permission notice shall be included in all
27+
copies or substantial portions of the Software.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35+
SOFTWARE.
36+
37+
38+
39+
HBase License
40+
=============
41+
42+
(This is the `Apache License <http://www.apache.org/licenses/>`_, version 2.0,
43+
January 2004.)
44+
45+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
46+
47+
1. Definitions.
48+
49+
"License" shall mean the terms and conditions for use, reproduction,
50+
and distribution as defined by Sections 1 through 9 of this document.
51+
52+
"Licensor" shall mean the copyright owner or entity authorized by
53+
the copyright owner that is granting the License.
54+
55+
"Legal Entity" shall mean the union of the acting entity and all
56+
other entities that control, are controlled by, or are under common
57+
control with that entity. For the purposes of this definition,
58+
"control" means (i) the power, direct or indirect, to cause the
59+
direction or management of such entity, whether by contract or
60+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
61+
outstanding shares, or (iii) beneficial ownership of such entity.
62+
63+
"You" (or "Your") shall mean an individual or Legal Entity
64+
exercising permissions granted by this License.
65+
66+
"Source" form shall mean the preferred form for making modifications,
67+
including but not limited to software source code, documentation
68+
source, and configuration files.
69+
70+
"Object" form shall mean any form resulting from mechanical
71+
transformation or translation of a Source form, including but
72+
not limited to compiled object code, generated documentation,
73+
and conversions to other media types.
74+
75+
"Work" shall mean the work of authorship, whether in Source or
76+
Object form, made available under the License, as indicated by a
77+
copyright notice that is included in or attached to the work
78+
(an example is provided in the Appendix below).
79+
80+
"Derivative Works" shall mean any work, whether in Source or Object
81+
form, that is based on (or derived from) the Work and for which the
82+
editorial revisions, annotations, elaborations, or other modifications
83+
represent, as a whole, an original work of authorship. For the purposes
84+
of this License, Derivative Works shall not include works that remain
85+
separable from, or merely link (or bind by name) to the interfaces of,
86+
the Work and Derivative Works thereof.
87+
88+
"Contribution" shall mean any work of authorship, including
89+
the original version of the Work and any modifications or additions
90+
to that Work or Derivative Works thereof, that is intentionally
91+
submitted to Licensor for inclusion in the Work by the copyright owner
92+
or by an individual or Legal Entity authorized to submit on behalf of
93+
the copyright owner. For the purposes of this definition, "submitted"
94+
means any form of electronic, verbal, or written communication sent
95+
to the Licensor or its representatives, including but not limited to
96+
communication on electronic mailing lists, source code control systems,
97+
and issue tracking systems that are managed by, or on behalf of, the
98+
Licensor for the purpose of discussing and improving the Work, but
99+
excluding communication that is conspicuously marked or otherwise
100+
designated in writing by the copyright owner as "Not a Contribution."
101+
102+
"Contributor" shall mean Licensor and any individual or Legal Entity
103+
on behalf of whom a Contribution has been received by Licensor and
104+
subsequently incorporated within the Work.
105+
106+
2. Grant of Copyright License. Subject to the terms and conditions of
107+
this License, each Contributor hereby grants to You a perpetual,
108+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
109+
copyright license to reproduce, prepare Derivative Works of,
110+
publicly display, publicly perform, sublicense, and distribute the
111+
Work and such Derivative Works in Source or Object form.
112+
113+
3. Grant of Patent License. Subject to the terms and conditions of
114+
this License, each Contributor hereby grants to You a perpetual,
115+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
116+
(except as stated in this section) patent license to make, have made,
117+
use, offer to sell, sell, import, and otherwise transfer the Work,
118+
where such license applies only to those patent claims licensable
119+
by such Contributor that are necessarily infringed by their
120+
Contribution(s) alone or by combination of their Contribution(s)
121+
with the Work to which such Contribution(s) was submitted. If You
122+
institute patent litigation against any entity (including a
123+
cross-claim or counterclaim in a lawsuit) alleging that the Work
124+
or a Contribution incorporated within the Work constitutes direct
125+
or contributory patent infringement, then any patent licenses
126+
granted to You under this License for that Work shall terminate
127+
as of the date such litigation is filed.
128+
129+
4. Redistribution. You may reproduce and distribute copies of the
130+
Work or Derivative Works thereof in any medium, with or without
131+
modifications, and in Source or Object form, provided that You
132+
meet the following conditions:
133+
134+
(a) You must give any other recipients of the Work or
135+
Derivative Works a copy of this License; and
136+
137+
(b) You must cause any modified files to carry prominent notices
138+
stating that You changed the files; and
139+
140+
(c) You must retain, in the Source form of any Derivative Works
141+
that You distribute, all copyright, patent, trademark, and
142+
attribution notices from the Source form of the Work,
143+
excluding those notices that do not pertain to any part of
144+
the Derivative Works; and
145+
146+
(d) If the Work includes a "NOTICE" text file as part of its
147+
distribution, then any Derivative Works that You distribute must
148+
include a readable copy of the attribution notices contained
149+
within such NOTICE file, excluding those notices that do not
150+
pertain to any part of the Derivative Works, in at least one
151+
of the following places: within a NOTICE text file distributed
152+
as part of the Derivative Works; within the Source form or
153+
documentation, if provided along with the Derivative Works; or,
154+
within a display generated by the Derivative Works, if and
155+
wherever such third-party notices normally appear. The contents
156+
of the NOTICE file are for informational purposes only and
157+
do not modify the License. You may add Your own attribution
158+
notices within Derivative Works that You distribute, alongside
159+
or as an addendum to the NOTICE text from the Work, provided
160+
that such additional attribution notices cannot be construed
161+
as modifying the License.
162+
163+
You may add Your own copyright statement to Your modifications and
164+
may provide additional or different license terms and conditions
165+
for use, reproduction, or distribution of Your modifications, or
166+
for any such Derivative Works as a whole, provided Your use,
167+
reproduction, and distribution of the Work otherwise complies with
168+
the conditions stated in this License.
169+
170+
5. Submission of Contributions. Unless You explicitly state otherwise,
171+
any Contribution intentionally submitted for inclusion in the Work
172+
by You to the Licensor shall be under the terms and conditions of
173+
this License, without any additional terms or conditions.
174+
Notwithstanding the above, nothing herein shall supersede or modify
175+
the terms of any separate license agreement you may have executed
176+
with Licensor regarding such Contributions.
177+
178+
6. Trademarks. This License does not grant permission to use the trade
179+
names, trademarks, service marks, or product names of the Licensor,
180+
except as required for reasonable and customary use in describing the
181+
origin of the Work and reproducing the content of the NOTICE file.
182+
183+
7. Disclaimer of Warranty. Unless required by applicable law or
184+
agreed to in writing, Licensor provides the Work (and each
185+
Contributor provides its Contributions) on an "AS IS" BASIS,
186+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
187+
implied, including, without limitation, any warranties or conditions
188+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
189+
PARTICULAR PURPOSE. You are solely responsible for determining the
190+
appropriateness of using or redistributing the Work and assume any
191+
risks associated with Your exercise of permissions under this License.
192+
193+
8. Limitation of Liability. In no event and under no legal theory,
194+
whether in tort (including negligence), contract, or otherwise,
195+
unless required by applicable law (such as deliberate and grossly
196+
negligent acts) or agreed to in writing, shall any Contributor be
197+
liable to You for damages, including any direct, indirect, special,
198+
incidental, or consequential damages of any character arising as a
199+
result of this License or out of the use or inability to use the
200+
Work (including but not limited to damages for loss of goodwill,
201+
work stoppage, computer failure or malfunction, or any and all
202+
other commercial damages or losses), even if such Contributor
203+
has been advised of the possibility of such damages.
204+
205+
9. Accepting Warranty or Additional Liability. While redistributing
206+
the Work or Derivative Works thereof, You may choose to offer,
207+
and charge a fee for, acceptance of support, warranty, indemnity,
208+
or other liability obligations and/or rights consistent with this
209+
License. However, in accepting such obligations, You may act only
210+
on Your own behalf and on Your sole responsibility, not on behalf
211+
of any other Contributor, and only if You agree to indemnify,
212+
defend, and hold each Contributor harmless for any liability
213+
incurred by, or claims asserted against, such Contributor by reason
214+
of your accepting any such warranty or additional liability.
215+
216+
END OF TERMS AND CONDITIONS

0 commit comments

Comments
 (0)