Skip to content

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

Open
sakshamgoyal-01 wants to merge 1 commit into
snowflakedb:mainfrom
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:mainfrom
sakshamgoyal-01:migrate-setup-cfg-to-pyproject

Conversation

@sakshamgoyal-01

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

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

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

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

@sakshamgoyal-01

Copy link
Copy Markdown
Author

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

@sakshamgoyal-01
sakshamgoyal-01 force-pushed the migrate-setup-cfg-to-pyproject branch from 1932947 to 2285f11 Compare August 5, 2026 19:49
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
sakshamgoyal-01 force-pushed the migrate-setup-cfg-to-pyproject branch from 2285f11 to 04057c7 Compare August 5, 2026 20:10
@sakshamgoyal-01
sakshamgoyal-01 marked this pull request as ready for review August 5, 2026 20:12
@sakshamgoyal-01
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant