intuit / intuit/oauth-pythonclient

DeprecationWarning for call to pkg_resources.declare_namespace() on import.

Offen
#37 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
86
Forks
59
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

setuptools 67.3.0 has deprecated `pkg_resources.declare_namespace()`: https://setuptools.pypa.io/en/latest/history.html#v67-3-0

This is being triggered by importing `intuit-oauth`:

```
DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('intuitlib')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
```

To remain a namespace package, the `__init__.py` may be deleted. But I'm not sure the package needs to be a namespace package, and we may be able to use an empty `__init__.py` instead.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by inspecting how the package defines the intuitlib namespace and how importing intuit-oauth triggers setuptools' pkg_resources.declare_namespace() warning. Determine whether intuitlib should remain a namespace package or use an empty __init__.py, then verify that importing the package no longer emits the deprecation warning.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.