Skip to content

Move bigtable code into a subpackage - #2410

Merged
dhermes merged 2 commits into
googleapis:masterfrom
dhermes:make-bigtable-subpackage
Sep 26, 2016
Merged

Move bigtable code into a subpackage#2410
dhermes merged 2 commits into
googleapis:masterfrom
dhermes:make-bigtable-subpackage

Conversation

@dhermes

Copy link
Copy Markdown
Contributor

Towards #2404. See #2367 for a reference point.

Done via:
$ mkdir -p bigtable/google/cloud
$ cp google/__init__.py bigtable/google/__init__.py
$ git add bigtable/google/__init__.py
$ cp google/cloud/__init__.py bigtable/google/cloud/__init__.py
$ git add bigtable/google/cloud/__init__.py
$ git mv google/cloud/bigtable bigtable/google/cloud/bigtable
$ git mv unit_tests/bigtable bigtable/unit_tests
- Adding setup.py, MANIFEST.in, README, .coveragerc and tox.ini
- Adding google-cloud-bigtable as a dependency to the umbrella
package
- Adding the bigtable subdirectory into the list of packages
for verifying the docs
- Incorporating the bigtable subdirectory into the umbrella
coverage report
- Adding the bigtable only tox tests to the Travis config
- Updating the project main README to refer the bigtable
subdirectory
- Renamed bigtable _testing imports (since in a new place)
- Adding {toxinidir}/../core as a dependency for the bigtable
tox config
- Updating the location of the ignored bigtable generated
files both in the `pycodestyle` config in `tox.ini`
and in `run_pylint`
Changed the bigtable test helper import via:
$ git grep -l 'from unit_tests.bigtable._testing import _FakeStub' |
> xargs sed -i s/'from unit_tests.bigtable._testing import _FakeStub'/'from unit_tests._testing import _FakeStub'/g
@dhermesdhermes added packaging api: bigtable Issues related to the Bigtable API. labels Sep 23, 2016
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 23, 2016
@dhermes

Copy link
Copy Markdown
ContributorAuthor

For reference, the 2nd commit is essentially these 3 (from core) mushed together:

@dhermes

Copy link
Copy Markdown
ContributorAuthor

Just occurred to me that I didn't move the system test.

@tseaver

Copy link
Copy Markdown
Contributor

@dhermes Before merging, what did you decide to do about the system tests?

@dhermes

Copy link
Copy Markdown
ContributorAuthor

I punted to #2404 on system tests.

@tseaver

Copy link
Copy Markdown
Contributor

LGTM

@dhermes
dhermes merged commit d1dd186 into googleapis:masterSep 26, 2016
@dhermes
dhermes deleted the make-bigtable-subpackage branch September 26, 2016 19:11
parthea pushed a commit that referenced this pull request Apr 1, 2026
Thank you for opening a Pull Request! Before submitting your PR, there
are a few things you can do to make sure it goes smoothly:
- [x] Make sure to open an issue as a
[bug/issue](https://github.com/googleapis/python-bigquery-dataframes/issues/new/choose)
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
Fixes#2410 🦕
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtableIssues related to the Bigtable API.cla: yesThis human has signed the Contributor License Agreement.packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@dhermes@tseaver@theacodes@googlebot