aiidalab / aiidalab/aiidalab

Replace pkg_resource with importlib

Aperta
#432 6 commenti 0 reazioni 1 assegnatario Rivendicata da @ayushjariyal Vedi su GitHub
chore dependencies good first issue
Lingua principale
Python
Stelle
17
Fork
18
Merge medio
2g 6h
PR unite (30g)
2

Descrizione

`pkg_resources` module (distributed with setuptools) is deprecated, and users are encouraged to use `importlib.resources` and `importlib.metadata`. See https://setuptools.pypa.io/en/latest/pkg_resources.html

~~So we currently have undeclared dependency on setuptools (currently satisfied transitively via `dulwich` and `jsonschema`)~~ The setuptools dependency is now explicit, and should be removed once this is fixed.

We need to replace the following functions from the `pkg_resources` module:
- [ ] `resource_listdir`
- [ ] `resource_isdir`
- [ ] `resource_stream`
- [ ] `resource_string`

See [migration guide](https://importlib-resources.readthedocs.io/en/latest/migration.html#migration-guide)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.