Skip to content

Move vision code into a subpackage#2433

Merged
dhermes merged 3 commits intogoogleapis:masterfrom
dhermes:make-vision-subpackage
Sep 26, 2016
Merged

Move vision code into a subpackage#2433
dhermes merged 3 commits intogoogleapis:masterfrom
dhermes:make-vision-subpackage

Conversation

@dhermes
Copy link
Copy Markdown
Contributor

@dhermes dhermes commented Sep 26, 2016

This PR was created via: https://gist.github.com/dhermes/e239691aa584bd56a5352e34aad27cf3

export PROJECT_DIR="${HOME}/google-cloud-python"
export READMES_DIR="${HOME}/i-wrote-some-readmes-for-2357"
cd ${PROJECT_DIR}
git worktree add -b make-vision-subpackage ../hotfix official/master
python make_commits.py \
  --git-root "${PROJECT_DIR}/../hotfix" \
  --package vision \
  --package-name "Google Cloud Vision" \
  --readme "${READMES_DIR}/vision/README.rst"

Third commit was done by hand to fix up fixture import problems.

@dhermes dhermes added packaging api: vision Issues related to the Cloud Vision API. labels Sep 26, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 26, 2016
Done via:

$ mkdir -p vision/google/cloud
$ cp google/__init__.py vision/google/__init__.py
$ git add vision/google/__init__.py
$ cp google/cloud/__init__.py vision/google/cloud/__init__.py
$ git add vision/google/cloud/__init__.py
$ git mv google/cloud/vision vision/google/cloud/vision
$ git mv unit_tests/vision vision/unit_tests
- Adding README, setup.py, MANIFEST.in, .coveragerc and tox.ini
- Adding google-cloud-vision as a dependency to the umbrella
  package
- Adding the vision subdirectory into the list of packages
  for verifying the docs
- Incorporating the vision subdirectory into the umbrella
  coverage report
- Adding the vision only tox tests to the Travis config
- Adding {toxinidir}/../core as a dependency for the vision
  tox config
Done mostly via:

$ git grep -l 'unit_tests.vision._fixtures' |
> xargs sed -i s/'unit_tests.vision._fixtures'/'unit_tests._fixtures'/g

Then fixed up some indents after the fact.
@dhermes dhermes force-pushed the make-vision-subpackage branch from 09e3e3f to b4d0998 Compare September 26, 2016 23:25
@dhermes
Copy link
Copy Markdown
Contributor Author

dhermes commented Sep 26, 2016

Rebased after #2430. Green build

@dhermes dhermes merged commit 7307429 into googleapis:master Sep 26, 2016
@dhermes dhermes deleted the make-vision-subpackage branch September 26, 2016 23:32
parthea pushed a commit that referenced this pull request Apr 1, 2026
* Added the API for ai.generate_text
* Fixed SQL syntax bug of ai.generate_embedding
* Refactored the code base to keep util functions organized.

Fixes b/481092205
parthea pushed a commit that referenced this pull request Apr 1, 2026
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:e7cc6823efb073a8a26e7cefdd869f12ec228abfbd2a44aa9a7eacc284023677
<details><summary>bigframes: 2.35.0</summary>

##
[2.35.0](googleapis/python-bigquery-dataframes@v2.34.0...v2.35.0)
(2026-02-07)

### Features

* Add bigframes.pandas.col with basic operators (#2405)
([12741677](googleapis/python-bigquery-dataframes@12741677))

* remove redundant &#34;started.&#34; messages from progress output
(#2440)
([2017cc2f](googleapis/python-bigquery-dataframes@2017cc2f))

* add bigframe.bigquery.load_data function (#2426)
([4b0f13b2](googleapis/python-bigquery-dataframes@4b0f13b2))

* Disable progress bars in Anywidget mode (#2444)
([4e2689a1](googleapis/python-bigquery-dataframes@4e2689a1))

* add bigquery.ai.generate_text function (#2433)
([5bd0029a](googleapis/python-bigquery-dataframes@5bd0029a))

* Disable progress bars in Anywidget mode to reduce notebook clutter
(#2437)
([853240da](googleapis/python-bigquery-dataframes@853240da))

* Add a bigframes cell magic for ipython (#2395)
([e6de52de](googleapis/python-bigquery-dataframes@e6de52de))

* add `bigframes.bigquery.ai.generate_embedding` (#2343)
([e91536c8](googleapis/python-bigquery-dataframes@e91536c8))

### Bug Fixes

* always display the results in the `%%bqsql` cell magics output (#2439)
([2d973b54](googleapis/python-bigquery-dataframes@2d973b54))

* exlcude gcsfs 2026.2.0 (#2445)
([311de31e](googleapis/python-bigquery-dataframes@311de31e))

* suppress JSONDtypeWarning in Anywidget mode and clean up progress
output (#2441)
([e0d185ad](googleapis/python-bigquery-dataframes@e0d185ad))

### Documentation

* fix cast method shown on public docs (#2436)
([ad0f33c6](googleapis/python-bigquery-dataframes@ad0f33c6))

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement. packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants