[http-client-python] Use SPDX license metadata for pygen package

Đang mở
#11,607 1 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@msyyc đang làm issue này rồi.

Từ ngày 10/8/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug deprecation emitter:client:python

Description

Building @typespec/http-client-python with current setuptools emits this warning while building the pygen wheel:

SetuptoolsDeprecationWarning: License classifiers are deprecated.

Please consider removing the following classifiers in favor of a SPDX license expression:

License :: OSI Approved :: MIT License

packages/http-client-python/generator/setup.py currently specifies both:

license="MIT License"

and:

"License :: OSI Approved :: MIT License",

Recent setuptools versions expect an SPDX license expression instead of the license classifier.

Reproduction

From packages/http-client-python:

npm run build

The warning appears while setuptools gets build dependencies and again while it builds the wheel.

Expected behavior

The pygen distribution uses SPDX-compatible license metadata and builds without the setuptools license-classifier deprecation warning.

Acceptance criteria

  • Update the pygen package metadata to use the SPDX expression MIT.
  • Remove the deprecated License :: OSI Approved :: MIT License classifier from pygen's distribution metadata.
  • npm run build no longer emits SetuptoolsDeprecationWarning: License classifiers are deprecated while building the pygen wheel.
  • The built wheel continues to report the MIT license correctly in its package metadata.
Ngôn ngữ chính
Java
Star
5.9k
Fork
421
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
176

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/typespec

Tất cả issue của microsoft/typespec

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.