Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Move storage code into a subpackage#2416

Merged
dhermes merged 2 commits into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
dhermes:make-storage-subpackagedhermes/google-cloud-python:make-storage-subpackageCopy head branch name to clipboard
Sep 26, 2016
Merged

Move storage code into a subpackage#2416
dhermes merged 2 commits into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
dhermes:make-storage-subpackagedhermes/google-cloud-python:make-storage-subpackageCopy head branch name to clipboard

Conversation

@dhermes

@dhermes dhermes commented Sep 25, 2016

Copy link
Copy Markdown
Contributor

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-storage-subpackage ../hotfix official/master
python make_commits.py \
  --git-root "${PROJECT_DIR}/../hotfix" \
  --package storage \
  --package-name "Google Cloud Storage" \
  --readme "${READMES_DIR}/storage/README.rst"

@dhermes dhermes added api: storage Issues related to the Cloud Storage API. packaging labels Sep 25, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 25, 2016

@theacodes theacodes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a few tiny things.

Comment thread storage/README.rst Outdated
bucket = client.get_bucket('bucket-id-here')
# Then do other things...
blob = bucket.get_blob('remote/path/to/file.txt')
print blob.download_as_string()

This comment was marked as spam.

This comment was marked as spam.

Comment thread tox.ini
--cov-append \
--cov-config {toxinidir}/.coveragerc \
core/unit_tests
py.test --quiet \

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@dhermes dhermes force-pushed the make-storage-subpackage branch from dd9c52e to 9af414d Compare September 26, 2016 16:30
@theacodes

Copy link
Copy Markdown
Contributor

LGTM

@tseaver

tseaver commented Sep 26, 2016

Copy link
Copy Markdown
Contributor
  • Won't the chnages to top-level files conflict with Move bigtable code into a subpackage #2410?
  • The duplication across the sub-repositories (.coveragerc, MANIFEST.in, etc.) is getting worse: to we have an issue to track stripping that out?
  • Likewise the duplication inside the top-level stuff (.travis.yml, tox.ini).

@dhermes

dhermes commented Sep 26, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver Yes essentially all will conflict, but luckily I can just re-run the script (that is why I ran it).

@tseaver

tseaver commented Sep 26, 2016

Copy link
Copy Markdown
Contributor

OK, LGTM

Done via:

$ mkdir -p storage/google/cloud
$ cp google/__init__.py storage/google/__init__.py
$ git add storage/google/__init__.py
$ cp google/cloud/__init__.py storage/google/cloud/__init__.py
$ git add storage/google/cloud/__init__.py
$ git mv google/cloud/storage storage/google/cloud/storage
$ git mv unit_tests/storage storage/unit_tests
- Adding README, setup.py, MANIFEST.in, .coveragerc and tox.ini
- Adding google-cloud-storage as a dependency to the umbrella
  package
- Adding the storage subdirectory into the list of packages
  for verifying the docs
- Incorporating the storage subdirectory into the umbrella
  coverage report
- Adding the storage only tox tests to the Travis config
- Adding {toxinidir}/../core as a dependency for the storage
  tox config
@dhermes dhermes force-pushed the make-storage-subpackage branch from 9af414d to b01ffb4 Compare September 26, 2016 19:37
@dhermes

dhermes commented Sep 26, 2016

Copy link
Copy Markdown
Contributor Author

Pushed to resolve rebase conflict and re-ran script. Won't wait on Travis since a) that could be awhile and b) this will be painful.

@dhermes dhermes merged commit a41f08f into googleapis:master Sep 26, 2016
@dhermes dhermes deleted the make-storage-subpackage branch September 26, 2016 19:37
parthea added a commit that referenced this pull request Nov 24, 2025
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea pushed a commit that referenced this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.