GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: introduce compatibility with native namespace packages by kiraksi · Pull Request #706 · googleapis/python-bigquery-storage

This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Conversation

@kiraksi

@kiraksi kiraksi commented Nov 14, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR:

  • Similar to: feat: Introduce compatibility with native namespace packages python-bigquery#1720
  • Integrates native namespace package for google and removes the usage of pkg_resource and pkgutil
  • Instead of using pkg_resource in tests we have added importlib as a extra dependency to handle version checking
  • Thus, setuptools package is no longer needed at runtime

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #705 🦕

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kiraksi
feat: introduce compatibility with native namespace packages
5872585
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigquerystorage Issues related to the googleapis/python-bigquery-storage API. labels Nov 14, 2023
@kiraksi
reformatted with black
a85ddca
@kiraksi kiraksi self-assigned this Nov 14, 2023
@kiraksi
kiraksi requested review from chalmerlowe and parthea November 14, 2023 00:51
@kiraksi
kiraksi marked this pull request as ready for review November 14, 2023 00:52
@kiraksi
kiraksi requested review from a team November 14, 2023 00:52
@kiraksi kiraksi added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 14, 2023
@parthea

parthea commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

There is an upcoming release freeze. This should be merged after the release freeze ends on November 29th.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

parthea
parthea reviewed Nov 14, 2023
View reviewed changes

@parthea parthea left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, please could you also remove usage of pkg_resources here? Please feel free to make the change in this PR or a separate PR. This should allow us to close #482

python-bigquery-storage/tests/unit/test_reader_v1_arrow.py

Line 23 in 20b57c2

import pkg_resources

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kiraksi kiraksi linked an issue Nov 14, 2023 that may be closed by this pull request
DistributionNotFound error potentially caused by pkg_resources #482
Closed
@kiraksi kiraksi removed a link to an issue Nov 14, 2023
DistributionNotFound error potentially caused by pkg_resources #482
Closed
@kiraksi
kiraksi force-pushed the native-namespace-compatibility branch from b47238d to a85ddca Compare November 14, 2023 17:44
@kiraksi

kiraksi commented Nov 14, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

LGTM, please could you also remove usage of pkg_resources here? Please feel free to make the change in this PR or a separate PR. This should allow us to close #482

python-bigquery-storage/tests/unit/test_reader_v1_arrow.py

Line 23 in 20b57c2

import pkg_resources

Edit: Will be done in this PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kiraksi
removed pkg_resources
92fd70b
@kiraksi kiraksi linked an issue Nov 15, 2023 that may be closed by this pull request
DistributionNotFound error potentially caused by pkg_resources #482
Closed
parthea
parthea reviewed Nov 15, 2023
View reviewed changes

@parthea parthea left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Added minor observations. Otherwise LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread setup.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/unit/test_reader_v1_arrow.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/unit/test_reader_v1_arrow.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

kiraksi added 2 commits November 16, 2023 09:53
@kiraksi
Moved importlib to extras and resolved issues with using it in tests
63e32cb
@kiraksi
reformatted with black
d0ea035
@kiraksi
kiraksi requested a review from parthea November 16, 2023 18:34
@kiraksi kiraksi mentioned this pull request Nov 16, 2023
Remove pkg_resource dependency after native namespace compatibility is implemented googleapis/python-bigquery#1725
Closed
kiraksi added 2 commits November 16, 2023 12:42
@kiraksi
Fixed mistake of not checking only first 3 indexes of PANDAS_VERSION
9413cae
@kiraksi
Fixed another error in comparison strings
f7587d9
@kiraksi kiraksi mentioned this pull request Nov 16, 2023
feat: removed pkg_resources from all test files and moved importlib into pandas extra googleapis/python-bigquery#1726
Merged
4 tasks done
@parthea parthea mentioned this pull request Nov 22, 2023
[For testing purposes only] testing python 3.12 #709
Closed
parthea
parthea approved these changes Nov 22, 2023
View reviewed changes
@kiraksi
Merge branch 'main' into native-namespace-compatibility
b409420
@kiraksi kiraksi removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 28, 2023
@kiraksi
Merge branch 'main' into native-namespace-compatibility
2864263
parthea
parthea suggested changes Nov 30, 2023
View reviewed changes

@parthea parthea left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

We also need to migrate setup.py to use setuptoolsfind_namespace_packages(.. instead of setuptools.PEP420PackageFinder.find()

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@parthea
use setuptools.find_namespace_packages()
a112ec2
@parthea
parthea self-requested a review December 1, 2023 21:39
Linchin
Linchin approved these changes Dec 1, 2023
View reviewed changes
parthea
parthea approved these changes Dec 1, 2023
View reviewed changes
@Linchin
Linchin merged commit 59f9564 into googleapis:main Dec 1, 2023
@release-please release-please Bot mentioned this pull request Dec 1, 2023
chore(main): release 2.24.0 #714
Merged
@kiraksi
kiraksi deleted the native-namespace-compatibility branch January 17, 2024 13:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@chalmerlowe chalmerlowe Awaiting requested review from chalmerlowe
2 more reviewers
@parthea parthea parthea approved these changes
@Linchin Linchin Linchin approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@kiraksi kiraksi

Labels

api: bigquerystorage Issues related to the googleapis/python-bigquery-storage API. size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

use native support for namespace packages DistributionNotFound error potentially caused by pkg_resources

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@kiraksi @parthea @Linchin
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.