DeprecationWarning for call to pkg_resources.declare_namespace() on import.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 86
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from intuit/oauth-pythonclient
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
intuit/oauth-pythonclient#56 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
intuit/oauth-pythonclient#52 ·
-
input Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
intuit/oauth-pythonclient#55 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
intuit/oauth-pythonclient#47 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
intuit/oauth-pythonclient#38 · 3 comments ·
All issues in intuit/oauth-pythonclient
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·