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

Aperta
#11,607 1 commento 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@msyyc ci sta già lavorando.

Dal 10/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.
Lingua principale
Java
Stelle
5.9k
Fork
421
Merge medio
2g 3h
PR unite (30g)
176

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/typespec

Tutte le issue di microsoft/typespec

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.