Skip to content

[Storage] Migrate packages from setup.py to pyproject.toml#46652

Draft
l0lawrence wants to merge 7 commits intoAzure:mainfrom
l0lawrence:migrate-pyproject/batch-04-storage
Draft

[Storage] Migrate packages from setup.py to pyproject.toml#46652
l0lawrence wants to merge 7 commits intoAzure:mainfrom
l0lawrence:migrate-pyproject/batch-04-storage

Conversation

@l0lawrence
Copy link
Copy Markdown
Member

Summary

Migrates 7 Storage data-plane package(s) from setup.py to a PEP 621 [project] table in pyproject.toml. Modeled after sdk/ai/azure-ai-projects/pyproject.toml.

Packages migrated

  • sdk\cosmos\azure-cosmos
  • sdk\storage\azure-storage-blob
  • sdk\storage\azure-storage-blob-changefeed
  • sdk\storage\azure-storage-extensions
  • sdk\storage\azure-storage-file-datalake
  • sdk\storage\azure-storage-file-share
  • sdk\storage\azure-storage-queue

Notes

  • license set as SPDX expression MIT (drops the License :: OSI Approved :: MIT License classifier).
  • version is written as a static string read from _version.py at migration time. Dynamic attr resolution fails inside uv build-isolation for legacy pkgutil.extend_path namespaces, so static is used.
  • readme remains dynamic via README.md + CHANGELOG.md.

Part of the ongoing effort to migrate all active data-plane packages off setup.py.

@github-actions github-actions Bot added Cosmos Storage Storage Service (Queues, Blobs, Files) labels Apr 30, 2026
l0lawrence and others added 3 commits May 1, 2026 09:11
Packages: azure-cosmos, azure-storage-blob, azure-storage-blob-changefeed, azure-storage-extensions, azure-storage-file-datalake, azure-storage-file-share, azure-storage-queue

Move package metadata from setup.py to PEP 621 [project] table in
pyproject.toml. Removes setup.py.

- build-system: setuptools >= 77.0.3
- license -> SPDX 'MIT' (drops the License classifier)
- version: static (read from each package's _version.py at migration time)
- readme: dynamic via README.md + CHANGELOG.md
- packages.find excludes mirror the canonical azure-sdk template

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ackages

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@l0lawrence l0lawrence force-pushed the migrate-pyproject/batch-04-storage branch from 14ad47b to 8a89296 Compare May 1, 2026 16:11
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@l0lawrence l0lawrence force-pushed the migrate-pyproject/batch-04-storage branch 4 times, most recently from dd74bfa to 2f45d6b Compare May 1, 2026 19:21
l0lawrence and others added 3 commits May 1, 2026 12:24
- Restore project.dynamic = ["readme"] outside optional-dependencies (so README is included as long_description)
- Add maintainers to azure-cosmos

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Restore the exact include/exclude lists used by setup.py's find_packages()
call so the migration is fully behavior-preserving.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Restore the exact include/exclude lists used by setup.py's find_packages()
call so the migration is fully behavior-preserving.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cosmos Storage Storage Service (Queues, Blobs, Files)

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant