Setuptools deprecation warning with setuptools-rust
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- build-system
Direzione di ricerca
Inizia ispezionando la chiamata a RustExtension in setup.py e la configurazione find: per la scoperta dei package in setup.cfg, quindi riproduci l’avviso di build di cryptography. Determina se setuptools-rust o la configurazione del progetto debba esporre cryptography.hazmat.bindings._rust come package; il lavoro è completato quando il package viene individuato senza l’avviso di deprecazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In cryptography builds we have been getting this deprecation warning for a while:
setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
############################
# Package would be ignored #
############################
Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
We declare cryptography.hazmat.bindings._rust as the target in our RustExtension call and then use the standard find: mechanisms in our setup.cfg. Is there something setuptools-rust needs to tell setuptools so that it auto-discovers this package without this warning? Or, quite possibly, something we need to do on our end because we've done something dumb? 😄
- Lingua principale
- Python
- Stelle
- 680
- Fork
- 110
- Merge medio
- 3g 18h
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PyO3/setuptools-rust
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
PyO3/setuptools-rust#619 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
PyO3/setuptools-rust#610 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
PyO3/setuptools-rust#575 · 5 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
PyO3/setuptools-rust#507 · 3 commenti ·
-
How to use with docker Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
PyO3/setuptools-rust#449 · 10 commenti ·
Tutte le issue di PyO3/setuptools-rust
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·