Skip to content

Navigation Menu

Sign in
Sign up

Migrate packaging metadata from setup.cfg to pyproject.toml - #2992

Open
sakshamgoyal-01 wants to merge 1 commit into
snowflakedb:main from
sakshamgoyal-01:migrate-setup-cfg-to-pyproject
Open

Migrate packaging metadata from setup.cfg to pyproject.toml #2992
sakshamgoyal-01 wants to merge 1 commit into
snowflakedb:main from
sakshamgoyal-01:migrate-setup-cfg-to-pyproject

Conversation

@sakshamgoyal-01

@sakshamgoyal-01 sakshamgoyal-01 commented Aug 5, 2026
edited
Loading

Copy link
Copy Markdown

Disclosure:
Human directed, AI assisted PR

Summary

  • Move packaging metadata from setup.cfg into pyproject.toml (PEP 621 + setuptools).
  • Declare the nanoarrow extension via [tool.setuptools.ext-modules] instead of cythonize().
  • Resolve version from snowflake.connector.version.__version__.
  • Make boto3/botocore opt-in via .[boto3] (remove default install and SNOWFLAKE_NO_BOTO).

setup.py keeps only platform-specific build_ext / build_py logic. The if True: wrapper around MyBuildExt preserves the old indentation so the review diff stays easy to read.

Test plan

  • python ci/anaconda/validate_deps_sync.py
  • Wheel build includes nanoarrow_arrow_iterator.cpython-*.so
  • SNOWFLAKE_DISABLE_COMPILE_ARROW_EXTENSIONS=1 omits that compiled module
  • CI installation / build matrix

github-actions Bot commented Aug 5, 2026
edited
Loading

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Move setup.cfg metadata, dependencies, and the nanoarrow extension
declaration into pyproject.toml (PEP 621 + setuptools ext-modules).
Resolve version from snowflake.connector.version.__version__, make
boto3/botocore an opt-in [boto3] extra (remove SNOWFLAKE_NO_BOTO), and
keep setup.py only for platform-specific build_ext/build_py logic.
sakshamgoyal-01 marked this pull request as ready for review August 5, 2026 20:12
sakshamgoyal-01 requested a review from a team as a code owner August 5, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /